Add function to create devices bitfield based on allocation properties

Change-Id: Ic70443b1fb6106186efcff318690e434dc1db625
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2019-02-20 14:03:04 +01:00
committed by sys_ocldev
parent ce77425428
commit 798137e4bb
10 changed files with 53 additions and 5 deletions

View File

@@ -44,6 +44,7 @@ constexpr auto nonSharedResource = 0u;
}
class Gmm;
struct AllocationProperties;
class GraphicsAllocation : public IDNode<GraphicsAllocation> {
public:
@@ -165,6 +166,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
allocationType == AllocationType::TIMESTAMP_PACKET_TAG_BUFFER ||
allocationType == AllocationType::COMMAND_BUFFER;
}
static DevicesBitfield createBitfieldFromProperties(const AllocationProperties &properties);
protected:
constexpr static uint32_t objectNotResident = (uint32_t)-1;