From 667190d38a7afeeef39889a933b08c348503c071 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 10 Apr 2020 00:25:50 -0400 Subject: [PATCH] pan/bi: Assign blend descriptor for BLEND op Signed-off-by: Alyssa Rosenzweig Signed-off-by: Tomeu Vizoso Part-of: --- src/panfrost/bifrost/bi_pack.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index c17664362c5..5d3f9d1b8ba 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -158,6 +158,12 @@ bi_assign_uniform_constant_single( if (!ins) return assigned; + if (ins->type == BI_BLEND) { + assert(!assigned); + regs->uniform_constant = 0x8; + return true; + } + bi_foreach_src(ins, s) { if (s == 0 && (ins->type == BI_LOAD_VAR_ADDRESS || ins->type == BI_LOAD_ATTR)) continue; -- 2.30.2