mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
aco: allow to load/store 16-bit values in VMEM for tess and geom
We only have to adjust some assertions to allow storing/loading 16-bit values. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4966>
This commit is contained in:
parent
9bd3b67163
commit
860b4d16f4
1 changed files with 3 additions and 3 deletions
|
|
@ -3940,7 +3940,7 @@ void store_vmem_mubuf(isel_context *ctx, Temp src, Temp descriptor, Temp voffset
|
|||
bool allow_combining = true, bool reorder = true, bool slc = false)
|
||||
{
|
||||
Builder bld(ctx->program, ctx->block);
|
||||
assert(elem_size_bytes == 4 || elem_size_bytes == 8);
|
||||
assert(elem_size_bytes == 2 || elem_size_bytes == 4 || elem_size_bytes == 8);
|
||||
assert(write_mask);
|
||||
write_mask = widen_mask(write_mask, elem_size_bytes);
|
||||
|
||||
|
|
@ -3960,8 +3960,8 @@ void load_vmem_mubuf(isel_context *ctx, Temp dst, Temp descriptor, Temp voffset,
|
|||
unsigned base_const_offset, unsigned elem_size_bytes, unsigned num_components,
|
||||
unsigned stride = 0u, bool allow_combining = true, bool allow_reorder = true)
|
||||
{
|
||||
assert(elem_size_bytes == 4 || elem_size_bytes == 8);
|
||||
assert((num_components * elem_size_bytes / 4) == dst.size());
|
||||
assert(elem_size_bytes == 2 || elem_size_bytes == 4 || elem_size_bytes == 8);
|
||||
assert((num_components * elem_size_bytes) == dst.bytes());
|
||||
assert(!!stride != allow_combining);
|
||||
|
||||
Builder bld(ctx->program, ctx->block);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue