From a1a8ee9b11a10d1510926938617c2ae53dcd5527 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 26 May 2021 19:29:26 -0400 Subject: [PATCH] agx: Enable 1-bit load_const Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 5f0ca1f..d7b0f989 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -54,7 +54,7 @@ agx_emit_load_const(agx_builder *b, nir_load_const_instr *instr) /* Ensure we've been scalarized and bit size lowered */ unsigned bit_size = instr->def.bit_size; assert(instr->def.num_components == 1); - assert(bit_size == 16 || bit_size == 32); + assert(bit_size == 1 || bit_size == 16 || bit_size == 32); /* Emit move, later passes can inline/push if useful */ agx_mov_imm_to(b, -- 2.7.4