Mesa (master): i965: Allow glCopyTexSubImage() on depth textures.

Eric Anholt anholt at kemper.freedesktop.org
Tue May 28 20:09:47 UTC 2013


Module: Mesa
Branch: master
Commit: 7638f5578e3fdf37d3b55ca78508b002040b3468
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7638f5578e3fdf37d3b55ca78508b002040b3468

Author: Eric Anholt <eric at anholt.net>
Date:   Thu May 23 13:40:26 2013 -0700

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 <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Acked-by: Paul Berry <stereotype441 at gmail.com>

---

 src/mesa/drivers/dri/intel/intel_tex_copy.c |    5 -----
 1 files changed, 0 insertions(+), 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,




More information about the mesa-commit mailing list