Mesa (main): pan/va: Pack LEA_TEX_IMM

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 7 13:44:13 UTC 2022


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

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Wed Mar 30 15:23:04 2022 -0400

pan/va: Pack LEA_TEX_IMM

Mostly automatic.

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

---

 src/panfrost/bifrost/valhall/va_pack.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/panfrost/bifrost/valhall/va_pack.c b/src/panfrost/bifrost/valhall/va_pack.c
index 6ab225321f7..17e897a841a 100644
--- a/src/panfrost/bifrost/valhall/va_pack.c
+++ b/src/panfrost/bifrost/valhall/va_pack.c
@@ -377,6 +377,12 @@ va_pack_alu(const bi_instr *I)
       hex |= ((uint64_t) I->attribute_index) << 20;
       break;
 
+   case BI_OPCODE_LD_TEX_IMM:
+   case BI_OPCODE_LEA_TEX_IMM:
+      hex |= ((uint64_t) I->table) << 16;
+      hex |= ((uint64_t) I->texture_index) << 20;
+      break;
+
    case BI_OPCODE_ZS_EMIT:
       if (I->stencil) hex |= (1 << 24);
       if (I->z) hex |= (1 << 25);



More information about the mesa-commit mailing list