mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Revert "feature: check indirect access for kernel"
This reverts commit 075c96267d.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a7075f9ffb
commit
4a369ad88d
@@ -924,15 +924,9 @@ ze_result_t KernelImp::initialize(const ze_kernel_desc_t *desc) {
|
||||
residencyContainer.insert(residencyContainer.end(), kernelImmData->getResidencyContainer().begin(),
|
||||
kernelImmData->getResidencyContainer().end());
|
||||
|
||||
if (kernelAttributes.binaryFormat != NEO::DeviceBinaryFormat::Zebin) {
|
||||
kernelHasIndirectAccess = true;
|
||||
} else {
|
||||
kernelHasIndirectAccess = kernelDescriptor.kernelAttributes.hasNonKernelArgLoad ||
|
||||
kernelDescriptor.kernelAttributes.hasNonKernelArgStore ||
|
||||
kernelDescriptor.kernelAttributes.hasNonKernelArgAtomic ||
|
||||
kernelDescriptor.kernelAttributes.hasIndirectStatelessAccess ||
|
||||
NEO::KernelHelper::isAnyArgumentPtrByValue(kernelDescriptor);
|
||||
}
|
||||
kernelHasIndirectAccess = kernelDescriptor.kernelAttributes.hasNonKernelArgLoad ||
|
||||
kernelDescriptor.kernelAttributes.hasNonKernelArgStore ||
|
||||
kernelDescriptor.kernelAttributes.hasNonKernelArgAtomic;
|
||||
|
||||
if (this->usesRayTracing()) {
|
||||
uint32_t bvhLevels = NEO::RayTracingHelper::maxBvhLevels;
|
||||
@@ -1066,9 +1060,9 @@ Kernel *Kernel::create(uint32_t productFamily, Module *module,
|
||||
}
|
||||
|
||||
bool KernelImp::hasIndirectAllocationsAllowed() const {
|
||||
return this->kernelHasIndirectAccess && (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectHostAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectSharedAllocationsAllowed);
|
||||
return (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectHostAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectSharedAllocationsAllowed);
|
||||
}
|
||||
|
||||
uint32_t KernelImp::getSlmTotalSize() const {
|
||||
|
||||
@@ -225,7 +225,7 @@ struct KernelImp : Kernel {
|
||||
|
||||
ze_cache_config_flags_t cacheConfigFlags = 0u;
|
||||
|
||||
bool kernelHasIndirectAccess = false;
|
||||
bool kernelHasIndirectAccess = true;
|
||||
|
||||
std::unique_ptr<NEO::ImplicitArgs> pImplicitArgs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user