diff options
author | Jason Ekstrand <[email protected]> | 2016-08-22 16:56:48 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-09-03 08:23:07 -0700 |
commit | 42d03c204c3a2aee2dd1d3736085b86627e9d46f (patch) | |
tree | 15c0d03608966e27c6723451ee33c229282402a7 /src/intel/vulkan/genX_pipeline.c | |
parent | 6448c0e324084ce0322d9327d6ec2d9e383d0db8 (diff) |
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 7d8129de9e9..5a3e1ab2524 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); |