mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
Revert "intel: Simplify the half-float packing in image load/store lowering."
This reverts commit 06fbcd2cd5.
nir_pack_half_2x16_split *isn't* vectorizable, it's 1-component only, thus
why we had this split-scalar code in the first place.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
c2c44dba7a
commit
3a417a044e
1 changed files with 8 additions and 2 deletions
|
|
@ -544,8 +544,14 @@ convert_color_for_store(nir_builder *b, const struct gen_device_info *devinfo,
|
|||
break;
|
||||
|
||||
case ISL_SFLOAT:
|
||||
if (image.bits[0] == 16)
|
||||
color = nir_pack_half_2x16_split(b, color, nir_imm_float(b, 0));
|
||||
if (image.bits[0] == 16) {
|
||||
nir_ssa_def *f16comps[4];
|
||||
for (unsigned i = 0; i < image.chans; i++) {
|
||||
f16comps[i] = nir_pack_half_2x16_split(b, nir_channel(b, color, i),
|
||||
nir_imm_float(b, 0));
|
||||
}
|
||||
color = nir_vec(b, f16comps, image.chans);
|
||||
}
|
||||
break;
|
||||
|
||||
case ISL_UINT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue