From: Jason Ekstrand Date: Thu, 25 Jul 2019 17:00:23 +0000 (-0500) Subject: intel/fs: Add SLM size to brw_cs_prog_data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d3cbd03939477eff0c417ff1cfab0e97eb77277;p=mesa.git intel/fs: Add SLM size to brw_cs_prog_data We don't need it for state setup but it's a useful statistic we want to pass on to developers. Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index b1d7fefa7d3..5eb9fc99406 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -879,6 +879,7 @@ struct brw_cs_prog_data { unsigned local_size[3]; unsigned simd_size; unsigned threads; + unsigned slm_size; bool uses_barrier; bool uses_num_work_groups; diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 80748833abc..ebac22d690c 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -8328,6 +8328,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, prog_data->local_size[0] = src_shader->info.cs.local_size[0]; prog_data->local_size[1] = src_shader->info.cs.local_size[1]; prog_data->local_size[2] = src_shader->info.cs.local_size[2]; + prog_data->slm_size = src_shader->num_shared; unsigned local_workgroup_size = src_shader->info.cs.local_size[0] * src_shader->info.cs.local_size[1] * src_shader->info.cs.local_size[2];