From: Connor Abbott Date: Tue, 27 Aug 2019 09:34:35 +0000 (+0200) Subject: ttn: Fill out more info fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96c2a2832fa6807534387ed46f8e6e124c5c72cf;p=mesa.git ttn: Fill out more info fields We'll use these in radeonsi. Reviewed-by: Marek Olšák --- 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];