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:
Kamil Kopryk
2022-06-30 16:04:32 +00:00
committed by Compute-Runtime-Automation
parent 34a7059032
commit 1ef5161a54
4 changed files with 2 additions and 13 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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,

View File

@ -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,