[Mesa-dev] [PATCH] u_vbuf/translate: pass max_index into the set_buffer.

Marek Olšák maraeo at gmail.com
Sun Mar 11 16:01:16 UTC 2018


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Mar 8, 2018 at 3:20 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes a memory trashing crash (not the test) seen with
> dEQP-GLES3.stress.draw.unaligned_data.random.203
> on virgl.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/gallium/auxiliary/util/u_vbuf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
> index d30a702210..95d7990c6c 100644
> --- a/src/gallium/auxiliary/util/u_vbuf.c
> +++ b/src/gallium/auxiliary/util/u_vbuf.c
> @@ -448,7 +448,7 @@ u_vbuf_translate_buffers(struct u_vbuf *mgr, struct translate_key *key,
>           map -= (ptrdiff_t)vb->stride * min_index;
>        }
>
> -      tr->set_buffer(tr, i, map, vb->stride, ~0);
> +      tr->set_buffer(tr, i, map, vb->stride, info->max_index);
>     }
>
>     /* Translate. */
> --
> 2.14.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list