fix: invalidate texture cache for BCS image write

Related-To: NEO-15029

If BCS is writing new data to an image, texture cache
should be invalidated as it might contain stale data for
that image.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-06-13 11:39:26 +00:00
committed by Compute-Runtime-Automation
parent ff380058de
commit ac7d936942
11 changed files with 268 additions and 24 deletions

View File

@@ -976,11 +976,10 @@ TaskCountType CommandQueue::peekBcsTaskCount(aub_stream::EngineType bcsEngineTyp
bool CommandQueue::isTextureCacheFlushNeeded(uint32_t commandType) const {
auto isDirectSubmissionEnabled = getGpgpuCommandStreamReceiver().isDirectSubmissionEnabled();
switch (commandType) {
case CL_COMMAND_COPY_IMAGE:
case CL_COMMAND_WRITE_IMAGE:
case CL_COMMAND_FILL_IMAGE:
if (this->isImageWriteOperation(commandType)) {
return isDirectSubmissionEnabled;
}
switch (commandType) {
case CL_COMMAND_READ_IMAGE:
case CL_COMMAND_COPY_IMAGE_TO_BUFFER:
return isDirectSubmissionEnabled && getDevice().getGfxCoreHelper().isCacheFlushPriorImageReadRequired();