@@ -334,10 +334,10 @@ TEST(Buffer, givenAllocHostPtrFlagWhenAllocationTypeIsQueriedThenBufferHostMemor
334
334
EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY, type);
335
335
}
336
336
337
- TEST (Buffer, givenUseHostPtrFlagAndRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenBufferCompressedTypeIsReturned ) {
337
+ TEST (Buffer, givenUseHostPtrFlagAndRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenBufferHostMemoryTypeIsReturned ) {
338
338
cl_mem_flags flags = CL_MEM_USE_HOST_PTR;
339
339
auto type = MockPublicAccessBuffer::getGraphicsAllocationType (flags, false , true );
340
- EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_COMPRESSED , type);
340
+ EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY , type);
341
341
}
342
342
343
343
TEST (Buffer, givenAllocHostPtrFlagAndRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenBufferCompressedTypeIsReturned) {
@@ -395,7 +395,7 @@ struct RenderCompressedBuffersTests : public ::testing::Test {
395
395
std::unique_ptr<Buffer> buffer;
396
396
};
397
397
398
- TEST_F (RenderCompressedBuffersTests, givenBufferCompressedAllocationAndZeroCopyHostPtrWhenCheckingMemoryPropertiesThenForceDisableZeroCopyAndAllocateStorage ) {
398
+ TEST_F (RenderCompressedBuffersTests, givenBufferCompressedAllocationAndZeroCopyHostPtrWhenCheckingMemoryPropertiesThenUseHostPtrAndDontAllocateStorage ) {
399
399
localHwInfo.capabilityTable .ftrRenderCompressedBuffers = false ;
400
400
401
401
void *cacheAlignedHostPtr = alignedMalloc (MemoryConstants::cacheLineSize, MemoryConstants::cacheLineSize);
@@ -419,9 +419,9 @@ TEST_F(RenderCompressedBuffersTests, givenBufferCompressedAllocationAndZeroCopyH
419
419
420
420
localHwInfo.capabilityTable .ftrRenderCompressedBuffers = true ;
421
421
buffer.reset (Buffer::create (context.get (), CL_MEM_USE_HOST_PTR, MemoryConstants::cacheLineSize, cacheAlignedHostPtr, retVal));
422
- EXPECT_NE (cacheAlignedHostPtr, buffer->getGraphicsAllocation ()->getUnderlyingBuffer ());
423
- EXPECT_FALSE (buffer->isMemObjZeroCopy ());
424
- EXPECT_EQ (buffer->getGraphicsAllocation ()->getAllocationType (), GraphicsAllocation::AllocationType::BUFFER_COMPRESSED );
422
+ EXPECT_EQ (cacheAlignedHostPtr, buffer->getGraphicsAllocation ()->getUnderlyingBuffer ());
423
+ EXPECT_TRUE (buffer->isMemObjZeroCopy ());
424
+ EXPECT_EQ (buffer->getGraphicsAllocation ()->getAllocationType (), GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY );
425
425
426
426
EXPECT_THAT (buffer->getGraphicsAllocation ()->getUnderlyingBuffer (), MemCompare (&pattern[0 ], sizeof (pattern)));
427
427
0 commit comments