Mark Shared resource copy allocations as lockable
Related-To: NEO-5733 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
b18b4e8ad7
commit
2b956651a7
|
@ -180,6 +180,10 @@ TEST(GraphicsAllocationTest, whenAllocationTypeIsSvmGpuThenAllocationIsLockable)
|
|||
EXPECT_TRUE(GraphicsAllocation::isLockable(GraphicsAllocation::AllocationType::SVM_GPU));
|
||||
}
|
||||
|
||||
TEST(GraphicsAllocationTest, whenAllocationTypeIsSharedResourceCopyThenAllocationIsLockable) {
|
||||
EXPECT_TRUE(GraphicsAllocation::isLockable(GraphicsAllocation::AllocationType::SHARED_RESOURCE_COPY));
|
||||
}
|
||||
|
||||
TEST(GraphicsAllocationTest, whenAllocationTypeIsBufferCompressedThenAllocationIsNotLockable) {
|
||||
EXPECT_FALSE(GraphicsAllocation::isLockable(GraphicsAllocation::AllocationType::BUFFER_COMPRESSED));
|
||||
}
|
||||
|
|
|
@ -236,7 +236,8 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
|||
allocationType == AllocationType::BUFFER ||
|
||||
allocationType == AllocationType::BUFFER_HOST_MEMORY ||
|
||||
allocationType == AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER ||
|
||||
allocationType == AllocationType::SVM_GPU;
|
||||
allocationType == AllocationType::SVM_GPU ||
|
||||
allocationType == AllocationType::SHARED_RESOURCE_COPY;
|
||||
}
|
||||
|
||||
static bool isIsaAllocationType(GraphicsAllocation::AllocationType type) {
|
||||
|
|
Loading…
Reference in New Issue