diff options
author | Jordan Justen <[email protected]> | 2016-10-19 10:25:21 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-10-19 16:51:45 -0700 |
commit | 1fa000a33b010436ac3bf4b3c8da2974d3788382 (patch) | |
tree | 6867bf0bd5d119e3590940245f0dc1d8a95297dc /src/mesa | |
parent | 740a8fa1e214bafef1641336c90f09cb4ed0c415 (diff) |
i965/cs: Use udiv/umod for local IDs
This allows for more optimizations relating to power-of-two divisions.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir_intrinsics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c b/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c index 059d14d0e4f..9ae161f53df 100644 --- a/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c +++ b/src/mesa/drivers/dri/i965/brw_nir_intrinsics.c @@ -116,7 +116,7 @@ lower_cs_intrinsics_convert_block(struct lower_intrinsics_state *state, uvec3.u32[2] = size[2]; nir_ssa_def *mod_val = nir_build_imm(b, 3, 32, uvec3); - sysval = nir_imod(b, nir_idiv(b, local_index, div_val), mod_val); + sysval = nir_umod(b, nir_udiv(b, local_index, div_val), mod_val); break; } |