mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
anv: fix binding table entry count for compute shaders
We're not using a binding table entry anymore for num_workgroups.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 02294961ee ("anv: stop using a binding table entry for gl_NumWorkgroups")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31799>
This commit is contained in:
parent
fc2aecd2c9
commit
3a5b9ee59e
2 changed files with 2 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ get_interface_descriptor_data(struct anv_cmd_buffer *cmd_buffer,
|
|||
.BindingTablePointer = cmd_buffer->state.binding_tables[MESA_SHADER_COMPUTE].offset,
|
||||
/* Typically set to 0 to avoid prefetching on every thread dispatch. */
|
||||
.BindingTableEntryCount = devinfo->verx10 == 125 ?
|
||||
0 : 1 + MIN2(shader->bind_map.surface_count, 30),
|
||||
0 : MIN2(shader->bind_map.surface_count, 30),
|
||||
.NumberofThreadsinGPGPUThreadGroup = dispatch->threads,
|
||||
.SharedLocalMemorySize = intel_compute_slm_encode_size(GFX_VER, prog_data->base.total_shared),
|
||||
.PreferredSLMAllocationSize =
|
||||
|
|
|
|||
|
|
@ -2202,7 +2202,7 @@ genX(compute_pipeline_emit)(struct anv_compute_pipeline *pipeline)
|
|||
* Typically set to 0 to avoid prefetching on every thread dispatch.
|
||||
*/
|
||||
.BindingTableEntryCount = devinfo->verx10 == 125 ?
|
||||
0 : 1 + MIN2(pipeline->cs->bind_map.surface_count, 30),
|
||||
0 : MIN2(pipeline->cs->bind_map.surface_count, 30),
|
||||
.BarrierEnable = cs_prog_data->uses_barrier,
|
||||
.SharedLocalMemorySize =
|
||||
intel_compute_slm_encode_size(GFX_VER, cs_prog_data->base.total_shared),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue