summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-07-12 17:40:48 -0700
committerIan Romanick <[email protected]>2016-08-30 16:28:01 -0700
commit6d5fe1815c96b849aaf08f31c11d9ad4fe2b4769 (patch)
tree69ec322fda71fccbac55c4d79782874be33a215a /src/compiler/glsl/tests
parent5c24750a49b7c39f35600b25ece05f908d59f170 (diff)
glsl: Use find_msb_uint to implement ir_unop_find_lsb
(X & -X) calculates a value with only the least significant bit of X set. Since there is only one bit set, the LSB is the MSB. v2: Remove extra int() cast. Suggested by Matt. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
0 files changed, 0 insertions, 0 deletions