meta blit: Set Z texcoord during meta blit to sample the correct layer
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 21 May 2014 22:34:26 +0000 (22:34 +0000)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 23 May 2014 07:56:01 +0000 (00:56 -0700)
commit57876fee3872f4f224feeeb56eea6d2e10858fe9
tree2c2f22771de5606fa95d56767c2835240c3836be
parent746921cbb474f2df85232a8f0c10cde8df3349e9
meta blit: Set Z texcoord during meta blit to sample the correct layer

If the source renderbuffer has a depth > 0, then send a Z texcoord
which is set to the source attachment Z offset.

This fixes piglit's gl-3.2-layered-rendering-gl-layer-render with the
GL_TEXTURE_2D_MULTISAMPLE_ARRAY case test on i965/gen8.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/common/meta_blit.c