mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +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
@@ -85,17 +85,4 @@ KernelHelper::ErrorCode KernelHelper::checkIfThereIsSpaceForScratchOrPrivate(Ker
|
||||
return KernelHelper::ErrorCode::SUCCESS;
|
||||
}
|
||||
|
||||
bool KernelHelper::isAnyArgumentPtrByValue(const KernelDescriptor &kernelDescriptor) {
|
||||
for (auto &argDescriptor : kernelDescriptor.payloadMappings.explicitArgs) {
|
||||
if (argDescriptor.type == NEO::ArgDescriptor::ArgTValue) {
|
||||
for (auto &element : argDescriptor.as<NEO::ArgDescValue>().elements) {
|
||||
if (element.isPtr) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -34,8 +34,6 @@ struct KernelHelper {
|
||||
return perHwThreadPrivateScratchSize * computeUnitsUsedForScratch;
|
||||
}
|
||||
static ErrorCode checkIfThereIsSpaceForScratchOrPrivate(KernelDescriptor::KernelAttributes attributes, Device *device);
|
||||
|
||||
static bool isAnyArgumentPtrByValue(const KernelDescriptor &kernelDescriptor);
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -54,9 +54,9 @@ struct KernelDescriptor {
|
||||
uint16_t numArgsToPatch = 0U;
|
||||
uint16_t numGrfRequired = GrfConfig::DefaultGrfNumber;
|
||||
uint8_t barrierCount = 0u;
|
||||
bool hasNonKernelArgLoad = false;
|
||||
bool hasNonKernelArgStore = false;
|
||||
bool hasNonKernelArgAtomic = false;
|
||||
bool hasNonKernelArgLoad = true;
|
||||
bool hasNonKernelArgStore = true;
|
||||
bool hasNonKernelArgAtomic = true;
|
||||
bool hasIndirectStatelessAccess = false;
|
||||
|
||||
AddressingMode bufferAddressingMode = BindfulAndStateless;
|
||||
|
||||
Reference in New Issue
Block a user