mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Reuse graphics allocation from mapped buffers in OpenCL
Related-To: NEO-6352 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f164acad0b
commit
f1b6b733f0
@@ -397,8 +397,8 @@ MapOperationsHandler *MemObj::getMapOperationsHandlerIfExists() {
|
||||
|
||||
bool MemObj::addMappedPtr(void *ptr, size_t ptrLength, cl_map_flags &mapFlags,
|
||||
MemObjSizeArray &size, MemObjOffsetArray &offset,
|
||||
uint32_t mipLevel) {
|
||||
return getMapOperationsHandler().add(ptr, ptrLength, mapFlags, size, offset, mipLevel);
|
||||
uint32_t mipLevel, GraphicsAllocation *graphicsAllocation) {
|
||||
return getMapOperationsHandler().add(ptr, ptrLength, mapFlags, size, offset, mipLevel, graphicsAllocation);
|
||||
}
|
||||
|
||||
bool MemObj::findMappedPtr(void *mappedPtr, MapInfo &outMapInfo) {
|
||||
|
||||
Reference in New Issue
Block a user