From: Eric Anholt Date: Thu, 23 May 2013 20:40:26 +0000 (-0700) Subject: i965: Allow glCopyTexSubImage() on depth textures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7638f5578e3fdf37d3b55ca78508b002040b3468;p=mesa.git i965: Allow glCopyTexSubImage() on depth textures. If the hw is pre-gen5 and can't blit depth, it'll cleanly error out. Reviewed-and-tested-by: Ian Romanick Reviewed-by: Kenneth Graunke Acked-by: Paul Berry --- diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index 7a3808211aa..94e90da5eaa 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -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,