ac, aco, radv: Clarify LDS size on GFX6, and NGG shaders.
This information was wrong in some places, let's fix it now. GFX6: The GPU has 64KB LDS, but only 32KB is usable by a workgroup. NGG: There was some misinformation about NGG only being able to address 32 KB LDS, it turns out this is actually not true and it can address the full 64K. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21935>
This commit is contained in:
@@ -254,8 +254,6 @@ setup_vs_variables(isel_context* ctx, nir_shader* nir)
|
||||
if (ctx->stage == vertex_ngg) {
|
||||
ctx->program->config->lds_size =
|
||||
DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule);
|
||||
assert((ctx->program->config->lds_size * ctx->program->dev.lds_encoding_granule) <
|
||||
(32 * 1024));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,8 +283,6 @@ setup_tes_variables(isel_context* ctx, nir_shader* nir)
|
||||
if (ctx->stage == tess_eval_ngg) {
|
||||
ctx->program->config->lds_size =
|
||||
DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule);
|
||||
assert((ctx->program->config->lds_size * ctx->program->dev.lds_encoding_granule) <
|
||||
(32 * 1024));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +291,6 @@ setup_ms_variables(isel_context* ctx, nir_shader* nir)
|
||||
{
|
||||
ctx->program->config->lds_size =
|
||||
DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule);
|
||||
assert((ctx->program->config->lds_size * ctx->program->dev.lds_encoding_granule) < (32 * 1024));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user