OSDN Git Service

i965/gen8+: Don't upload the MCS buffer for single-sampled textures
authorNeil Roberts <neil@linux.intel.com>
Tue, 24 Nov 2015 16:59:28 +0000 (17:59 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 11 Dec 2015 18:05:56 +0000 (18:05 +0000)
commiteb291d7013eef64c33826f9cc0006c89adcf4e53
treea18bd78e81d1d3cd9bb96e8522a8b6e2e7e453cf
parent44902ed1fa84525fbb959dc22357cb42214c185b
i965/gen8+: Don't upload the MCS buffer for single-sampled textures

For single-sampled textures the MCS buffer is only used to implement
fast clears. However the surface always needs to be resolved before
being used as a texture anyway so the the MCS buffer doesn't actually
achieve anything. This is important for Gen9 because in that case SRGB
surfaces are not supported for fast clears and we don't want the
hardware to see the MCS buffer in that case.

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