@@ -595,8 +595,8 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecu
595595 EXPECT_TRUE (graphicsAllocationScratch->is32BitAllocation ());
596596 EXPECT_EQ (GmmHelper::decanonize (graphicsAllocationScratch->getGpuAddress ()) - GSHaddress, graphicsAddress);
597597 } else if (!deviceInfo.svmCapabilities && is64bit) {
598- EXPECT_EQ (HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () , mediaVfeState->getScratchSpaceBasePointer ());
599- EXPECT_EQ (GSHaddress + HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () , graphicsAllocationScratch->getGpuAddressToPatch ());
598+ EXPECT_EQ (ScratchSpaceConstants::scratchSpaceOffsetFor64Bit , mediaVfeState->getScratchSpaceBasePointer ());
599+ EXPECT_EQ (GSHaddress + ScratchSpaceConstants::scratchSpaceOffsetFor64Bit , graphicsAllocationScratch->getGpuAddressToPatch ());
600600 } else {
601601 EXPECT_EQ ((uint64_t )graphicsAllocationScratch->getUnderlyingBuffer (), graphicsAddress);
602602 }
@@ -608,7 +608,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecu
608608 uint64_t scratchBaseHighPart = (uint64_t )mediaVfeState->getScratchSpaceBasePointerHigh ();
609609
610610 if (is64bit && !deviceInfo.force32BitAddressess ) {
611- uint64_t expectedAddress = HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () ;
611+ uint64_t expectedAddress = ScratchSpaceConstants::scratchSpaceOffsetFor64Bit ;
612612 EXPECT_EQ (expectedAddress, scratchBaseLowPart);
613613 EXPECT_EQ (0u , scratchBaseHighPart);
614614 } else {
@@ -620,7 +620,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenTwoConsecu
620620 EXPECT_EQ (pDevice->getMemoryManager ()->getExternalHeapBaseAddress (), GSHaddress);
621621 } else {
622622 if (is64bit) {
623- EXPECT_EQ (graphicsAddress - HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () , GSHaddress);
623+ EXPECT_EQ (graphicsAddress - ScratchSpaceConstants::scratchSpaceOffsetFor64Bit , GSHaddress);
624624 } else {
625625 EXPECT_EQ (0u , GSHaddress);
626626 }
@@ -709,8 +709,8 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenNDRangeKer
709709 EXPECT_TRUE (graphicsAllocationScratch->is32BitAllocation ());
710710 EXPECT_EQ (GmmHelper::decanonize (graphicsAllocationScratch->getGpuAddress ()) - GSHaddress, graphicsAddress);
711711 } else if (!deviceInfo.svmCapabilities && is64bit) {
712- EXPECT_EQ (HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () , mediaVfeState->getScratchSpaceBasePointer ());
713- EXPECT_EQ (GSHaddress + HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () , graphicsAllocationScratch->getGpuAddressToPatch ());
712+ EXPECT_EQ (ScratchSpaceConstants::scratchSpaceOffsetFor64Bit , mediaVfeState->getScratchSpaceBasePointer ());
713+ EXPECT_EQ (GSHaddress + ScratchSpaceConstants::scratchSpaceOffsetFor64Bit , graphicsAllocationScratch->getGpuAddressToPatch ());
714714 } else {
715715 EXPECT_EQ ((uint64_t )graphicsAllocationScratch->getUnderlyingBuffer (), graphicsAddress);
716716 }
@@ -722,7 +722,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenNDRangeKer
722722 uint64_t scratchBaseHighPart = (uint64_t )mediaVfeState->getScratchSpaceBasePointerHigh ();
723723
724724 if (is64bit && !deviceInfo.force32BitAddressess ) {
725- lowPartGraphicsAddress = HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () ;
725+ lowPartGraphicsAddress = ScratchSpaceConstants::scratchSpaceOffsetFor64Bit ;
726726 highPartGraphicsAddress = 0u ;
727727 }
728728
@@ -733,7 +733,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandStreamReceiverFlushTaskTests, givenNDRangeKer
733733 EXPECT_EQ (pDevice->getMemoryManager ()->getExternalHeapBaseAddress (), GSHaddress);
734734 } else {
735735 if (is64bit) {
736- EXPECT_EQ (graphicsAddress - HwHelperHw<FamilyType>:: get (). getScratchSpaceOffsetFor64bit () , GSHaddress);
736+ EXPECT_EQ (graphicsAddress - ScratchSpaceConstants::scratchSpaceOffsetFor64Bit , GSHaddress);
737737 } else {
738738 EXPECT_EQ (0u , GSHaddress);
739739 }
0 commit comments