Mesa (main): pan/bi: Add secondary staging count

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 12 16:47:45 UTC 2021


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

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Mon Nov  8 10:36:30 2021 -0500

pan/bi: Add secondary staging count

Useful for instructions with two independent sets of staging registers
(like dual source blending or dual texturing).

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13723>

---

 src/panfrost/bifrost/compiler.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index b3e8a4808cc..b4f37f4c3de 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -409,7 +409,10 @@ typedef struct {
                 };
 
                 /* TEXC, ATOM_CX: # of staging registers used */
-                uint32_t sr_count;
+                struct {
+                        uint32_t sr_count;
+                        uint32_t sr_count_2;
+                };
         };
 
         /* Modifiers specific to particular instructions are thrown in a union */



More information about the mesa-commit mailing list