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-Tag: upstream/19.3.0~2977 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d3cbd03939477eff0c417ff1cfab0e97eb77277;p=platform%2Fupstream%2Fmesa.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 b1d7fef..5eb9fc9 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 8074883..ebac22d 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];