summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.c
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2013-01-21 12:18:02 -0800
committerCarl Worth <[email protected]>2013-01-23 17:40:24 -0800
commitb961ba44ed01d4aa590609fc91ab1250ac7d9559 (patch)
treebca58d3f515d6c6d1878b76aa5a294d296f96e79 /src/mesa/main/viewport.c
parent06424376065a4a1e44920a29497936691d88598f (diff)
i965: Examine _BaseFormat when deciding to perform xRGB_alpha fixups
The renderbuffer's Format field may have an alpha channel even when the underlying _BaseFormat does not. This can happen when mesa chooses to use RGBA16 for an RGB16 format, for example. So look at _BaseFormat when deciding whether to fixup the blend factors. This test improves the results of at least the following piglit tests: EXT_frambebuffer_object/fbo-blending-formats {GL_RGB10, GL_RGB12, GL_RGB16} EXT_texture_snorm/fbo-blending-formats {GL_RGB16_SNORM, GLRGB8_SNORM, GL_RGB_SNORM} But none of these actually change from FAIL to PASS yet. The R, G, and B probe values are fixed with this commit, but the tests still fail because the alpha values are still wrong. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/viewport.c')
0 files changed, 0 insertions, 0 deletions