diff options
author | Marek Olšák <[email protected]> | 2019-09-18 15:19:29 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-09-23 15:34:05 -0400 |
commit | f5c103ce1d74ad95435dce21a38d4f30adab202d (patch) | |
tree | 40fdb9ad7f938ba92530b925cd535a1b2a7b478f /src/compiler/nir | |
parent | 150f6ffb4c389f373d16d3b87c5aeb868258ede8 (diff) |
nir: don't add bindless variables to num_textures and num_images
It confuses radeonsi.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_gather_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index b6e6b0afd1f..1e251149872 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -361,6 +361,10 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint) shader->info.num_textures = 0; shader->info.num_images = 0; nir_foreach_variable(var, &shader->uniforms) { + /* Bindless textures and images don't use non-bindless slots. */ + if (var->data.bindless) + continue; + shader->info.num_textures += glsl_type_get_sampler_count(var->type); shader->info.num_images += glsl_type_get_image_count(var->type); } |