diff --git a/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl b/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl index 2e8508b071..2170b4b4b0 100644 --- a/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl +++ b/shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl @@ -1353,7 +1353,7 @@ typedef struct tagRENDER_SURFACE_STATE { SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_32 = 0x1, SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_64 = 0x2, SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_128 = 0x3, - SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_DEFAULT = SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_32, + SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_DEFAULT = SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_128, } SURFACE_HORIZONTAL_ALIGNMENT; typedef enum tagSURFACE_VERTICAL_ALIGNMENT { SURFACE_VERTICAL_ALIGNMENT_VALIGN_4 = 0x1, diff --git a/shared/test/unit_test/xe_hp_core/hw_cmds_xe_hp_core_tests.cpp b/shared/test/unit_test/xe_hp_core/hw_cmds_xe_hp_core_tests.cpp index f8b4df7848..e049cd35fe 100644 --- a/shared/test/unit_test/xe_hp_core/hw_cmds_xe_hp_core_tests.cpp +++ b/shared/test/unit_test/xe_hp_core/hw_cmds_xe_hp_core_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Intel Corporation + * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -20,6 +20,12 @@ XE_HP_CORE_TEST_F(XeHpCoreHwCmdTest, givenRenderSurfaceStateWhenProgrammingMocsT EXPECT_EQ(expectedMocsIndex, renderSurfaceState.TheStructure.Common.MemoryObjectControlStateIndexToMocsTables); } +XE_HP_CORE_TEST_F(XeHpCoreHwCmdTest, givenRenderSurfaceStateThenDefaultHorizontalAlignmentIs128) { + auto defaultHorizontalAlignmentValue = FamilyType::RENDER_SURFACE_STATE::SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_DEFAULT; + auto horizontalAlignment128Value = FamilyType::RENDER_SURFACE_STATE::SURFACE_HORIZONTAL_ALIGNMENT_HALIGN_128; + EXPECT_EQ(defaultHorizontalAlignmentValue, horizontalAlignment128Value); +} + XE_HP_CORE_TEST_F(XeHpCoreHwCmdTest, givenStateBaseAddressWhenProgrammingMocsThenMocsIndexIsSetProperly) { auto stateBaseAddress = FamilyType::cmdInitStateBaseAddress; uint32_t mocs = 4u;