mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
aco: Allow 1-byte loads and stores with load/store_buffer_amd
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15034>
This commit is contained in:
parent
1ee3d49e3e
commit
10ebfb3bf2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue