Introducing The Cairo Gallium3D State Tracker

Posted by Michael Larabel on June 19, 2010

In past days we have reported on the work being done at the moment for improving the ATI R300 GLSL compiler and kernel mode-setting support for old 3Dlabs GPUs by students participating in the X.Org project with Google's Summer of Code. Igor Trindade Oliveira, another GSoC student developer, has blogged about the work he is doing this summer on creating a Gallium3D state tracker for Cairo.

Like the other state trackers with accelerating OpenGL, OpenGL ES, OpenVG, OpenCL, and other APIs on the GPU hardware in a rather neutral way using the Gallium3D driver architecture, Igor aims to do this for Cairo too. Nearly all Linux users should be familiar with Cairo, but for the non-technical users it's a 2D vector graphics API that's found uses within GTK+, by Mozilla within the Gecko web layout engine, Mono and the Moonlight projects, WebKit also uses Cairo, and many other projects use it in some form as well.

Besides directly supporting X, Cairo supports multiple back-ends, including OpenGL and OpenVG, so it can be accelerated indirectly atop the hardware already using the other state trackers, but the Cairo state tracker would accelerate it without any middle layer.

Igor Trindade Oliveira is hoping this state tracker for Cairo will make things go significantly faster, particularly with the more advanced operations. Igor's current code-base of this Cairo-Gallium3D work can be found at FreeDesktop.org. So far Igor's state tracker is a few hundred lines of code that has initial implementations for Cairo paths and painting, but obviously the work has just begun.

Right now it also looks like he's just focusing on making it work with the Softpipe driver, but not any of the hardware drivers yet or even the interesting LLVMpipe.

While his first blog post is a bit lax on details, it can be found here.

In other news related to the X.Org GSoC happenings this summer, Tom Stellard who has been working on the R300 GLSL improvements has just pushed a new branch of his code that enables hardware loops and branching for ATI R500 (Radeon X1000) graphics cards. Information regarding this branch can be found on mesa-dev.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. The Cost Of Ubuntu Disk Encryption
  2. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  3. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
  4. F2FS File-System Shows Regressions On Linux 3.10
Latest Linux News
  1. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  2. Handbrake 0.9.9 Supports OpenCL Offloading
  3. Freedreno Gallium3D Now Banging The Adreno A3XX
  4. Jolla Announces Their First Phone
  5. Mageia 3 Released, Still Using Legacy GRUB
  6. NetBSD 6.1 Brings In More Features
  7. Using Six Monitors With AMD's Open-Source Linux Driver
  8. Benchmarking The Intel P-State, CPUfreq Changes
  9. FreeBSD Still Working On Next-Gen Package Manager
  10. DNF Still Advancing As Experimental Yum For Fedora
  11. Logitech Begins Supporting Linux Users
Latest Forum Talk
  1. Intel Commits More Mesa Performance Optimizations
  2. OpenSUSE Considers Replacing LXDE With E17
  3. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  4. FreeBSD Still Working On Next-Gen Package Manager
  5. Handbrake 0.9.9 Supports OpenCL Offloading
  6. DNF Still Advancing As Experimental Yum For Fedora
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite