DRM Graphic allocation assigns original hostPtr as cpuPtr

Change-Id: I9ba282b130b5fb9b674e1ceb2f87183f218ab140
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
This commit is contained in:
Dongwon Kim
2019-08-14 16:23:57 -07:00
committed by sys_ocldev
parent 04c45967b9
commit 25d9e4533d
5 changed files with 6 additions and 7 deletions

View File

@@ -18,8 +18,7 @@ bool isL3Capable(void *ptr, size_t size) {
}
bool isL3Capable(const NEO::GraphicsAllocation &graphicsAllocation) {
auto ptr = ptrOffset(graphicsAllocation.getUnderlyingBuffer(), static_cast<size_t>(graphicsAllocation.getAllocationOffset()));
return isL3Capable(ptr, graphicsAllocation.getUnderlyingBufferSize());
return isL3Capable(graphicsAllocation.getUnderlyingBuffer(), graphicsAllocation.getUnderlyingBufferSize());
}
} // namespace NEO