summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-08-22 16:56:48 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-09-03 08:23:07 -0700
commit42d03c204c3a2aee2dd1d3736085b86627e9d46f (patch)
tree15c0d03608966e27c6723451ee33c229282402a7 /src/intel/vulkan/genX_pipeline.c
parent6448c0e324084ce0322d9327d6ec2d9e383d0db8 (diff)
downloadexternal_mesa3d-42d03c204c3a2aee2dd1d3736085b86627e9d46f.zip
external_mesa3d-42d03c204c3a2aee2dd1d3736085b86627e9d46f.tar.gz
external_mesa3d-42d03c204c3a2aee2dd1d3736085b86627e9d46f.tar.bz2
anv: Refactor pipeline l3 config setup
Now that we're using gen_l3_config.c, we no longer have one set of l3 config functions per gen and we can simplify a bit. Also, we know that only compute uses SLM so we don't need to look for it in all of the stages. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 7d8129d..5a3e1ab 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -85,10 +85,10 @@ genX(compute_pipeline_create)(
pipeline->use_repclear = false;
- anv_setup_pipeline_l3_config(pipeline);
-
const struct brw_cs_prog_data *cs_prog_data = get_cs_prog_data(pipeline);
+ anv_pipeline_setup_l3_config(pipeline, cs_prog_data->base.total_shared > 0);
+
uint32_t group_size = cs_prog_data->local_size[0] *
cs_prog_data->local_size[1] * cs_prog_data->local_size[2];
uint32_t remainder = group_size & (cs_prog_data->simd_size - 1);