From 23488c35152c58a3f15bde6ade658959de94ff9a Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 14 Dec 2020 13:18:39 +0000 Subject: [PATCH] aco: allow divergent mbcnt_amd masks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index f7a33054a41..4fcdad199d3 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -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;