[Mesa-dev] [PATCH 2/2] i965/vec4: Clamp indirect tes input array reads with 0x0fffffff

Jason Ekstrand jason at jlekstrand.net
Wed Aug 29 21:45:18 UTC 2018

On Wed, Aug 29, 2018 at 4:32 PM Ian Romanick <idr at freedesktop.org> wrote:

> On 08/29/2018 02:22 PM, Jason Ekstrand wrote:
> > Have you seen this cause an actual problem?  There's no way we can
> > actually end up with an input array that big...  I guess this is for the
> > crazy OOB case?
> The array can't be that big due to other compiler limits.  This is just
> to prevent a garbage index from being used.  If the previous patch is
> reverted, the test case mentioned in that patch will have this problem
> because the index will be negative.

Makes sense.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180829/865b4e9d/attachment.html>

More information about the mesa-dev mailing list