[Mesa-dev] Missing integer "set" opcodes in Gallium
Ian Romanick
idr at freedesktop.org
Mon Aug 29 14:39:18 PDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/29/2011 01:41 PM, Zack Rusin wrote:
> On Monday, August 29, 2011 04:02:08 PM Zack Rusin wrote:
>> Either way though if GL needs those ops then, like Brian mentioned, it'd be
>> a good idea to add them.
>
> Actually I think it seems easier to just flip the ops rather than add new
> instructions, i.e. change stuff like a > b, to b < a, and a <= b to b >= a.
> Just an opinion though, I don't have strong preferences here.
For what it's worth, this is how most hardware implements many of the
floating-point set-on instructions. It's even easier there because you
also have per-operand negation. Implementing the full set as
instructions / pseudo-ops does have the advantage of making IR dumps a
lot more readable. *shrug*
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk5cBwYACgkQX1gOwKyEAw970gCfWcTEDyDYCnC8JelTcoNWnTI0
RRYAniUCKzykrqsRVkTnJVCDcVyc3Byd
=Izn1
-----END PGP SIGNATURE-----
More information about the mesa-dev
mailing list