[Mesa-dev] [PATCH] st/mesa: fix blit-based partial TexSubImage for 1D arrays

Marek Olšák maraeo at gmail.com
Thu Aug 7 15:49:58 PDT 2014


From: Marek Olšák <marek.olsak at amd.com>

This fixes piglit spec/EXT_texture_array/render-1darray.

Cc: mesa-stable at lists.freedesktop.org
---
 src/mesa/state_tracker/st_cb_texture.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 5a5efcb..969a05f 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -776,6 +776,8 @@ st_TexSubImage(struct gl_context *ctx, GLuint dims,
 
    /* From now on, we need the gallium representation of dimensions. */
    if (gl_target == GL_TEXTURE_1D_ARRAY) {
+      zoffset = yoffset;
+      yoffset = 0;
       depth = height;
       height = 1;
    }
-- 
1.9.1



More information about the mesa-dev mailing list