Module: Mesa
Branch: master
Commit: 5c6952108c337e717df2607632b14275fc76b398
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c6952108c337e717df2607632b14275fc76b398

Author: Alyssa Rosenzweig <[email protected]>
Date:   Tue Apr 21 19:35:01 2020 -0400

pan/bi: Assert out multiple textures

Only for a moment.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4671>

---

 src/panfrost/bifrost/bifrost_compile.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/panfrost/bifrost/bifrost_compile.c 
b/src/panfrost/bifrost/bifrost_compile.c
index 21211820dfe..a28308b53a0 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -684,6 +684,10 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
 static void
 emit_tex_compact(bi_context *ctx, nir_tex_instr *instr)
 {
+        /* TODO: Pipe through indices */
+        assert(instr->texture_index == 0);
+        assert(instr->sampler_index == 0);
+
         bi_instruction tex = {
                 .type = BI_TEX,
                 .op = { .texture = BI_TEX_COMPACT },

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to