i965/gen9: Resolve SRGB color buffers when GL_FRAMEBUFFER_SRGB enabled
authorNeil Roberts <neil@linux.intel.com>
Tue, 24 Nov 2015 18:23:14 +0000 (19:23 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 11 Dec 2015 18:05:56 +0000 (18:05 +0000)
commit82d459a4230c8fcb96fc5e85d00d2c2f4502d1e0
tree932c321daa9e4e327f640d458e34e2fc8f097c37
parenteb291d7013eef64c33826f9cc0006c89adcf4e53
i965/gen9: Resolve SRGB color buffers when GL_FRAMEBUFFER_SRGB enabled

SKL can't cope with the CCS buffer for SRGB buffers. Normally the
hardware won't see the SRGB formats because when GL_FRAMEBUFFER_SRGB
is disabled these get mapped to their linear equivalents. In order to
avoid relying on the CCS buffer when it is enabled this patch now
makes it flush the renderbuffers.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_context.c