mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user