mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Refactor memory object control state methods in generated commands
remove setters/getters for Index To Mocs Tables fields all information contained in MOCS from gmm client context is now handled by dedicated method set/get MemoryObjectControlState Related-To: NEO-6466 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
601271c92e
commit
03e617d14f
@ -93,16 +93,3 @@ GEN11TEST_F(gen11ImageTests, givenImageForGen11WhenClearColorParametersAreSetThe
|
||||
|
||||
EXPECT_EQ(0, memcmp(&surfaceStateBefore, &surfaceStateAfter, sizeof(RENDER_SURFACE_STATE)));
|
||||
}
|
||||
|
||||
using Gen11RenderSurfaceStateDataTests = ::testing::Test;
|
||||
|
||||
GEN11TEST_F(Gen11RenderSurfaceStateDataTests, WhenMemoryObjectControlStateIndexToMocsTablesIsSetThenValueIsShift) {
|
||||
using RENDER_SURFACE_STATE = typename FamilyType::RENDER_SURFACE_STATE;
|
||||
auto surfaceState = FamilyType::cmdInitRenderSurfaceState;
|
||||
|
||||
uint32_t value = 4;
|
||||
surfaceState.setMemoryObjectControlStateIndexToMocsTables(value);
|
||||
|
||||
EXPECT_EQ(surfaceState.TheStructure.Common.MemoryObjectControlState_IndexToMocsTables, value >> 1);
|
||||
EXPECT_EQ(surfaceState.getMemoryObjectControlStateIndexToMocsTables(), value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user