diff options
author | Matt Turner <[email protected]> | 2014-12-02 12:28:13 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-05 09:49:42 -0800 |
commit | 2881b123d00562fee8b7d2b4f7825f89a73e0d9f (patch) | |
tree | e89036c38d6dcd5a89858711319a1a91fb0041ca /src/glx/pixelstore.c | |
parent | 05e2578cac608ba703d188fdff4903b92dec4aed (diff) |
i965: Use ~0 to represent true on all generations.
Jason realized that we could fix the result of the CMP instruction on
Gen <= 5 by doing -(result & 1). Also do the resolves in the vec4
backend before use, rather than when the bool was created. The FS does
this and it saves some unnecessary resolves.
On Ironlake:
total instructions in shared programs: 4289762 -> 4287277 (-0.06%)
instructions in affected programs: 619430 -> 616945 (-0.40%)
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glx/pixelstore.c')
0 files changed, 0 insertions, 0 deletions