From 4c0bced1fb7ae2e6440fbf6d030c401971b8bf00 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 24 Sep 2021 12:04:36 +0200 Subject: [PATCH] radv: remove useless as_ngg_passthrough init when lowering NGG in NIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nothing reads the value after that, except LLVM but we don't lower it in NIR (yet). Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_shader.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index bdec41c9cd9..43c364b9b9c 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -989,7 +989,6 @@ void radv_lower_ngg(struct radv_device *device, struct nir_shader *nir, info->has_ngg_early_prim_export = out_conf.early_prim_export; info->num_lds_blocks_when_not_culling = DIV_ROUND_UP(out_conf.lds_bytes_if_culling_off, device->physical_device->rad_info.lds_encode_granularity); info->is_ngg_passthrough = out_conf.passthrough; - key->vs_common_out.as_ngg_passthrough = out_conf.passthrough; } else if (nir->info.stage == MESA_SHADER_GEOMETRY) { assert(info->is_ngg); ac_nir_lower_ngg_gs(