summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2013-01-22 13:25:37 -0800
committerCarl Worth <[email protected]>2013-01-23 17:40:52 -0800
commit33599433c75c0ab433615d08ed7e4002146ba462 (patch)
treea6f92f6c8fe3ae05867e1e38ee9c2ecafa90780d /src/mesa/main/macros.h
parent570ed2be7d776211e1ca2a7a4c44ee6a1d141714 (diff)
i965: Use swizzles to force alpha to 1.0 for RED, RG, or RGB textures.
We may be using a texture with actual RGBA storage for these formats, so force the alpha value read to 1.0. This commit fixes the following piglit (sub) tests: ARB_texture_float/fb-blending-formats GL_RGB16F_ARB EXT_framebuffer_object/fbo-blending-formats GL_RGB10 GL_RGB12 GL_RGB16 EXT_texture_snorm/fbo-blending-formats GL_RGB16_SNORM GL_RGB8_SNORM GL_RGB_SNORM These test improvements depend on the previous commit as well. That commit smashes alpha to 1.0 for the case of ReadPixels (so fixes "FBO testing" as reported by this test), while this commit smashes alpha to 1.0 for the case of texturing (fixed the "window testing" as reported by this test). Note: Haswell bypasses this swizzle code, so may require an independent fix for this bug. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/macros.h')
0 files changed, 0 insertions, 0 deletions