mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct check if binding table prefetch is supported
Remove redundant resetBindingTablePrefetch function, disable binding table prefetch on xe platforms in OCL. Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
34a7059032
commit
1ef5161a54
@ -106,8 +106,6 @@ struct HardwareCommandsHelper : public PerThreadDataHelper {
|
||||
size_t &sizePerThreadDataTotal,
|
||||
size_t &localWorkItems);
|
||||
|
||||
inline static bool resetBindingTablePrefetch();
|
||||
|
||||
static size_t getSizeRequiredCS();
|
||||
static size_t getSizeRequiredForCacheFlush(const CommandQueue &commandQueue, const Kernel *kernel, uint64_t postSyncAddress);
|
||||
|
||||
|
@ -249,7 +249,8 @@ size_t HardwareCommandsHelper<GfxFamily>::sendIndirectState(
|
||||
uint64_t offsetInterfaceDescriptor = offsetInterfaceDescriptorTable + interfaceDescriptorIndex * sizeof(INTERFACE_DESCRIPTOR_DATA);
|
||||
|
||||
auto bindingTablePrefetchSize = std::min(31u, static_cast<uint32_t>(kernel.getNumberOfBindingTableStates()));
|
||||
if (resetBindingTablePrefetch()) {
|
||||
|
||||
if (!EncodeSurfaceState<GfxFamily>::doBindingTablePrefetch()) {
|
||||
bindingTablePrefetchSize = 0;
|
||||
}
|
||||
|
||||
|
@ -138,11 +138,6 @@ size_t HardwareCommandsHelper<GfxFamily>::sendCrossThreadData(
|
||||
return offsetCrossThreadData + static_cast<size_t>(indirectHeap.getHeapGpuStartOffset());
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool HardwareCommandsHelper<GfxFamily>::resetBindingTablePrefetch() {
|
||||
return !EncodeSurfaceState<GfxFamily>::doBindingTablePrefetch();
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void HardwareCommandsHelper<GfxFamily>::setInterfaceDescriptorOffset(
|
||||
WALKER_TYPE *walkerCmd,
|
||||
|
@ -154,11 +154,6 @@ size_t HardwareCommandsHelper<GfxFamily>::sendCrossThreadData(
|
||||
return offsetCrossThreadData + static_cast<size_t>(is64bit ? indirectHeap.getHeapGpuStartOffset() : indirectHeap.getHeapGpuBase());
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool HardwareCommandsHelper<GfxFamily>::resetBindingTablePrefetch() {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void HardwareCommandsHelper<GfxFamily>::setInterfaceDescriptorOffset(
|
||||
WALKER_TYPE *walkerCmd,
|
||||
|
Reference in New Issue
Block a user