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>
(cherry picked from commit ee536ea633)
This commit is contained in:
Boris Brezillon 2022-06-23 18:53:31 +02:00 committed by Dylan Baker
parent a836e218bd
commit ba1d27bdee
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@
"description": "nir/serialize: Put dest last in packed_instr::tex",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "35655865cbde648f6dcfad38fa095d9ec0c4e45b"
},

View file

@ -664,8 +664,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;