[Mesa-stable] [PATCH 2/3] i965: Abort tiled_memcpy path for TexSubImage in case of transfer operations

Anuj Phogat anuj.phogat at gmail.com
Fri Aug 21 15:04:18 PDT 2015


We have a similar check in meta pbo path.

Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 src/mesa/drivers/dri/i965/intel_tex_subimage.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
index 31e511f..74bfd01 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
@@ -94,6 +94,9 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
    uint32_t cpp;
    mem_copy_fn mem_copy = NULL;
 
+   if (ctx->_ImageTransferState)
+      return false;
+
    /* This fastpath is restricted to specific texture types:
     * a 2D BGRA, RGBA, L8 or A8 texture. It could be generalized to support
     * more types.
-- 
2.4.3



More information about the mesa-stable mailing list