From 96c2a2832fa6807534387ed46f8e6e124c5c72cf Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 27 Aug 2019 11:34:35 +0200 Subject: [PATCH] ttn: Fill out more info fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We'll use these in radeonsi. Reviewed-by: Marek Olšák --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- 2.30.2