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:
parent
0576cad958
commit
444469d64e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue