diff options
author | Francisco Jerez <[email protected]> | 2015-07-10 19:18:39 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-07-16 18:29:32 +0300 |
commit | 3ee2daf23dc91b8dfc017b5c89c10ab1376ba4df (patch) | |
tree | 543f89614463538b7e3f5348d8b00a887332ef67 /SConstruct | |
parent | 8fba933ca2dd3c3487281135a9063b6ca9bed359 (diff) |
i965: Implement b2f and b2i using negation.
Booleans are represented as 0/-1 on modern hardware which means we can
just negate them to convert them into a numeric type. Negation has
the benefit that it can be implemented using a source modifier which
can easily be propagated into some other instruction. shader-db
results on HSW:
total instructions in shared programs: 6349082 -> 6346693 (-0.04%)
instructions in affected programs: 40948 -> 38559 (-5.83%)
helped: 123
HURT: 1
GAINED: 1
LOST: 0
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'SConstruct')
0 files changed, 0 insertions, 0 deletions