From 7056714f5039e8f4302075677d962b5dd925e107 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timur=20Krist=C3=B3f?= Date: Thu, 23 Apr 2020 14:02:47 +0200 Subject: [PATCH] aco: Set config->lds_size when TES or VS is running on HW ESGS. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This doesn't fix anything, just reports the LDS size used by merged ESGS shaders, such as vertex_geometry_gs and tess_eval_geometry_gs. Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_instruction_selection_setup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index bf4b34c6e3e..dee86585c8e 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -835,6 +835,7 @@ void setup_gs_variables(isel_context *ctx, nir_shader *nir) nir_foreach_variable(variable, &nir->inputs) { variable->data.driver_location = util_bitcount64(ctx->input_masks[nir->info.stage] & ((1ull << variable->data.location) - 1ull)) * 4; } + ctx->program->config->lds_size = ctx->program->info->gs_ring_info.lds_size; /* Already in units of the alloc granularity */ } else if (ctx->stage == geometry_gs) { //TODO: make this more compact nir_foreach_variable(variable, &nir->inputs) { -- 2.30.2