mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 22:50:31 +01:00
r600/sfn: Fixup component count only if intrinsic has it
Fixes:33d878er600/sfn: Handle load_global in 64 to vec2 lowering Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24229> (cherry picked from commit28b79b2ea5)
This commit is contained in:
parent
eb41ceec14
commit
35fea70555
2 changed files with 3 additions and 2 deletions
|
|
@ -854,7 +854,7 @@
|
|||
"description": "r600/sfn: Fixup component count only if intrinsic has it",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "33d878eb584cad621906811dbf8466aed86d57e8",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1026,7 +1026,8 @@ Lower64BitToVec2::load_64_to_vec2(nir_intrinsic_instr *intr)
|
|||
intr->num_components *= 2;
|
||||
intr->def.bit_size = 32;
|
||||
intr->def.num_components *= 2;
|
||||
nir_intrinsic_set_component(intr, nir_intrinsic_component(intr) * 2);
|
||||
if (nir_intrinsic_has_component(intr))
|
||||
nir_intrinsic_set_component(intr, nir_intrinsic_component(intr) * 2);
|
||||
return NIR_LOWER_INSTR_PROGRESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue