From: Marek Olšák Date: Thu, 7 Aug 2014 22:34:31 +0000 (+0200) Subject: st/mesa: fix blit-based partial TexSubImage for 1D arrays X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b5d88a518da7e4c8a084b7881580846c5d6d11f;p=mesa.git st/mesa: fix blit-based partial TexSubImage for 1D arrays This fixes piglit spec/EXT_texture_array/render-1darray. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Ilia Mirkin Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index aa6b05f0b60..c4b2107ba6e 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -719,6 +719,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; }