From 16021e3bae5419413fa68b670ba757bdc5dd366a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Fri, 26 Feb 2021 18:49:12 +0100 Subject: [PATCH] radv/llvm: Only store TCS outputs where they are really needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/amd/vulkan/radv_shader.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index b94e89acc7c..6c5fe15265a 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -764,8 +764,6 @@ bool radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir, struct radv_shader_info *info, const struct radv_pipeline_key *pl_key) { - bool llvm = radv_use_llvm_for_stage(device, nir->info.stage); - if (nir->info.stage == MESA_SHADER_VERTEX) { if (info->vs.as_ls) { ac_nir_lower_ls_outputs_to_mem( @@ -789,8 +787,8 @@ radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir, ac_nir_lower_hs_outputs_to_mem( nir, device->physical_device->rad_info.chip_class, info->tcs.tes_reads_tess_factors, - llvm ? UINT64_MAX : info->tcs.tes_inputs_read, - llvm ? UINT64_MAX : info->tcs.tes_patch_inputs_read, + info->tcs.tes_inputs_read, + info->tcs.tes_patch_inputs_read, info->tcs.num_linked_inputs, info->tcs.num_linked_outputs, info->tcs.num_linked_patch_outputs,