diff options
author | Connor Abbott <[email protected]> | 2019-08-27 11:34:35 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-09-03 15:54:57 +0200 |
commit | 96c2a2832fa6807534387ed46f8e6e124c5c72cf (patch) | |
tree | 5aa0bb2391c6c2d4c93088b035f8250079febac7 /src/gallium/auxiliary/nir/tgsi_to_nir.c | |
parent | dcc64fcfed6904f6be41ee4b742c818e76b85712 (diff) |
ttn: Fill out more info fields
We'll use these in radeonsi.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/nir/tgsi_to_nir.c')
-rw-r--r-- | src/gallium/auxiliary/nir/tgsi_to_nir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 79d04fae9d9..a80f066b7b2 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -2456,6 +2456,10 @@ ttn_compile_init(const void *tgsi_tokens, s->num_inputs = scan.file_max[TGSI_FILE_INPUT] + 1; s->num_uniforms = scan.const_file_max[0] + 1; s->num_outputs = scan.file_max[TGSI_FILE_OUTPUT] + 1; + s->info.num_ssbos = util_last_bit(scan.shader_buffers_declared); + s->info.num_ubos = util_last_bit(scan.const_buffers_declared >> 1); + s->info.num_images = util_last_bit(scan.images_declared); + s->info.num_textures = util_last_bit(scan.samplers_declared); for (unsigned i = 0; i < TGSI_PROPERTY_COUNT; i++) { unsigned value = scan.properties[i]; |