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

MSAA For Mesa Finally Moves Closer

Intel

Published on 10 May 2012 05:09 PM EDT
Written by Michael Larabel in Intel
20 Comments

Mesa is finally getting closer to properly supporting MSAA, a.k.a. Multi-Sample Anti-Aliasing, but for now this is just Intel Sandy Bridge supported.

Paul Berry published v2 patches for enabling i965 MSAA on Intel Gen6 (Sandy Bridge) hardware. There is code for doing MSAA on Gen7 (Ivy Bridge), but it's currently disabled.

Berry hopes by end of day on Friday to land the patch series and send out the Ivy Bridge MSAA code for review. Intel MSAA support for pre-Gen6 hardware doesn't look like it's being attempted. Adding in the Intel MSAA support touches a few thousand lines of code over a set of five patches. Here's the commit description for the patch that actually enables the Multi-Sample Anti-Aliasing support.
This patch enables MSAA for Gen6, by modifying intel_mipmap_tree to understand multisampled buffers, adapting the rendering pipeline setup to enable multisampled rendering, and adding multisample resolve operations to brw_blorp_blit.cpp. Some preparation work is also included for Gen7, but it is not yet enabled.

MSAA support is still fairly preliminary. In particular, the following are not yet supported:
- Fully general blits between MSAA and non-MSAA buffers.
- Formats other than RGBA8, DEPTH24, and STENCIL8.
- Centroid interpolation.
- Coverage parameters (glSampleCoverage, GL_SAMPLE_ALPHA_TO_COVERAGE, GL_SAMPLE_ALPHA_TO_ONE, GL_SAMPLE_COVERAGE, GL_SAMPLE_COVERAGE_VALUE, GL_SAMPLE_COVERAGE_INVERT).

Fixes piglit tests "EXT_framebuffer_multisample/accuracy" on
i965/Gen6.

v2:
- In intel_alloc_renderbuffer_storage(), quantize the requested number of samples to the next higher sample count supported by the hardware. This ensures that a query of GL_SAMPLES will return the correct value. It also ensures that MSAA is fully disabled on Gen7 for now (since Gen7 MSAA support doesn't work yet).
- When reading from a non-MSAA surface, ensure that s_is_zero is true so that we won't try to read from a nonexistent sample.
Now if the other Mesa/Gallium3D drivers would move on with proper MSAA anti-aliasing support, albeit the drivers are already not fast enough without AA.

As of Mesa 8.0 there is MLAA, a.k.a. Morphological Anti-Aliasing support. MLAA in Mesa though is done on the CPU and is already not well supported by all Mesa/Gallium3D drivers. As far as the more advanced anti-aliasing methods supported by the Windows drivers and the proprietary NVIDIA/AMD blobs, those are still a long shot out from being in Mesa.

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. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
  2. AMD Radeon R9 290 Open-Source Driver Works, But Has A Ways To Go
  3. Trying The Configurable 45 Watt TDP With AMD's A10-7800 / A6-7400K
  4. Sumo's Omni Gets Reloaded
Latest Linux Articles
  1. 20-Way Radeon Comparison With Open-Source Graphics For Steam On Linux Gaming
  2. Preview: OS X 10.10 Yosemite vs. Ubuntu Linux GPU Performance
  3. Radeon Graphics Yield Mixed Results With Linux 3.17 Kernel
  4. AMD's RadeonSI Driver Sped Up A Lot This Summer
Latest Linux News
  1. Plasma Active Is Mostly Ported To KDE Frameworks 5
  2. Google Chrome 37 Brings Many Security Fixes
  3. MenuetOS Updated With SMP Threads & Onscreen Keyboard
  4. Mesa Has A New Release Manager
  5. Enlightenment E19 Lands Its New Wayland Compositor Code
  6. Nouveau Turns Into A Mess In Latest Linux 3.17 + Mesa 10.3-dev Tests
  7. New GCC 5.0 Changes, Command-Line Options That Landed So Far
  8. SteamOS Update 133 Has Better Intel Performance, VA-API
  9. DRM Graphics Changes For Linux 3.18 Might End Up Being Smaller
  10. Ioquake3 Works On Finally Switching Over To SDL2
Latest Forum Discussions
  1. Updated and Optimized Ubuntu Free Graphics Drivers
  2. AMD Releases UVD Video Decode Support For R600 GPUs
  3. Announcing radeontop, a tool for viewing the GPU usage
  4. Users defect to Linux as OpenBSD removes Lynx from base system
  5. Chinese People Try To Patent Wine On ARM
  6. American Citizens running AMOK for food stamps
  7. "The World's Most Highly-Assured OS" Kernel Open-Sourced
  8. What Linux Distribution Should Be Benchmarked The Most?