aco: allow divergent mbcnt_amd masks

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8085>
This commit is contained in:
Rhys Perry 2020-12-14 13:18:39 +00:00 committed by Marge Bot
parent feee375db9
commit 23488c3515

View file

@ -131,7 +131,7 @@ Temp emit_mbcnt(isel_context *ctx, Temp dst, Operand mask = Operand(), Operand b
{
Builder bld(ctx->program, ctx->block);
assert(mask.isUndefined() || mask.isTemp() || (mask.isFixed() && mask.physReg() == exec));
assert(mask.isUndefined() || mask.regClass() == bld.lm);
assert(mask.isUndefined() || mask.bytes() == bld.lm.bytes());
if (ctx->program->wave_size == 32) {
Operand mask_lo = mask.isUndefined() ? Operand(-1u) : mask;