[Mesa-dev] [PATCH 07/17] i965: Allow glCopyTexSubImage() on depth textures.

Eric Anholt eric at anholt.net
Fri May 24 13:56:45 PDT 2013


If the hw is pre-gen5 and can't blit depth, it'll cleanly error out.
---
 src/mesa/drivers/dri/intel/intel_tex_copy.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c
index 7a38082..94e90da 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,
-- 
1.8.3.rc0



More information about the mesa-dev mailing list