@@ -517,12 +517,13 @@ TEST_P(CommandQueueIndirectHeapTest, WhenGettingIndirectHeapThenValidObjectIsRet
517517 EXPECT_NE (nullptr , &indirectHeap);
518518}
519519
520- TEST_P (CommandQueueIndirectHeapTest, givenIndirectObjectHeapWhenItIsQueriedForInternalAllocationThenTrueIsReturned) {
520+ HWTEST_P (CommandQueueIndirectHeapTest, givenIndirectObjectHeapWhenItIsQueriedForInternalAllocationThenTrueIsReturned) {
521521 const cl_queue_properties props[3 ] = {CL_QUEUE_PROPERTIES, 0 , 0 };
522522 MockCommandQueue cmdQ (context.get (), pClDevice, props);
523+ auto &commandStreamReceiver = pClDevice->getUltCommandStreamReceiver <FamilyType>();
523524
524525 auto &indirectHeap = cmdQ.getIndirectHeap (this ->GetParam (), 8192 );
525- if (this ->GetParam () == IndirectHeap::INDIRECT_OBJECT) {
526+ if (this ->GetParam () == IndirectHeap::INDIRECT_OBJECT && commandStreamReceiver. canUse4GbHeaps ) {
526527 EXPECT_TRUE (indirectHeap.getGraphicsAllocation ()->is32BitAllocation ());
527528 } else {
528529 EXPECT_FALSE (indirectHeap.getGraphicsAllocation ()->is32BitAllocation ());
@@ -587,7 +588,7 @@ TEST_P(CommandQueueIndirectHeapTest, WhenGettingIndirectHeapThenSizeIsAlignedToC
587588 EXPECT_TRUE (isAligned<MemoryConstants::cacheLineSize>(indirectHeap.getAvailableSpace ()));
588589}
589590
590- TEST_P (CommandQueueIndirectHeapTest, givenCommandStreamReceiverWithReusableAllocationsWhenAskedForHeapAllocationThenAllocationFromReusablePoolIsReturned) {
591+ HWTEST_P (CommandQueueIndirectHeapTest, givenCommandStreamReceiverWithReusableAllocationsWhenAskedForHeapAllocationThenAllocationFromReusablePoolIsReturned) {
591592 const cl_queue_properties props[3 ] = {CL_QUEUE_PROPERTIES, 0 , 0 };
592593 MockCommandQueue cmdQ (context.get (), pClDevice, props);
593594
@@ -597,9 +598,9 @@ TEST_P(CommandQueueIndirectHeapTest, givenCommandStreamReceiverWithReusableAlloc
597598
598599 GraphicsAllocation *allocation = nullptr ;
599600
600- auto &commandStreamReceiver = cmdQ. getGpgpuCommandStreamReceiver ();
601+ auto &commandStreamReceiver = pClDevice-> getUltCommandStreamReceiver <FamilyType> ();
601602 auto allocationType = GraphicsAllocation::AllocationType::LINEAR_STREAM;
602- if (this ->GetParam () == IndirectHeap::INDIRECT_OBJECT) {
603+ if (this ->GetParam () == IndirectHeap::INDIRECT_OBJECT && commandStreamReceiver. canUse4GbHeaps ) {
603604 allocationType = GraphicsAllocation::AllocationType::INTERNAL_HEAP;
604605 }
605606 allocation = memoryManager->allocateGraphicsMemoryWithProperties ({pDevice->getRootDeviceIndex (), allocationSize, allocationType, pDevice->getDeviceBitfield ()});
@@ -736,13 +737,14 @@ TEST_P(CommandQueueIndirectHeapTest, GivenCommandQueueWithHeapWhenGraphicAllocat
736737 memoryManager->freeGraphicsMemory (allocation);
737738}
738739
739- TEST_P (CommandQueueIndirectHeapTest, givenCommandQueueWhenGetIndirectHeapIsCalledThenIndirectHeapAllocationTypeShouldBeSetToInternalHeapForIohAndLinearStreamForOthers) {
740+ HWTEST_P (CommandQueueIndirectHeapTest, givenCommandQueueWhenGetIndirectHeapIsCalledThenIndirectHeapAllocationTypeShouldBeSetToInternalHeapForIohAndLinearStreamForOthers) {
740741 const cl_queue_properties props[3 ] = {CL_QUEUE_PROPERTIES, 0 , 0 };
741742 MockCommandQueue cmdQ (context.get (), pClDevice, props);
743+ auto &commandStreamReceiver = pClDevice->getUltCommandStreamReceiver <FamilyType>();
742744
743745 auto heapType = this ->GetParam ();
744746
745- bool requireInternalHeap = IndirectHeap::INDIRECT_OBJECT == heapType;
747+ bool requireInternalHeap = IndirectHeap::INDIRECT_OBJECT == heapType && commandStreamReceiver. canUse4GbHeaps ;
746748 const auto &indirectHeap = cmdQ.getIndirectHeap (heapType, 100 );
747749 auto indirectHeapAllocation = indirectHeap.getGraphicsAllocation ();
748750 ASSERT_NE (nullptr , indirectHeapAllocation);
0 commit comments