1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Direct3D 9 Support Released For Linux Via Gallium3D, Running Games

Mesa

Published on 17 July 2013 12:58 AM EDT
Written by Michael Larabel in Mesa
97 Comments

Linux desktop systems can now have working support for Microsoft's Direct3D 9 API via a new Gallium3D state tracker. Unlike the earlier Direct3D 10/11 state tracker for Gallium3D on Linux, this new code actually can run D3D9 games and at better performance than what's offered by Wine.

Back in 2010, Direct3D 10/11 was natively implemented for Linux in the form of a Gallium3D state tracker. While Gallium3D is most often associated with OpenGL, its API agnostic and handles OpenGL ES, OpenVG, and even OpenCL for compute support, among other interfaces. Gallium3D can work just as well with Direct3D, but there has traditionally been not much developer interest in such a state tracker. This isn't to be confused with a translation layer whereby Direct3D commands are mapped into OpenGL.

The Direct3D 10/11 state tracker excitement was ultimately shortlived as the upstream Wine development community wasn't interested in adding support for it since it's a Linux-only solution and at that it's limited to those using Gallium3D, which is basically the open-source Radeon and Nouveau (NVIDIA) users. This D3D 10/11 state tracker was ultimately removed from Mesa since it wasn't being used and the code was suffering bit-rot.

Christoph Bumiller, a developer associated with the Nouveau graphics driver project, on Tuesday announced a Direct3D 9 state tracker. While D3D 10/11 support was short-lived, Bumiller believes the D3D9 situation is different. Christoph is actively maintaining this code (at least for now), it's written in C rather than C++, Gallium3D is better suited towards D3D9 at the moment than the newer versions of Microsoft's graphics API, there's more application coverage for D3D9, and most importantly this state tracker is in a working state where Direct3D games/applications can actually run.

Since Linux-native applications are using GL/GLES over D3D, Christoph modified Wine to use this D3D9 state tracker over the project's internal D3D-to-GL translation layer. With a patch atop Wine, the Direct3D 9 state tracker can work so that the graphics API is natively implemented for the hardware Gallium3D drivers rather than just translating the API calls into OpenGL.

Christoph says right now that Skyrim, Civilization 5, Anno 1404, and StarCraft 2 are among the D3D9 games now running on Linux. Testing has happened from the Nouveau NVC0/Fermi and AMD Radeon R600g drivers. The performance is reportedly quite good and can be up to two times better than the frame-rate when using Wine's current code.

This state tracker for now is being housed in an external Mesa repository but he's open to merging it to master if there's interest. The Wine changes for now are also in a separate repository. The announcement concerning this new state tracker can be found on Mesa-dev.

It will be interesting to see if this Direct3D 9 state tracker takes off for Linux and whether Wine developers will optionally support it for better performance.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. The MSI X99S SLI PLUS Is Working & Running Well On Linux
  2. NVIDIA GeForce GTX 980: The Best GPU For Linux Gamers
  3. ROCCAT LUA: A Linux-Friendly Gaming Mouse
  4. Cheetah Mounts: The Affordable Way To Put Your TV On The Wall
Latest Linux Articles
  1. Preview: Radeon Gallium3D Performance For CS:GO On Linux
  2. XWayland Linux Gaming Performance With GNOME Wayland On Fedora 21
  3. EXT4/Btrfs/XFS/F2FS Benchmarks On Linux 3.17
  4. Fedora 21 Alpha First Impressions: It's Great
Latest Linux News
  1. Radeon DRM Gets New Information Ioctl Queries
  2. Mir 0.8 Works On Less ABI Breakage, Touchspots, Responsiveness
  3. CS:GO For Linux Gains Better Stability, Community Server Support
  4. NVIDIA Issues Updated 340.46 Long-Lived Driver Release
  5. KDE Plasma 5.1 Now In Beta
  6. Systemd & Debian Were Most Popular In September
  7. Microsoft Announces... Windows 10 With A Start Menu
  8. Borderlands 2 Launches On Steam For Linux
  9. Debian Jessie Might Get Rid Of The kFreeBSD Port
  10. Fedora Might Try A New Scheduling Strategy For Its Releases
Latest Forum Discussions
  1. Microsoft Announces... Windows 10 With A Start Menu
  2. NVIDIA Alerts Nouveau: They're Starting To Sign/Validate GPU Firmware Images
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. Nero CD/DVD Burning Software On Linux Is Dead
  5. New Group Calls For Boycotting Systemd
  6. FSF Issues Statement On Shellshock Bash Vulnerability
  7. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  8. X.Org Is Looking For Some Female Help