mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
aco: Remove esgs_itemsize from LDS alignment calculation.
It was problematic to have it, because some shader stages might not even know about the esgs_itemsize, for example TCS and the merged VS+TCS stages. 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/3964>
This commit is contained in:
parent
ca342701c5
commit
4fc1da208e
1 changed files with 0 additions and 2 deletions
|
|
@ -2886,9 +2886,7 @@ void store_lds(isel_context *ctx, unsigned elem_size_bytes, Temp data, uint32_t
|
|||
|
||||
unsigned calculate_lds_alignment(isel_context *ctx, unsigned const_offset)
|
||||
{
|
||||
unsigned itemsize = ctx->program->info->vs.es_info.esgs_itemsize;
|
||||
unsigned align = 16;
|
||||
align = std::min(align, 1u << (ffs(itemsize) - 1));
|
||||
if (const_offset)
|
||||
align = std::min(align, 1u << (ffs(const_offset) - 1));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue