@@ -300,6 +300,16 @@ TEST(Buffer, givenRenderCompressedBuffersEnabledWhenAllocationTypeIsQueriedThenB
300300 }
301301}
302302
303+ TEST (Buffer, givenRenderCompressedBuffersDisabledLocalMemoryEnabledWhenAllocationTypeIsQueriedThenBufferTypeIsReturnedIn64Bit) {
304+ MemoryProperties properties;
305+ auto type = MockPublicAccessBuffer::getGraphicsAllocationType (properties, false , ContextType::CONTEXT_TYPE_UNRESTRICTIVE, false , true );
306+ if (is32bit) {
307+ EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY, type);
308+ } else {
309+ EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER, type);
310+ }
311+ }
312+
303313TEST (Buffer, givenSharedContextWhenAllocationTypeIsQueriedThenBufferHostMemoryTypeIsReturned) {
304314 MemoryProperties properties;
305315 auto type = MockPublicAccessBuffer::getGraphicsAllocationType (properties, true , ContextType::CONTEXT_TYPE_UNRESTRICTIVE, false , false );
@@ -353,7 +363,7 @@ TEST(Buffer, givenUseHostPtrFlagAndLocalMemoryEnabledAndRenderCompressedBuffersE
353363 properties.flags = CL_MEM_USE_HOST_PTR;
354364 auto type = MockPublicAccessBuffer::getGraphicsAllocationType (properties, false , ContextType::CONTEXT_TYPE_UNRESTRICTIVE, true , true );
355365 if (is64bit) {
356- EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER , type);
366+ EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_COMPRESSED , type);
357367 } else {
358368 EXPECT_EQ (GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY, type);
359369 }
0 commit comments