diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2023-05-26 11:15:36 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2023-05-30 16:24:21 -0400 |
commit | ebf4eff7eb67eb20e7db624622ab60377cbd34fc (patch) | |
tree | c3462d7a86d5c760b20beab7d366fbf6aa843ffc /src/microsoft/spirv_to_dxil | |
parent | f534c2c539f1a4722c03c63a257e99b052e6f1a8 (diff) |
treewide: Use nir_replicate
Via coccinelle.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259>
Diffstat (limited to 'src/microsoft/spirv_to_dxil')
-rw-r--r-- | src/microsoft/spirv_to_dxil/dxil_spirv_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c index 147ca0e6988..026f9424cf0 100644 --- a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c +++ b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c @@ -790,7 +790,7 @@ lower_pntc_read(nir_builder *b, nir_instr *instr, void *data) else pos = nir_interp_deref_at_offset(b, 4, 32, &nir_build_deref_var(b, pos_var)->dest.ssa, - nir_vec2(b, nir_imm_float(b, 0), nir_imm_float(b, 0))); + nir_replicate(b, nir_imm_float(b, 0), 2)); nir_ssa_def *pntc = nir_fadd_imm(b, nir_fsub(b, nir_channels(b, pos, 0x3), nir_channels(b, point_center, 0x3)), |