aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost_compile.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-30 16:10:55 -0400
committerMarge Bot <[email protected]>2020-05-01 00:27:23 +0000
commit5f35cdaa8dd78ee97bccdab82ef21b6ad6fe1108 (patch)
treedfb7f93a1985d7a54fdb2138691c1fb59074b20a /src/panfrost/bifrost/bifrost_compile.c
parentfc634dc3b2792bd84acb0f5aafd83863ac3c4528 (diff)
pan/bi: Pipe multiple textures through
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4844>
Diffstat (limited to 'src/panfrost/bifrost/bifrost_compile.c')
-rw-r--r--src/panfrost/bifrost/bifrost_compile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index ca4aa427b49..cd659809a62 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -692,13 +692,13 @@ 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 },
+ .texture = {
+ .texture_index = instr->texture_index,
+ .sampler_index = instr->sampler_index,
+ },
.dest = pan_dest_index(&instr->dest),
.dest_type = instr->dest_type,
.src_types = { nir_type_float32, nir_type_float32 },