i965/gen9: Don't do fast clears when GL_FRAMEBUFFER_SRGB is enabled
authorNeil Roberts <neil@linux.intel.com>
Wed, 25 Nov 2015 11:14:37 +0000 (12:14 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 11 Dec 2015 18:05:56 +0000 (18:05 +0000)
commit583a5778f46aa6a18d7ec52178ebf1fb82c6daa8
tree9fae7d619c403f3c3a8e385cb25c90daaa816687
parent0033c8134401cd4c42845a8e33c001ec62612015
i965/gen9: Don't do fast clears when GL_FRAMEBUFFER_SRGB is enabled

When GL_FRAMEBUFFER_SRGB is enabled any single-sampled renderbuffers
are resolved in intel_update_state because the hardware can't cope
with fast clears on SRGB buffers. In that case it's pointless to do a
fast clear because it will just be immediately resolved.

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