Mesa (main): nir/serialize: Put dest last in packed_instr::tex

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 27 10:04:50 UTC 2022


Module: Mesa
Branch: main
Commit: ee536ea633b036f1ec45a65c66eed3a854885702
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee536ea633b036f1ec45a65c66eed3a854885702

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Jun 23 18:53:31 2022 +0200

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 at amd.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17212>

---

 src/compiler/nir/nir_serialize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the mesa-commit mailing list