nir/serialize: Put dest last in packed_instr::tex

packed_instr::tex::dest must be last to match the packed_instr::any::dest
position.

Fixes: 35655865cb ("nir/serialize: pack instructions better")
Cc: stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17212>
This commit is contained in:
Boris Brezillon 2022-06-23 18:53:31 +02:00 committed by Marge Bot
parent 68e5265fa1
commit ee536ea633

View file

@ -666,8 +666,8 @@ union packed_instr {
unsigned instr_type:4;
unsigned num_srcs:4;
unsigned op:4;
unsigned dest:8;
unsigned _pad:12;
unsigned dest:8;
} tex;
struct {
unsigned instr_type:4;