From c32401f49b0675c0d6f5b4b2952acd6cdb00231d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Wed, 27 Mar 2024 16:09:50 +0100 Subject: [PATCH] radv: Allow NGG culling with LLVM. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_shader_info.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index 797f2c66fb1..5ec7b5412fa 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -1721,10 +1721,8 @@ radv_determine_ngg_settings(struct radv_device *device, struct radv_shader_stage : 3; } - /* TODO: Enable culling for LLVM. */ es_stage->info.has_ngg_culling = radv_consider_culling(device->physical_device, es_stage->nir, ps_inputs_read, - num_vertices_per_prim, &es_stage->info) && - !radv_use_llvm_for_stage(device, es_stage->stage); + num_vertices_per_prim, &es_stage->info); nir_function_impl *impl = nir_shader_get_entrypoint(es_stage->nir); es_stage->info.has_ngg_early_prim_export = exec_list_is_singular(&impl->body);