radv: optimize idiv_const for small bitsizes

No fossil-db changes.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8425>
This commit is contained in:
Daniel Schürmann 2021-01-11 19:05:52 +01:00 committed by Marge Bot
parent 20af07d089
commit 1ab9dd22a2
1 changed files with 1 additions and 1 deletions

View File

@ -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 */