summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2022-06-23 18:53:31 +0200
committerMarge Bot <emma+marge@anholt.net>2022-06-27 09:39:22 +0000
commitee536ea633b036f1ec45a65c66eed3a854885702 (patch)
treef545caac7d070eee3907656e34957d0debcea377
parent68e5265fa1be1946c5a20eabf4974b4d296649a1 (diff)
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: 35655865cbde ("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>
-rw-r--r--src/compiler/nir/nir_serialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_serialize.c b/src/compiler/nir/nir_serialize.c
index bd69225dd19..98f75666849 100644
--- a/src/compiler/nir/nir_serialize.c
+++ b/src/compiler/nir/nir_serialize.c
@@ -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;