pan/bi: Allow non-terminal BLEND operations

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8417>
This commit is contained in:
Boris Brezillon 2021-01-08 14:41:46 +01:00 committed by Marge Bot
parent 4439757db2
commit e012161aee

View file

@ -692,12 +692,6 @@ bi_collect_blend_ret_addr(bi_context *ctx, struct util_dynarray *emission,
if (!ins || ins->op != BI_OPCODE_BLEND)
return;
/* We don't support non-terminal blend instructions yet.
* That would requires fixing blend shaders to restore the registers
* they use before jumping back to the fragment shader, which is
* currently not supported.
*/
assert(0);
unsigned loc = bundle->regs.fau_idx - BIR_FAU_BLEND_0;
assert(loc < ARRAY_SIZE(ctx->blend_ret_offsets));