i965/blorp/gen8: Fix blitting of interleaved msaa surfaces
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 27 Apr 2016 09:53:39 +0000 (12:53 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 27 Apr 2016 16:57:40 +0000 (19:57 +0300)
commitaef6a6c382f74a164431257eb09eec269773acb3
tree25d13a35c49f18ef2b6244ebda2576eea5e8b0f2
parent1d242b688265a405dfd8077ea32ac4ea673b02a2
i965/blorp/gen8: Fix blitting of interleaved msaa surfaces

Fixes ES31-CTS.gtf.GL31Tests.texture_stencil8.texture_stencil8_multisample.

Current logic divides given layer of one by number of samples (four)
trashing the layer to zero. Layer adjustment is only to be used with
non-interleaved msaa surfaces where samples for particular layer are
in multiple slices.

I copy-pasted a bit of documentation from
brw_blorp.c::brw_blorp_compute_tile_offsets().

Also took the opportunity to fix the comment regarding sampling
as 2D, cube textures are the only exception.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/gen8_blorp.c