diff options
author | Juan A. Suarez Romero <[email protected]> | 2015-11-06 12:23:17 +0000 |
---|---|---|
committer | Alejandro PiƱeiro <[email protected]> | 2015-11-16 09:24:28 +0100 |
commit | 40c2acef5cfe28f4ac371203bd70bfc7a222ba26 (patch) | |
tree | e2d448f597a28fbd419d5326b419ac7e02da5967 /src/gallium/drivers/ilo/ilo_screen.c | |
parent | 3f34afa0aad2a9bcfc0e5469a9675eca11ea7649 (diff) |
nir/glsl_to_nir: use _mesa_fls() to compute num_textures
Replace the current loop by a direct call to _mesa_fls() function.
It also fixes an implicit bug in the current code where num_textures
seems to be one value less than it should be when sh->Program->SamplersUsed > 0.
For instance, num_textures is 0 instead of 1 when
sh->Program->SamplersUsed is 1.
Signed-off-by: Juan A. Suarez Romero <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_screen.c')
0 files changed, 0 insertions, 0 deletions