[Mesa-stable] [Mesa-dev] [PATCH] st/glsl_to_nir: fix incorrect arrary access

Emil Velikov emil.l.velikov at gmail.com
Mon Mar 25 16:43:24 UTC 2019


Hi Timothy,

On Fri, 1 Mar 2019 at 10:36, Timothy Arceri <tarceri at itsqueeze.com> wrote:
>
> This fixes a segfault when we try to access the array using a
> -1 when the array wasn't allocated in the first place.
>
> Before 7536af670b75 we would just access a pre-allocated array
> that was also load/stored to/from the shader cache. But now the
> cache will no longer allocate these arrays if they are empty.
> The change resulted in tests such as the following segfaulting
> when run with a warm shader cache.
>
I was going through some extra checks for 18.3 and noticed this commit.

Admittedly it does not fix 7536af670b75 although it does address a
preexisting issue exposed by it.
That said I suspect we'd want this for stable?

Aside:
The patch does look spot on IMHO, but I cannot see any formal review -
be that on the ML or in gitlab.

Thanks
-Emil


More information about the mesa-stable mailing list