mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
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:
committed by
Compute-Runtime-Automation
parent
ff380058de
commit
ac7d936942
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user