aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-21 19:35:01 -0400
committerMarge Bot <[email protected]>2020-04-22 01:01:18 +0000
commit5c6952108c337e717df2607632b14275fc76b398 (patch)
treefdb5e5c4ab0a69a21b7371aef02e287828ad860e /src/panfrost/bifrost
parent3551c138deb631fbe3e4710b8d4a862b79d3e360 (diff)
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>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r--src/panfrost/bifrost/bifrost_compile.c4
1 files changed, 4 insertions, 0 deletions
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 },