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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user