intel: Don't try to blorp or blit CopyTexSubImage(1D_ARRAY).
authorPaul Berry <stereotype441@gmail.com>
Sun, 2 Jun 2013 23:25:03 +0000 (16:25 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 4 Jun 2013 16:14:44 +0000 (09:14 -0700)
commit2fd785d12602103a1c05fd52903bdb4ffefadaad
tree8527db4c16f5ebfa7aef58d839ff0461fcf1fcc2
parent32d1f423bccb1ad7199f072d4ac09ed88b693b1f
intel: Don't try to blorp or blit CopyTexSubImage(1D_ARRAY).

Blorp and the hardware blitter can't be used to implement
CopyTexSubImage when the image type is 1D_ARRAY, because of a
coordinate system mismatch (the Y coordinate in the source image is
supposed to be matched up to the Z coordinate in the destination
texture).

The hardware blitter path (intel_copy_texsubimage) contained a perf
debug warning for this case, but it failed to actually fall back.  The
blorp path didn't even check.

Fixes piglit test "copyteximage 1D_ARRAY".

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/intel/intel_tex_copy.c