Turn on caching if buffers are set as constant args.

- If resources is constant arg it means it will only be read
- Therefore even for read_write buffer we may turn on caching.

Change-Id: Id2c34d4993111bf5c6523a1946464c397db95686
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-07-31 13:14:59 +02:00
committed by sys_ocldev
parent e57682a8a9
commit f0d3b47886
12 changed files with 88 additions and 28 deletions

View File

@@ -1498,7 +1498,7 @@ class DrmMockBuffer : public Buffer {
gfxAllocation(alloc) {
}
void setArgStateful(void *memory, bool forceNonAuxMode, bool disableL3Cache) override {
void setArgStateful(void *memory, bool forceNonAuxMode, bool disableL3Cache, bool isReadOnly) override {
}
protected: