[Piglit] [PATCH] fs-texelFetchOffset-2D: don't assume undefined values to be solid black

Eric Anholt eric at anholt.net
Mon Nov 26 23:25:08 PST 2012


sroland at vmware.com writes:

> From: Roland Scheidegger <sroland at vmware.com>
>
> core GL specifies out-of-bound accesses have undefined behavior,
> which includes crashes.
> Crashes are very much undesired, but ARB_robustness still allows undefined
> values to be returned (with a recommendation to return 0).
> Only ARB_robust_buffer_access_behavior would require to return zero, but the
> test doesn't need this extension. In any case even returning zero is not what
> the test expected, since it wanted [0,0,0,1].
> (With this change softpipe passes the test, as it clamps the coords.)

Are you saying texelFetch is supposed to not do wrap modes?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20121126/d9d2871e/attachment.pgp>


More information about the Piglit mailing list