Revert "Check IndirectStatelessCount from igc"

This reverts commit 5e62df4f8e.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-02-04 05:11:41 +01:00
committed by Compute-Runtime-Automation
parent f2c4231a27
commit 6f62a784e1
12 changed files with 18 additions and 77 deletions

View File

@@ -851,8 +851,7 @@ ze_result_t KernelImp::initialize(const ze_kernel_desc_t *desc) {
kernelHasIndirectAccess = kernelDescriptor.kernelAttributes.hasNonKernelArgLoad ||
kernelDescriptor.kernelAttributes.hasNonKernelArgStore ||
kernelDescriptor.kernelAttributes.hasNonKernelArgAtomic ||
getImmutableData()->getKernelInfo()->hasIndirectStatelessAccess;
kernelDescriptor.kernelAttributes.hasNonKernelArgAtomic;
if (this->usesRayTracing()) {
if (this->getImmutableData()->getDescriptor().payloadMappings.implicitArgs.rtDispatchGlobals.pointerSize > 0) {
@@ -979,7 +978,9 @@ Kernel *Kernel::create(uint32_t productFamily, Module *module,
}
bool KernelImp::hasIndirectAllocationsAllowed() const {
return kernelHasIndirectAccess && unifiedMemoryControls.anyIndirectAllocationsAllowed();
return (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
unifiedMemoryControls.indirectHostAllocationsAllowed ||
unifiedMemoryControls.indirectSharedAllocationsAllowed);
}
uint32_t KernelImp::getSlmTotalSize() const {

View File

@@ -139,7 +139,7 @@ struct KernelImp : Kernel {
return ZE_RESULT_SUCCESS;
}
bool hasIndirectAccess() const {
bool hasIndirectAccess() {
return kernelHasIndirectAccess;
}