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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user