Add missing cache flush for blocked path

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-12-07 08:40:35 +00:00
committed by Compute-Runtime-Automation
parent fca0d03c90
commit 0c49fa8203
5 changed files with 58 additions and 8 deletions

View File

@@ -350,6 +350,8 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
uint64_t dispatchHints = 0;
bool isTextureCacheFlushNeeded(uint32_t commandType) const;
protected:
void *enqueueReadMemObjForMap(TransferProperties &transferProperties, EventsRequest &eventsRequest, cl_int &errcodeRet);
cl_int enqueueWriteMemObjForUnmap(MemObj *memObj, void *mappedPtr, EventsRequest &eventsRequest);
@@ -370,7 +372,6 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
bool queueDependenciesClearRequired() const;
bool blitEnqueueAllowed(const CsrSelectionArgs &args) const;
bool isTextureCacheFlushNeeded(uint32_t commandType) const;
inline bool shouldFlushDC(uint32_t commandType, PrintfHandler *printfHandler) const {
return (commandType == CL_COMMAND_READ_BUFFER ||
commandType == CL_COMMAND_READ_BUFFER_RECT ||