@@ -443,7 +443,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenAllocationProvidedThenU
443443 EXPECT_EQ (pitch, state->getSurfacePitch () - 1u );
444444 EXPECT_EQ (gpuAddr, state->getSurfaceBaseAddress ());
445445
446- EXPECT_EQ (RENDER_SURFACE_STATE::COHERENCY_TYPE_IA_COHERENT, state->getCoherencyType ());
446+ EXPECT_EQ (UnitTestHelper<FamilyType>:: getCoherencyTypeSupported ( RENDER_SURFACE_STATE::COHERENCY_TYPE_IA_COHERENT) , state->getCoherencyType ());
447447 EXPECT_EQ (AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_NONE, state->getAuxiliarySurfaceMode ());
448448
449449 delete allocation.getDefaultGmm ();
@@ -506,7 +506,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenGmmCompressionDisabledA
506506 allocation.setDefaultGmm (new Gmm (rootDeviceEnvironment.getGmmClientContext (), allocation.getUnderlyingBuffer (), allocation.getUnderlyingBufferSize (), 0 , false ));
507507 SURFACE_TYPE type = RENDER_SURFACE_STATE::SURFACE_TYPE_SURFTYPE_BUFFER;
508508 helper.setRenderSurfaceStateForBuffer (rootDeviceEnvironment, stateBuffer, size, addr, 0 , pitch, &allocation, false , type, false , false );
509- EXPECT_EQ (RENDER_SURFACE_STATE::COHERENCY_TYPE_IA_COHERENT, state->getCoherencyType ());
509+ EXPECT_EQ (UnitTestHelper<FamilyType>:: getCoherencyTypeSupported ( RENDER_SURFACE_STATE::COHERENCY_TYPE_IA_COHERENT) , state->getCoherencyType ());
510510 EXPECT_EQ (AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_NONE, state->getAuxiliarySurfaceMode ());
511511
512512 delete allocation.getDefaultGmm ();
@@ -538,7 +538,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenGmmAndAllocationCompres
538538 allocation.getDefaultGmm ()->isRenderCompressed = true ;
539539 SURFACE_TYPE type = RENDER_SURFACE_STATE::SURFACE_TYPE_SURFTYPE_BUFFER;
540540 helper.setRenderSurfaceStateForBuffer (rootDeviceEnvironment, stateBuffer, size, addr, 0 , pitch, &allocation, false , type, true , false );
541- EXPECT_EQ (RENDER_SURFACE_STATE::COHERENCY_TYPE_IA_COHERENT, state->getCoherencyType ());
541+ EXPECT_EQ (UnitTestHelper<FamilyType>:: getCoherencyTypeSupported ( RENDER_SURFACE_STATE::COHERENCY_TYPE_IA_COHERENT) , state->getCoherencyType ());
542542 EXPECT_EQ (AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_NONE, state->getAuxiliarySurfaceMode ());
543543
544544 delete allocation.getDefaultGmm ();
0 commit comments