mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Fix l0 kernel set arg buffer caching
Fix for incorrect cache hit if alloc id was uninitialized and allocations counter was the same. Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6cf8b4daca
commit
526ba1bde5
@@ -536,7 +536,9 @@ ze_result_t KernelImp::setArgBuffer(uint32_t argIndex, size_t argSize, const voi
|
||||
NEO::SvmAllocationData *allocData = nullptr;
|
||||
if (argVal != nullptr) {
|
||||
const auto requestedAddress = *reinterpret_cast<void *const *>(argVal);
|
||||
if (argInfo.allocId > 0 && requestedAddress == argInfo.value) {
|
||||
if (argInfo.allocId > 0 &&
|
||||
argInfo.allocId < NEO::SvmAllocationData::uninitializedAllocId &&
|
||||
requestedAddress == argInfo.value) {
|
||||
bool reuseFromCache = false;
|
||||
if (allocationsCounter > 0) {
|
||||
if (allocationsCounter == argInfo.allocIdMemoryManagerCounter) {
|
||||
|
||||
Reference in New Issue
Block a user