pan/va: Handle 2-src blend in lower_split_src

Fixes assertion fail in shaders/dolphin/smg.1.shader_test

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16585>
This commit is contained in:
Alyssa Rosenzweig 2022-05-16 09:43:34 -04:00 committed by Marge Bot
parent 0576cad958
commit 444469d64e
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ lower_split_src(bi_context *ctx, bi_instr *I, unsigned s)
{
/* Fix up for mismatch between IR and Valhall BLEND */
if (I->op == BI_OPCODE_BLEND) {
assert(s == 1);
/* Only the blend descriptor needs lowering */
if (s != 1)
return;
/* But it is in a different place! */
s = 2;
}