i965: Allow glCopyTexSubImage() on depth textures. 72/6772/1
authorEric Anholt <eric@anholt.net>
Thu, 23 May 2013 20:40:26 +0000 (13:40 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 May 2013 19:40:39 +0000 (12:40 -0700)
If the hw is pre-gen5 and can't blit depth, it'll cleanly error out.

Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/intel/intel_tex_copy.c

index 7a38082..94e90da 100644 (file)
@@ -96,11 +96,6 @@ intel_copy_texsubimage(struct intel_context *intel,
       return false;
    }
 
-   /* The blitter can't handle Y-tiled buffers. */
-   if (intelImage->mt->region->tiling == I915_TILING_Y) {
-      return false;
-   }
-
    /* blit from src buffer to texture */
    if (!intel_miptree_blit(intel,
                            irb->mt, irb->mt_level, irb->mt_layer,