11/*
2- * Copyright (C) 2019-2020 Intel Corporation
2+ * Copyright (C) 2019-2021 Intel Corporation
33 *
44 * SPDX-License-Identifier: MIT
55 *
@@ -38,7 +38,7 @@ GEN12LPTEST_F(BufferTestsTgllp, givenBufferNotReadonlyWhenProgrammingSurfaceStat
3838 ASSERT_EQ (CL_SUCCESS, retVal);
3939
4040 typename FamilyType::RENDER_SURFACE_STATE surfaceState = {};
41- buffer->setArgStateful (&surfaceState, false , false , false , false , device->getDevice ());
41+ buffer->setArgStateful (&surfaceState, false , false , false , false , device->getDevice (), false , 1u );
4242
4343 const auto expectedMocs = device->getGmmHelper ()->getMOCS (GMM_RESOURCE_USAGE_OCL_BUFFER);
4444 const auto actualMocs = surfaceState.getMemoryObjectControlState ();
@@ -55,7 +55,7 @@ GEN12LPTEST_F(BufferTestsTgllp, givenBufferReadonlyWhenProgrammingSurfaceStateTh
5555 ASSERT_EQ (CL_SUCCESS, retVal);
5656
5757 typename FamilyType::RENDER_SURFACE_STATE surfaceState = {};
58- buffer->setArgStateful (&surfaceState, false , false , false , true , context->getDevice (0 )->getDevice ());
58+ buffer->setArgStateful (&surfaceState, false , false , false , true , context->getDevice (0 )->getDevice (), false , 1u );
5959
6060 const auto expectedMocs = device->getGmmHelper ()->getMOCS (GMM_RESOURCE_USAGE_OCL_BUFFER);
6161 const auto actualMocs = surfaceState.getMemoryObjectControlState ();
@@ -73,7 +73,7 @@ GEN12LPTEST_F(BufferTestsTgllp, givenConstantSurfaceWhenProgrammingSurfaceStateT
7373 buffer->getGraphicsAllocation (0 )->setAllocationType (GraphicsAllocation::AllocationType::CONSTANT_SURFACE);
7474
7575 typename FamilyType::RENDER_SURFACE_STATE surfaceState = {};
76- buffer->setArgStateful (&surfaceState, false , false , false , false , context->getDevice (0 )->getDevice ());
76+ buffer->setArgStateful (&surfaceState, false , false , false , false , context->getDevice (0 )->getDevice (), false , 1u );
7777
7878 const auto expectedMocs = device->getGmmHelper ()->getMOCS (GMM_RESOURCE_USAGE_OCL_BUFFER);
7979 const auto actualMocs = surfaceState.getMemoryObjectControlState ();
@@ -93,7 +93,7 @@ GEN12LPTEST_F(BufferTestsTgllp, givenL1ForceEnabledWhenProgrammingSurfaceStateTh
9393 ASSERT_EQ (CL_SUCCESS, retVal);
9494
9595 typename FamilyType::RENDER_SURFACE_STATE surfaceState = {};
96- buffer->setArgStateful (&surfaceState, false , false , false , false , device->getDevice ());
96+ buffer->setArgStateful (&surfaceState, false , false , false , false , device->getDevice (), false , 1u );
9797
9898 const auto expectedMocs = device->getGmmHelper ()->getMOCS (GMM_RESOURCE_USAGE_OCL_BUFFER);
9999 const auto actualMocs = surfaceState.getMemoryObjectControlState ();
@@ -113,7 +113,7 @@ GEN12LPTEST_F(BufferTestsTgllp, givenBufferReadonlyAndL1ForceEnabledWhenProgramm
113113 ASSERT_EQ (CL_SUCCESS, retVal);
114114
115115 typename FamilyType::RENDER_SURFACE_STATE surfaceState = {};
116- buffer->setArgStateful (&surfaceState, false , false , false , false , device->getDevice ());
116+ buffer->setArgStateful (&surfaceState, false , false , false , false , device->getDevice (), false , 1u );
117117
118118 const auto expectedMocs = device->getGmmHelper ()->getMOCS (GMM_RESOURCE_USAGE_OCL_BUFFER_CONST);
119119 const auto actualMocs = surfaceState.getMemoryObjectControlState ();
@@ -133,7 +133,7 @@ GEN12LPTEST_F(BufferTestsTgllp, givenBufferReadonlyL1ForceDisabledWhenProgrammin
133133 ASSERT_EQ (CL_SUCCESS, retVal);
134134
135135 typename FamilyType::RENDER_SURFACE_STATE surfaceState = {};
136- buffer->setArgStateful (&surfaceState, false , false , false , true , device->getDevice ());
136+ buffer->setArgStateful (&surfaceState, false , false , false , true , device->getDevice (), false , 1u );
137137
138138 const auto expectedMocs = device->getGmmHelper ()->getMOCS (GMM_RESOURCE_USAGE_OCL_BUFFER);
139139 const auto actualMocs = surfaceState.getMemoryObjectControlState ();
0 commit comments