assert(cs_prog_data->push.cross_thread.regs == 0);
#endif
desc.BarrierEnable = cs_prog_data->uses_barrier;
- desc.BindingTableEntryCount = MIN2(shader->bt.size_bytes / 4, 31);
+ /* Typically set to 0 to avoid prefetching on every thread dispatch. */
+ desc.BindingTableEntryCount = devinfo->verx10 == 125 ?
+ 0 : MIN2(shader->bt.size_bytes / 4, 31);
desc.SamplerCount = encode_sampler_count(shader);
#if GFX_VER >= 12
/* TODO: Check if we are missing workarounds and enable mid-thread
.SamplerStatePointer = shs->sampler_table.offset,
.SamplerCount = encode_sampler_count(shader),
.BindingTablePointer = binder->bt_offset[MESA_SHADER_COMPUTE],
- .BindingTableEntryCount = MIN2(shader->bt.size_bytes / 4, 31),
+ /* Typically set to 0 to avoid prefetching on every thread dispatch. */
+ .BindingTableEntryCount = devinfo->verx10 == 125 ?
+ 0 : MIN2(shader->bt.size_bytes / 4, 31),
};
assert(brw_cs_push_const_total_size(cs_prog_data, dispatch.threads) == 0);
cmd_buffer->state.samplers[MESA_SHADER_COMPUTE].offset,
.BindingTablePointer =
cmd_buffer->state.binding_tables[MESA_SHADER_COMPUTE].offset,
- .BindingTableEntryCount =
- 1 + MIN2(pipeline->cs->bind_map.surface_count, 30),
+ /* 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),
.NumberofThreadsinGPGPUThreadGroup = dispatch.threads,
.SharedLocalMemorySize = encode_slm_size(GFX_VER,
prog_data->base.total_shared),
.SamplerCount = GFX_VER == 11 ? 0 : get_sampler_count(cs_bin),
/* We add 1 because the CS indirect parameters buffer isn't accounted
* for in bind_map.surface_count.
+ *
+ * Typically set to 0 to avoid prefetching on every thread dispatch.
*/
- .BindingTableEntryCount = 1 + MIN2(cs_bin->bind_map.surface_count, 30),
+ .BindingTableEntryCount = devinfo->verx10 == 125 ?
+ 0 : 1 + MIN2(pipeline->cs->bind_map.surface_count, 30),
.BarrierEnable = cs_prog_data->uses_barrier,
.SharedLocalMemorySize =
encode_slm_size(GFX_VER, cs_prog_data->base.total_shared),