Skip to content

Commit 814b365

Browse files
Fix XE_HP_SDV RSS and SBA commands
Signed-off-by: Bartosz Dunajski <[email protected]>
1 parent e8cb4f2 commit 814b365

File tree

4 files changed

+2
-81
lines changed

4 files changed

+2
-81
lines changed

opencl/test/unit_test/xe_hp_core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ if(TESTS_XE_HP_CORE)
1616
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
1717
${CMAKE_CURRENT_SOURCE_DIR}/compute_mode_tests_xe_hp_core.cpp
1818
${CMAKE_CURRENT_SOURCE_DIR}/copy_engine_tests_xe_hp_core.cpp
19-
${CMAKE_CURRENT_SOURCE_DIR}/test_cmds_programming_xe_hp_core.cpp
2019
${CMAKE_CURRENT_SOURCE_DIR}/test_device_caps_xe_hp_core.cpp
2120
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_tests_xe_hp_core.cpp
2221
${CMAKE_CURRENT_SOURCE_DIR}/test_platform_caps_xe_hp_core.cpp

opencl/test/unit_test/xe_hp_core/test_cmds_programming_xe_hp_core.cpp

Lines changed: 0 additions & 44 deletions
This file was deleted.

shared/source/generated/xe_hp_core/hw_cmds_generated_xe_hp_core.inl

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,9 +1186,7 @@ typedef struct tagRENDER_SURFACE_STATE {
11861186
uint32_t MipTailStartLod : BITFIELD_RANGE(8, 11);
11871187
uint32_t Reserved_172 : BITFIELD_RANGE(12, 13);
11881188
uint32_t CoherencyType : BITFIELD_RANGE(14, 14);
1189-
uint32_t Reserved_175 : BITFIELD_RANGE(15, 15);
1190-
uint32_t L1CachePolicyL1CacheControl : BITFIELD_RANGE(16, 18);
1191-
uint32_t Reserved_178 : BITFIELD_RANGE(19, 19);
1189+
uint32_t Reserved_175 : BITFIELD_RANGE(15, 19);
11921190
uint32_t EwaDisableForCube : BITFIELD_RANGE(20, 20);
11931191
uint32_t YOffset : BITFIELD_RANGE(21, 23);
11941192
uint32_t Reserved_184 : BITFIELD_RANGE(24, 24);
@@ -1895,13 +1893,6 @@ typedef struct tagRENDER_SURFACE_STATE {
18951893
typedef enum tagMEMORY_COMPRESSION_MODE {
18961894
MEMORY_COMPRESSION_MODE_HORIZONTAL = 0x0,
18971895
} MEMORY_COMPRESSION_MODE;
1898-
typedef enum tagL1_CACHE_POLICY {
1899-
L1_CACHE_POLICY_WBP = 0x0,
1900-
L1_CACHE_POLICY_UC = 0x1,
1901-
L1_CACHE_POLICY_WB = 0x2,
1902-
L1_CACHE_POLICY_WT = 0x3,
1903-
L1_CACHE_POLICY_WS = 0x4,
1904-
} L1_CACHE_POLICY;
19051896
inline void init(void) {
19061897
memset(&TheStructure, 0, sizeof(TheStructure));
19071898
TheStructure.Common.MediaBoundaryPixelMode = MEDIA_BOUNDARY_PIXEL_MODE_NORMAL_MODE;
@@ -1921,7 +1912,6 @@ typedef struct tagRENDER_SURFACE_STATE {
19211912
TheStructure._SurfaceFormatIsPlanar.HalfPitchForChroma = HALF_PITCH_FOR_CHROMA_DISABLE;
19221913
TheStructure.Common.DisableSupportForMultiGpuAtomics = 1;
19231914
TheStructure.Common.DisableSupportForMultiGpuPartialWrites = 1;
1924-
TheStructure.Common.L1CachePolicyL1CacheControl = L1_CACHE_POLICY::L1_CACHE_POLICY_WBP;
19251915
}
19261916
static tagRENDER_SURFACE_STATE sInit(void) {
19271917
RENDER_SURFACE_STATE state;
@@ -2204,12 +2194,6 @@ typedef struct tagRENDER_SURFACE_STATE {
22042194
inline COHERENCY_TYPE getCoherencyType(void) const {
22052195
return static_cast<COHERENCY_TYPE>(TheStructure.Common.CoherencyType);
22062196
}
2207-
inline void setL1CachePolicyL1CacheControl(const uint32_t value) {
2208-
TheStructure.Common.L1CachePolicyL1CacheControl = value;
2209-
}
2210-
inline uint32_t getL1CachePolicyL1CacheControl(void) const {
2211-
return TheStructure.Common.L1CachePolicyL1CacheControl;
2212-
}
22132197
inline void setEwaDisableForCube(const bool value) {
22142198
TheStructure.Common.EwaDisableForCube = value;
22152199
}
@@ -2881,8 +2865,7 @@ typedef struct tagSTATE_BASE_ADDRESS {
28812865
uint32_t DisableSupportForMultiGpuPartialWritesForStatelessMessages : BITFIELD_RANGE(15, 15);
28822866
uint32_t StatelessDataPortAccessMemoryObjectControlState_Reserved : BITFIELD_RANGE(16, 16);
28832867
uint32_t StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables : BITFIELD_RANGE(17, 22);
2884-
uint32_t L1CachePolicyL1CacheControl : BITFIELD_RANGE(23, 25);
2885-
uint32_t Reserved_119 : BITFIELD_RANGE(26, 31);
2868+
uint32_t Reserved_119 : BITFIELD_RANGE(23, 31);
28862869
// DWORD 4-5
28872870
uint64_t SurfaceStateBaseAddressModifyEnable : BITFIELD_RANGE(0, 0);
28882871
uint64_t Reserved_129 : BITFIELD_RANGE(1, 3);
@@ -2963,13 +2946,6 @@ typedef struct tagSTATE_BASE_ADDRESS {
29632946
ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES_DISABLED = 0x0,
29642947
ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES_ENABLED = 0x1,
29652948
} ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES;
2966-
typedef enum tagL1_CACHE_POLICY {
2967-
L1_CACHE_POLICY_WBP = 0x0,
2968-
L1_CACHE_POLICY_UC = 0x1,
2969-
L1_CACHE_POLICY_WB = 0x2,
2970-
L1_CACHE_POLICY_WT = 0x3,
2971-
L1_CACHE_POLICY_WS = 0x4,
2972-
} L1_CACHE_POLICY;
29732949
typedef enum tagPATCH_CONSTANTS {
29742950
GENERALSTATEBASEADDRESS_BYTEOFFSET = 0x4,
29752951
GENERALSTATEBASEADDRESS_INDEX = 0x1,
@@ -2994,7 +2970,6 @@ typedef struct tagSTATE_BASE_ADDRESS {
29942970
TheStructure.Common.EnableMemoryCompressionForAllStatelessAccesses = ENABLE_MEMORY_COMPRESSION_FOR_ALL_STATELESS_ACCESSES_DISABLED;
29952971
TheStructure.Common.DisableSupportForMultiGpuAtomicsForStatelessAccesses = 1;
29962972
TheStructure.Common.DisableSupportForMultiGpuPartialWritesForStatelessMessages = 1;
2997-
TheStructure.Common.L1CachePolicyL1CacheControl = L1_CACHE_POLICY_WBP;
29982973
}
29992974
static tagSTATE_BASE_ADDRESS sInit(void) {
30002975
STATE_BASE_ADDRESS state;
@@ -3063,12 +3038,6 @@ typedef struct tagSTATE_BASE_ADDRESS {
30633038
inline uint32_t getStatelessDataPortAccessMemoryObjectControlStateIndexToMocsTables(void) const {
30643039
return (TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables << 1);
30653040
}
3066-
inline void setL1CachePolicyL1CacheControl(const L1_CACHE_POLICY value) {
3067-
TheStructure.Common.L1CachePolicyL1CacheControl = value;
3068-
}
3069-
inline L1_CACHE_POLICY getL1CachePolicyL1CacheControl(void) const {
3070-
return static_cast<L1_CACHE_POLICY>(TheStructure.Common.L1CachePolicyL1CacheControl);
3071-
}
30723041
inline void setStatelessDataPortAccessMemoryObjectControlState(const uint32_t value) {
30733042
TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_Reserved = value;
30743043
TheStructure.Common.StatelessDataPortAccessMemoryObjectControlState_IndexToMocsTables = (value >> 1);

shared/source/xe_hp_core/state_base_address_xe_hp_core.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ namespace NEO {
1111

1212
template <>
1313
void StateBaseAddressHelper<XeHpFamily>::appendExtraCacheSettings(STATE_BASE_ADDRESS *stateBaseAddress, GmmHelper *gmmHelper) {
14-
if (DebugManager.flags.ForceStatelessL1CachingPolicy.get() != -1) {
15-
stateBaseAddress->setL1CachePolicyL1CacheControl(static_cast<typename STATE_BASE_ADDRESS::L1_CACHE_POLICY>(DebugManager.flags.ForceStatelessL1CachingPolicy.get()));
16-
}
1714
}
1815

1916
template struct StateBaseAddressHelper<XeHpFamily>;

0 commit comments

Comments
 (0)