diff options
author | Neil Roberts <[email protected]> | 2015-11-24 17:01:03 +0100 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2015-12-11 18:05:56 +0000 |
commit | 44902ed1fa84525fbb959dc22357cb42214c185b (patch) | |
tree | 30a46fd886c81f9b02e9ee6b572f2cfa556b4a4f /src/mesa/swrast | |
parent | 369afdb7b61b3fdc8fa2851c751d8349f15bc822 (diff) |
i965/meta-fast-clear: Disable GL_FRAMEBUFFER_SRGB during clear
Adds MESA_META_FRAMEBUFFER_SRGB to the meta save state so that
GL_FRAMEBUFFER_SRGB will be disabled when performing the fast clear.
That way the render surface state will be programmed with the linear
equivalent format during the clear. This is important for Gen9 because
the SRGB formats are not marked as losslessly compressible so in
theory they aren't support for fast clears. It shouldn't make any
difference whether GL_FRAMEBUFFER_SRGB is enabled for the fast clear
operation because the color is not actually written to the framebuffer
so there is no chance for the hardware to apply the SRGB conversion on
it anyway.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/swrast')
0 files changed, 0 insertions, 0 deletions