@@ -334,10 +334,10 @@ TEST(Buffer, givenAllocHostPtrFlagWhenAllocationTypeIsQueriedThenBufferHostMemor
334334 EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY, type);
335335}
336336
337- TEST (Buffer, givenUseHostPtrFlagAndRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenBufferCompressedTypeIsReturned ) {
337+ TEST (Buffer, givenUseHostPtrFlagAndRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenBufferHostMemoryTypeIsReturned ) {
338338 cl_mem_flags flags = CL_MEM_USE_HOST_PTR;
339339 auto type = MockPublicAccessBuffer::getGraphicsAllocationType (flags, false , true );
340- EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_COMPRESSED , type);
340+ EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY , type);
341341}
342342
343343TEST (Buffer, givenAllocHostPtrFlagAndRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenBufferCompressedTypeIsReturned) {
@@ -395,7 +395,7 @@ struct RenderCompressedBuffersTests : public ::testing::Test {
395395 std::unique_ptr<Buffer> buffer;
396396};
397397
398- TEST_F (RenderCompressedBuffersTests, givenBufferCompressedAllocationAndZeroCopyHostPtrWhenCheckingMemoryPropertiesThenForceDisableZeroCopyAndAllocateStorage ) {
398+ TEST_F (RenderCompressedBuffersTests, givenBufferCompressedAllocationAndZeroCopyHostPtrWhenCheckingMemoryPropertiesThenUseHostPtrAndDontAllocateStorage ) {
399399 localHwInfo.capabilityTable .ftrRenderCompressedBuffers = false ;
400400
401401 void *cacheAlignedHostPtr = alignedMalloc (MemoryConstants::cacheLineSize, MemoryConstants::cacheLineSize);
@@ -419,9 +419,9 @@ TEST_F(RenderCompressedBuffersTests, givenBufferCompressedAllocationAndZeroCopyH
419419
420420 localHwInfo.capabilityTable .ftrRenderCompressedBuffers = true ;
421421 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 );
425425
426426 EXPECT_THAT (buffer->getGraphicsAllocation ()->getUnderlyingBuffer (), MemCompare (&pattern[0 ], sizeof (pattern)));
427427
0 commit comments