From: Alyssa Rosenzweig Date: Fri, 10 Apr 2020 04:25:50 +0000 (-0400) Subject: pan/bi: Assign blend descriptor for BLEND op X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=667190d38a7afeeef39889a933b08c348503c071;p=mesa.git pan/bi: Assign blend descriptor for BLEND op Signed-off-by: Alyssa Rosenzweig Signed-off-by: Tomeu Vizoso Part-of: --- 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;