Reviewed-by: Ilia Mirkin <[email protected]> Makes sense and also fixes the new piglit on nvc0.
On Thu, Aug 7, 2014 at 6:49 PM, Marek Olšák <[email protected]> wrote: > From: Marek Olšák <[email protected]> > > This fixes piglit spec/EXT_texture_array/render-1darray. > > Cc: [email protected] > --- > 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 > > _______________________________________________ > mesa-dev mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
