draw: simplify prim mask construction
authorRoland Scheidegger <sroland@vmware.com>
Mon, 12 Aug 2013 16:01:18 +0000 (18:01 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 12 Aug 2013 21:33:00 +0000 (23:33 +0200)
commitdfa7b725638bf4b1396516dca732a3720b3625a9
tree18746ed11678e24063b2a6509d4cb62bc9f65e93
parent7147094ff235a1c0550e1bafbd12574feca7fdd8
draw: simplify prim mask construction

The code was quite weird, the second comparison was in fact a complete no-op
and we can also do the comparison with the vector directly instead of scalar,
which should not also be faster but it is way more obvious how that mask
is actually going to look like.

Reviewed-by: Zack Rusin <zackr@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c