mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
i965: use L3 data cache for SSBOs
Anv programs the hardware to use L3 data cache if we use either SSBOs or images in the shaders, we can program i965 the same way. gl_shader_program has a bit of a confusing named field with 'NumAtomicBuffers'. It doesn't tell how many buffers are accessed by the shader in an atomic way but instead the number of atomic counters manipulated by the shader. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
a40640f530
commit
d51c1f9d51
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,8 @@ get_pipeline_state_l3_weights(const struct brw_context *brw)
|
|||
brw->ctx._Shader->CurrentProgram[stage_states[i]->stage];
|
||||
const struct brw_stage_prog_data *prog_data = stage_states[i]->prog_data;
|
||||
|
||||
needs_dc |= (prog && prog->NumAtomicBuffers) ||
|
||||
needs_dc |= (prog && (prog->NumAtomicBuffers ||
|
||||
prog->NumShaderStorageBlocks)) ||
|
||||
(prog_data && (prog_data->total_scratch || prog_data->nr_image_params));
|
||||
needs_slm |= prog_data && prog_data->total_shared;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue