fix: flush caches after filling image

Related-To: NEO-14454

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-03-25 09:35:15 +00:00
committed by Compute-Runtime-Automation
parent 77a66e5ec2
commit d04ac3d60f
2 changed files with 10 additions and 3 deletions

View File

@@ -994,7 +994,14 @@ TaskCountType CommandQueue::peekBcsTaskCount(aub_stream::EngineType bcsEngineTyp
}
bool CommandQueue::isTextureCacheFlushNeeded(uint32_t commandType) const {
return (commandType == CL_COMMAND_COPY_IMAGE || commandType == CL_COMMAND_WRITE_IMAGE) && getGpgpuCommandStreamReceiver().isDirectSubmissionEnabled();
switch (commandType) {
case CL_COMMAND_COPY_IMAGE:
case CL_COMMAND_WRITE_IMAGE:
case CL_COMMAND_FILL_IMAGE:
return getGpgpuCommandStreamReceiver().isDirectSubmissionEnabled();
default:
return false;
}
}
IndirectHeap &CommandQueue::getIndirectHeap(IndirectHeapType heapType, size_t minRequiredSize) {