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

In Road To OpenCL, R600g LLVM Back-End Arrives

AMD

Published on 09 December 2011 04:24 PM EST
Written by Michael Larabel in AMD
30 Comments

Before calling it a week, Tom Stellard at AMD published a Git branch that offers up an LLVM shader back-end for the AMD R600 Gallium3D driver. This is one of the steps in bringing Compute/OpenCL support to the open-source AMD Radeon Linux graphics drivers.

Tom Stellard announced on Friday afternoon this R600g LLVM shader back-end branch to the Mesa developer's mailing list. Tom's r600g-llvm-shader branch of his Mesa repository offers a TGSI (the current Gallium3D IR) to LLVM IR converter, changes to Gallivm to make it portable with the TGSI-to-LLVM converter, and the LLVM back-end for R600g itself. The TGSI-to-LLVM converter will likely be of use to more Gallium3D drivers besides the R600g driver itself, since TGSI is universal to the drivers and not Radeon-specific.

This LLVM back-end is based upon AMD's AMDIL LLVM back-end for OpenCL with various modifications. Tom says this new shader back-end currently passes 99% of the Piglit regression tests that work with the current R600g shader back-end. The failures are coming from unimplemented texture instructions and on a current lack of indirect addressing support. The LLVM back-end also isn't optimized for VLIW at this point plus other optimizations are lacking. "The optimizations in r600_asm.c are able to do some instruction packing, but the resulting code is not yet as good as the current backend."

And here's the key part of his message:
The main motivation for this LLVM backend is to help bring compute/OpenCL support to r600g by making it easier to support different compiler frontends. I don't have a concrete plan for integrating this into mainline Mesa yet, but I don't expect it to be in the next release. I would really like to make it compatible with LLVM 3.0 before it gets merged (it only works with LLVM 2.9 now), but if compute support evolves quickly, I might be tempted to push the 2.9 version into the master branch.

More information coming soon.

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. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  2. MSAA RadeonSI Gallium3D Performance Preview
  3. Intel Core i7 5960X CPU Core Scaling Under Linux
  4. AMD RadeonSI Gallium3D Performance For 4K Linux Gaming
Latest Linux News
  1. Digia Qt Spinoff Is Called "The Qt Company"
  2. GNOME 3.14 Makes More Progress In Running Natively On Wayland
  3. Minix 3.3 Released With Cortex-A8 ARM Support, NetBSD Userland Compatibility
  4. More Intel DRM Changes Queued For Linux 3.18, Including Old i830M Fixes
  5. New Code Starts Lining Up For X.Org Server 1.17
  6. Rust Developers Planning For The Rust 1.0 Language
  7. RPM 4.12 Brings New Switches, New Rpm2Archive Utility
  8. Nouveau For Linux 3.18 Gains DP Audio, More Re-Clocking
  9. SUSE Gets Bought Out Again
  10. Enlightenment E19 Officially Released With Its Own Wayland Compositor
Latest Forum Discussions
  1. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)
  2. Nvidia joins the ranks of Apple and Microsoft
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. New Group Calls For Boycotting Systemd
  5. Hd 6850
  6. nv and xorg.conf under Debian PPC
  7. X.Org Is Looking For Some Female Help
  8. FSF Issues Their Rebuttal To Apple's New iPhone, Watch & Apple Pay