nir: add fetch inactive index to quad_swizzle_amd/masked_swizzle_amd

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25525>
This commit is contained in:
Rhys Perry
2023-10-02 16:13:35 +01:00
committed by Marge Bot
parent 0e79f76aa5
commit ad5be40303
3 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -198,7 +198,8 @@ lower_shuffle_to_swizzle(nir_builder *b, nir_intrinsic_instr *intrin)
return NULL;
return nir_masked_swizzle_amd(b, intrin->src[0].ssa,
.swizzle_mask = (mask << 10) | 0x1f);
.swizzle_mask = (mask << 10) | 0x1f,
.fetch_inactive = true);
}
/* Lowers "specialized" shuffles to a generic nir_intrinsic_shuffle. */