i965: Set the fast clear color value for texture surfaces
authorNeil Roberts <neil@linux.intel.com>
Mon, 9 Jun 2014 16:43:37 +0000 (17:43 +0100)
committerNeil Roberts <neil@linux.intel.com>
Thu, 12 Jun 2014 10:24:04 +0000 (11:24 +0100)
commit765efeef883cdbb86e052acd887e0c3c0e39b732
tree40537e0f5c5b1be68459f147cefaedf8dc5b43cb
parent2c79aa8272d81020093836554d5aa0c18ef91c74
i965: Set the fast clear color value for texture surfaces

When a multisampled texture is used for sampling the fast clear color value
needs to be programmed into the surface state. This was being left as all
zeroes so if the surface was cleared to a value other than black then it
wouldn't work properly. This doesn't matter for single-sample textures because
in that case the MCS buffer is resolved before it is used as a texture source.

https://bugs.freedesktop.org/show_bug.cgi?id=79729

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c