intel/compiler, anv: Delete cs_prog_data->slm_size

cs_prog_data->slm_size is basically redundant with
prog_data->total_shared, which is the field that we actually use for
controlling the shared local memory size in all drivers.  We were
still using it in one place for VK_EXT_pipeline_executable_properties,
but we should just fix that and delete the field.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7152>
This commit is contained in:
Kenneth Graunke 2020-10-14 14:52:37 -07:00 committed by Marge Bot
parent e881290979
commit 341f5bffb7
3 changed files with 1 additions and 3 deletions

View File

@ -969,7 +969,6 @@ struct brw_cs_prog_data {
struct brw_stage_prog_data base;
unsigned local_size[3];
unsigned slm_size;
/* Program offsets for the 8/16/32 SIMD variants. Multiple variants are
* kept when using variable group size, and the right one can only be

View File

@ -8975,7 +8975,6 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
char **error_str)
{
prog_data->base.total_shared = nir->info.cs.shared_size;
prog_data->slm_size = nir->shared_size;
/* Generate code for all the possible SIMD variants. */
bool generate_all;

View File

@ -2408,7 +2408,7 @@ VkResult anv_GetPipelineExecutableStatisticsKHR(
"Number of bytes of workgroup shared memory used by this "
"compute shader including any padding.");
stat->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
stat->value.u64 = brw_cs_prog_data_const(prog_data)->slm_size;
stat->value.u64 = prog_data->total_shared;
}
}