From 1ab9dd22a27c6e3400a4ef3925289b81ec3e605b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 11 Jan 2021 19:05:52 +0100 Subject: [PATCH] radv: optimize idiv_const for small bitsizes No fossil-db changes. Reviewed-by: Rhys Perry Part-of: --- src/amd/vulkan/radv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 2da4df8d8a5..dfd697d5f9a 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3331,7 +3331,7 @@ VkResult radv_create_shaders(struct radv_pipeline *pipeline, /* TODO: Implement nir_op_uadd_sat with LLVM. */ if (!radv_use_llvm_for_stage(device, i)) - nir_opt_idiv_const(nir[i], 32); + nir_opt_idiv_const(nir[i], 8); nir_lower_idiv(nir[i], nir_lower_idiv_precise); /* optimize the lowered ALU operations */