mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 08:10:33 +01:00
nir/lower_alu_width: emit f2f32 for unpack_half_2x16
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39511>
This commit is contained in:
parent
b18d9c1b33
commit
609c46cf23
1 changed files with 3 additions and 3 deletions
|
|
@ -279,10 +279,10 @@ lower_alu_instr_width(nir_builder *b, nir_instr *instr, void *_data)
|
|||
if (!b->shader->options->lower_unpack_half_2x16)
|
||||
return NULL;
|
||||
|
||||
nir_def *packed = nir_ssa_for_alu_src(b, alu, 0);
|
||||
nir_def *unpacked = nir_unpack_32_2x16(b, nir_ssa_for_alu_src(b, alu, 0));
|
||||
return nir_vec2(b,
|
||||
nir_unpack_half_2x16_split_x(b, packed),
|
||||
nir_unpack_half_2x16_split_y(b, packed));
|
||||
nir_f2f32(b, nir_channel(b, unpacked, 0)),
|
||||
nir_f2f32(b, nir_channel(b, unpacked, 1)));
|
||||
}
|
||||
|
||||
case nir_op_pack_uvec2_to_uint: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue