mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
service read_only memory passed to CreateBuffer
- only when cl_mem_flags allows for read only memory and USE_HOST_PTR is used Change-Id: Id023f9cb551f7d81ec680de9cc546005980e6f75
This commit is contained in:
committed by
sys_ocldev
parent
385fcdb7ca
commit
76dd4ac1f3
@@ -185,7 +185,7 @@ class MemoryManager {
|
||||
return createGraphicsAllocationWithRequiredBitness(size, ptr, false);
|
||||
}
|
||||
|
||||
GraphicsAllocation *createGraphicsAllocationWithRequiredBitness(size_t size, void *ptr, bool forcePin) {
|
||||
MOCKABLE_VIRTUAL GraphicsAllocation *createGraphicsAllocationWithRequiredBitness(size_t size, void *ptr, bool forcePin) {
|
||||
if (force32bitAllocations && is64bit) {
|
||||
return allocate32BitGraphicsMemory(size, ptr, MemoryType::EXTERNAL_ALLOCATION);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user