diff options
author | Mathias Fröhlich <[email protected]> | 2016-05-22 14:10:19 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2016-06-16 05:50:54 +0200 |
commit | 3ee409bebfa88eaec34a7f912a1bbc86304a522f (patch) | |
tree | 6a672dbfeff7f127ce8c9aa4bdde89a400c53aaa /src/mesa/main/remap.c | |
parent | b5820759de6338811dfe0295de34849b41c1c64f (diff) |
mesa: Use bitmask/ffs to build ff vertex shader keys.
Replaces an iterate and test bit in a bitmask loop by a
loop only iterating over the bits set in the bitmask.
The bitmask used here for iteration is a combination
of different enabled masks present for texture units.
v2: Use _mesa_bit_scan{,64} instead of open coding.
v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/main/remap.c')
0 files changed, 0 insertions, 0 deletions