mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add allocation type for Write Combined memory
Related-To: NEO-3392 Change-Id: I8c61b2ca2a25325d47095568703888688a2eb069 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
931bd04a99
commit
09e87879db
@ -74,6 +74,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
SVM_ZERO_COPY,
|
||||
TAG_BUFFER,
|
||||
TIMESTAMP_PACKET_TAG_BUFFER,
|
||||
WRITE_COMBINED
|
||||
};
|
||||
|
||||
virtual ~GraphicsAllocation();
|
||||
|
@ -224,6 +224,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
|
||||
case GraphicsAllocation::AllocationType::PRINTF_SURFACE:
|
||||
case GraphicsAllocation::AllocationType::PRIVATE_SURFACE:
|
||||
case GraphicsAllocation::AllocationType::SCRATCH_SURFACE:
|
||||
case GraphicsAllocation::AllocationType::WRITE_COMBINED:
|
||||
allow64KbPages = true;
|
||||
allow32Bit = true;
|
||||
default:
|
||||
@ -242,6 +243,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
|
||||
case GraphicsAllocation::AllocationType::BUFFER:
|
||||
case GraphicsAllocation::AllocationType::BUFFER_COMPRESSED:
|
||||
case GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY:
|
||||
case GraphicsAllocation::AllocationType::WRITE_COMBINED:
|
||||
forcePin = true;
|
||||
default:
|
||||
break;
|
||||
@ -261,6 +263,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
|
||||
case GraphicsAllocation::AllocationType::SVM_CPU:
|
||||
case GraphicsAllocation::AllocationType::SVM_GPU:
|
||||
case GraphicsAllocation::AllocationType::SVM_ZERO_COPY:
|
||||
case GraphicsAllocation::AllocationType::WRITE_COMBINED:
|
||||
mayRequireL3Flush = true;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user