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

Ilia Mirkin imirkin at alum.mit.edu
Thu Aug 7 16:18:13 PDT 2014


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

Makes sense and also fixes the new piglit on nvc0.

On Thu, Aug 7, 2014 at 6:49 PM, Marek Olšák <maraeo at gmail.com> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list