pan/bi: Assert out multiple textures
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 21 Apr 2020 23:35:01 +0000 (19:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 01:01:18 +0000 (01:01 +0000)
Only for a moment.

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

src/panfrost/bifrost/bifrost_compile.c

index 21211820dfe9f58a4a24fbea359f39e925b2beaf..a28308b53a0fd339d1941fe446c3b25e6de72b39 100644 (file)
@@ -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 },