Require cpu access for constant surface

Related-To: NEO-3234

Change-Id: Ie0ccd3d3fc144400e63123d6c27b228bb7207f33
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-06-13 10:58:38 +02:00
committed by sys_ocldev
parent e373b8deac
commit 145f5b20e9
2 changed files with 8 additions and 3 deletions

View File

@@ -170,10 +170,11 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
virtual uint64_t peekInternalHandle(MemoryManager *memoryManager) { return 0llu; }
static bool isCpuAccessRequired(AllocationType allocationType) {
return allocationType == AllocationType::LINEAR_STREAM ||
return allocationType == AllocationType::COMMAND_BUFFER ||
allocationType == AllocationType::CONSTANT_SURFACE ||
allocationType == AllocationType::INTERNAL_HEAP ||
allocationType == AllocationType::TIMESTAMP_PACKET_TAG_BUFFER ||
allocationType == AllocationType::COMMAND_BUFFER;
allocationType == AllocationType::LINEAR_STREAM ||
allocationType == AllocationType::TIMESTAMP_PACKET_TAG_BUFFER;
}
void *getReservedAddressPtr() const {
return this->reservedAddressRangeInfo.addressPtr;