mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-21 20:30:34 +01:00
nir/format_convert: use f2f32 instead of unpack_half
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
a3bd2ae465
commit
5a2ef27f7d
1 changed files with 2 additions and 2 deletions
|
|
@ -403,7 +403,7 @@ nir_format_unpack_11f11f10f(nir_builder *b, nir_def *packed)
|
|||
chans[2] = nir_mask_shift(b, packed, 0xffc00000, -17);
|
||||
|
||||
for (unsigned i = 0; i < 3; i++)
|
||||
chans[i] = nir_unpack_half_2x16_split_x(b, chans[i]);
|
||||
chans[i] = nir_f2f32(b, nir_u2u16(b, chans[i]));
|
||||
|
||||
return nir_vec(b, chans, 3);
|
||||
}
|
||||
|
|
@ -608,7 +608,7 @@ nir_format_unpack_rgba(nir_builder *b, nir_def *packed,
|
|||
case UTIL_FORMAT_TYPE_FLOAT:
|
||||
switch (chan->size) {
|
||||
case 16:
|
||||
comps[c] = nir_unpack_half_2x16_split_x(b, raw);
|
||||
comps[c] = nir_f2f32(b, nir_u2u16(b, raw));
|
||||
break;
|
||||
|
||||
case 32:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue