intel: Fix copying of separate stencil data in glCopyTexSubImage().
authorEric Anholt <eric@anholt.net>
Thu, 30 May 2013 21:20:04 +0000 (14:20 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 3 Jun 2013 21:22:54 +0000 (14:22 -0700)
commitbb525f1f1154f8ffde0e4199909466acbbb3876c
tree2d6b3e9e1aae4129fe8cdf0a3b531abf46307f40
parentc937aea3d1af49041138aa3088e8efc253b34fbb
intel: Fix copying of separate stencil data in glCopyTexSubImage().

We were copying the source stencil data onto the destination depth data.

Fixes piglit copyteximage other than 1D_ARRAY.

v2: Fix unintentional dropping of the "don't double-copy for packed
    depth/stencil" check.  While blorp is only supported on separate
    stencil hardware at the moment, hopefully that will change soon.
    Review by Jordan.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp