mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
refactor: correct naming of allocation types
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eac3d2130d
commit
b182917d9d
@@ -633,7 +633,7 @@ TEST_P(CreateImageNoHostPtr, whenImageIsCreatedThenItHasProperAccessAndCacheProp
|
||||
ASSERT_NE(nullptr, image);
|
||||
|
||||
auto allocation = image->getGraphicsAllocation(context->getDevice(0)->getRootDeviceIndex());
|
||||
EXPECT_TRUE(allocation->getAllocationType() == AllocationType::IMAGE);
|
||||
EXPECT_TRUE(allocation->getAllocationType() == AllocationType::image);
|
||||
|
||||
auto isImageWritable = !(flags & (CL_MEM_READ_ONLY | CL_MEM_HOST_READ_ONLY | CL_MEM_HOST_NO_ACCESS));
|
||||
EXPECT_EQ(isImageWritable, allocation->isMemObjectsAllocationWithWritableFlags());
|
||||
|
||||
Reference in New Issue
Block a user