aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimur Kristóf <[email protected]>2020-02-18 20:21:20 +0100
committerMarge Bot <[email protected]>2020-03-11 08:34:10 +0000
commit4fc1da208efa6333ce4fa6836d0348313085d635 (patch)
tree2001407a02ded7085ee768ced4d2b68d7fa71d34 /src
parentca342701c578575f842a679680c4be2d79ba1873 (diff)
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 <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>
Diffstat (limited to 'src')
-rw-r--r--src/amd/compiler/aco_instruction_selection.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index 855021df108..4f6b3aa8190 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -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));