nouveau/codegen: Check nir_dest_num_components
authorM Henning <drawoc@darkrefraction.com>
Tue, 25 Apr 2023 05:41:03 +0000 (01:41 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Apr 2023 18:17:41 +0000 (18:17 +0000)
commitd49c7b958214e551e10d09be300c5cdaf951315d
tree80cb91142855573c2735ede9b4144c8f7de126a3
parent4a00e7948624895a8de7b5f05884f17952f18720
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>
src/nouveau/codegen/nv50_ir_from_nir.cpp