diff --git a/opencl/source/helpers/hardware_commands_helper.inl b/opencl/source/helpers/hardware_commands_helper.inl index 3c1a743994..fe06ad235a 100644 --- a/opencl/source/helpers/hardware_commands_helper.inl +++ b/opencl/source/helpers/hardware_commands_helper.inl @@ -204,6 +204,8 @@ size_t HardwareCommandsHelper::sendInterfaceDescriptorData( auto samplerCountState = static_cast((numSamplers + 3) / 4); pInterfaceDescriptor->setSamplerCount(samplerCountState); + pInterfaceDescriptor->setBindingTableEntryCount(bindingTablePrefetchSize); + auto programmableIDSLMSize = static_cast(computeSlmValues(kernel.slmTotalSize)); pInterfaceDescriptor->setSharedLocalMemorySize(programmableIDSLMSize); @@ -213,8 +215,6 @@ size_t HardwareCommandsHelper::sendInterfaceDescriptorData( PreemptionHelper::programInterfaceDescriptorDataPreemption(pInterfaceDescriptor, preemptionMode); HardwareCommandsHelper::adjustInterfaceDescriptorData(pInterfaceDescriptor, kernel.getDevice().getHardwareInfo()); - pInterfaceDescriptor->setBindingTableEntryCount(bindingTablePrefetchSize); - return (size_t)offsetInterfaceDescriptor; }