From 5c6952108c337e717df2607632b14275fc76b398 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 21 Apr 2020 19:35:01 -0400 Subject: pan/bi: Assert out multiple textures Only for a moment. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 }, -- cgit v1.2.3