mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
nouveau/codegen: Check nir_dest_num_components
instead of reaching into a union and pulling out garbage when the dest is a reg Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8863 Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22674>
This commit is contained in:
parent
4a00e79486
commit
d49c7b9582
1 changed files with 1 additions and 1 deletions
|
|
@ -2539,7 +2539,7 @@ Converter::visit(nir_load_const_instr *insn)
|
|||
}
|
||||
|
||||
#define DEFAULT_CHECKS \
|
||||
if (insn->dest.dest.ssa.num_components > 1) { \
|
||||
if (nir_dest_num_components(insn->dest.dest) > 1) { \
|
||||
ERROR("nir_alu_instr only supported with 1 component!\n"); \
|
||||
return false; \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue