[Piglit] [PATCH] glsl-fs-clamp-[234]: New tests for a bug Chad noticed in saturate handling.

Eric Anholt eric at anholt.net
Tue Apr 12 09:23:09 PDT 2011


On Mon, 11 Apr 2011 17:15:55 -0700, Ian Romanick <idr at freedesktop.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 04/11/2011 04:24 PM, Eric Anholt wrote:
> > The point here is to try to catch the cases where the compiler turns a
> > min/max of a variable float with constant vectors into a saturate of a
> > float.
> 
> Catch in what way?  Is this just to make sure we generate the correct
> values or that we generate good code?

Chad pointed out that we were doing that transformation, which seemed
obviously wrong (should swizzle it out to a vector), so I tried to
produce regression tests.
-------------- 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/20110412/23c11533/attachment.pgp>


More information about the Piglit mailing list