From 10ebfb3bf22e0524f3b119711fafcaadcf1bcb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 10 Feb 2022 23:53:24 +0100 Subject: [PATCH] aco: Allow 1-byte loads and stores with load/store_buffer_amd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 4b3f87949c2..b709c476405 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -4647,7 +4647,7 @@ store_vmem_mubuf(isel_context* ctx, Temp src, Temp descriptor, Temp voffset, Tem bool slc = false) { Builder bld(ctx->program, ctx->block); - assert(elem_size_bytes == 2 || elem_size_bytes == 4 || elem_size_bytes == 8); + assert(elem_size_bytes == 1 || elem_size_bytes == 2 || elem_size_bytes == 4 || elem_size_bytes == 8); assert(write_mask); write_mask = util_widen_mask(write_mask, elem_size_bytes); @@ -4670,7 +4670,7 @@ load_vmem_mubuf(isel_context* ctx, Temp dst, Temp descriptor, Temp voffset, Temp unsigned stride = 0u, bool allow_combining = true, bool allow_reorder = true, bool slc = false) { - assert(elem_size_bytes == 2 || elem_size_bytes == 4 || elem_size_bytes == 8); + assert(elem_size_bytes == 1 || elem_size_bytes == 2 || elem_size_bytes == 4 || elem_size_bytes == 8); assert((num_components * elem_size_bytes) == dst.bytes()); assert(!!stride != allow_combining);