summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-07-25 12:00:23 -0500
committerJason Ekstrand <[email protected]>2019-08-12 22:56:07 +0000
commit8d3cbd03939477eff0c417ff1cfab0e97eb77277 (patch)
treed42362523f48c643484ae3c36012119763e0c68a /src/intel/compiler
parent134607760ac20f795cbc034eb4071bade8058958 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_compiler.h1
-rw-r--r--src/intel/compiler/brw_fs.cpp1
2 files changed, 2 insertions, 0 deletions
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];