Ian Romanick <i...@freedesktop.org> writes: > On 04/09/2013 10:29 AM, Eric Anholt wrote: >> Ian Romanick <i...@freedesktop.org> writes: >> I know our hardware doesn't like the swizzling of that bvec compare >> result and we'd rather just see individual compares as the condition of >> each if statement. (we basically have to emit a compare of the swizzled >> bool against 0, after masking its high bits off, when we could have just >> compared the index value to a constant). I imagine other hardware would >> prefer the same. > > Should we add a lowering pass or an option of some sort?
I think neither -- just rewrite this code the way our hardware wants it, because it will be better, and it's not a pattern we'll see from user code.
pgpQTH6F5EW3L.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev