diff options
author | Carl Worth <[email protected]> | 2013-01-22 13:29:01 -0800 |
---|---|---|
committer | Carl Worth <[email protected]> | 2013-01-23 17:41:09 -0800 |
commit | 8059c2ea9011110df3632e28a4311de9373b9b4e (patch) | |
tree | 94a8133e65abd94394e402cdeed7d48d7568b5ae /src/mesa/main/texformat.c | |
parent | 33599433c75c0ab433615d08ed7e4002146ba462 (diff) |
i965: Use swizzles to force R, G, and B to 0.0 for ALPHA textures.
Similar to the previous commit, we may be using a texture with actual RGBA
storage for the GL_ALPHA format, so force the color values to 0.0.
This commit fixes the following piglit (sub) tests:
EXT_texture_snorm/fbo-blending-formats
GL_ALPHA16_SNORM
GL_ALPHA8_SNORM
GL_ALPHA_SNORM
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/texformat.c')
0 files changed, 0 insertions, 0 deletions