Skip to content

Commit 51e073a

Browse files
Revert "Extra checks for gen12lp"
Signed-off-by: Maciej Plewka <[email protected]>
1 parent eac124f commit 51e073a

File tree

9 files changed

+6
-29
lines changed

9 files changed

+6
-29
lines changed

opencl/test/unit_test/helpers/hw_helper_tests.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,11 +1191,3 @@ TEST_F(HwHelperTest, WhenGettingIsCpuImageTransferPreferredThenFalseIsReturned)
11911191
auto &hwHelper = HwHelper::get(renderCoreFamily);
11921192
EXPECT_FALSE(hwHelper.isCpuImageTransferPreferred(*defaultHwInfo));
11931193
}
1194-
1195-
TEST_F(HwHelperTest, whenFtrGpGpuMidThreadLevelPreemptFeatureDisabledThenFalseIsReturned) {
1196-
HwHelper &hwHelper = HwHelper::get(renderCoreFamily);
1197-
FeatureTable featureTable = {};
1198-
featureTable.ftrGpGpuMidThreadLevelPreempt = false;
1199-
bool result = hwHelper.isAdditionalFeatureFlagRequired(&featureTable);
1200-
EXPECT_FALSE(result);
1201-
}

opencl/test/unit_test/mocks/mock_wddm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ bool WddmMock::createContext(OsContextWin &osContext) {
153153
return createContextResult.success = Wddm::createContext(osContext);
154154
}
155155

156-
void WddmMock::applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext, const HardwareInfo &hwInfo) {
156+
void WddmMock::applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext) {
157157
applyAdditionalContextFlagsResult.called++;
158-
Wddm::applyAdditionalContextFlags(privateData, osContext, hwInfo);
158+
Wddm::applyAdditionalContextFlags(privateData, osContext);
159159
}
160160

161161
bool WddmMock::destroyContext(D3DKMT_HANDLE context) {

opencl/test/unit_test/mocks/mock_wddm.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#pragma once
99

1010
#include "shared/source/helpers/constants.h"
11-
#include "shared/source/helpers/hw_info.h"
1211
#include "shared/source/memory_manager/host_ptr_defines.h"
1312
#include "shared/source/os_interface/windows/wddm/wddm.h"
1413
#include "shared/source/os_interface/windows/wddm_residency_allocations_container.h"
@@ -66,7 +65,7 @@ class WddmMock : public Wddm {
6665
bool destroyAllocation(WddmAllocation *alloc, OsContextWin *osContext);
6766
bool openSharedHandle(D3DKMT_HANDLE handle, WddmAllocation *alloc) override;
6867
bool createContext(OsContextWin &osContext) override;
69-
void applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext, const HardwareInfo &hwInfo) override;
68+
void applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext) override;
7069
bool destroyContext(D3DKMT_HANDLE context) override;
7170
bool queryAdapterInfo() override;
7271
bool submit(uint64_t commandBuffer, size_t size, void *commandHeader, WddmSubmitArguments &submitArguments) override;

shared/source/gen12lp/hw_helper_gen12lp.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ bool HwHelperHw<Family>::isWaDisableRccRhwoOptimizationRequired() const {
5151
return true;
5252
}
5353

54-
template <>
55-
bool HwHelperHw<Family>::isAdditionalFeatureFlagRequired(const FeatureTable *featureTable) const {
56-
return featureTable->ftrGpGpuMidThreadLevelPreempt;
57-
}
58-
5954
template <>
6055
uint32_t HwHelperHw<Family>::getComputeUnitsUsedForScratch(const HardwareInfo *pHwInfo) const {
6156
/* For ICL+ maxThreadCount equals (EUCount * 8).

shared/source/helpers/hw_helper.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ class HwHelper {
102102

103103
virtual bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) = 0;
104104
virtual bool isWaDisableRccRhwoOptimizationRequired() const = 0;
105-
virtual bool isAdditionalFeatureFlagRequired(const FeatureTable *featureTable) const = 0;
106105
virtual uint32_t getMinimalSIMDSize() = 0;
107106
virtual uint32_t getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) const = 0;
108107
virtual uint32_t getSteppingFromHwRevId(uint32_t hwRevId, const HardwareInfo &hwInfo) const = 0;
@@ -283,8 +282,6 @@ class HwHelperHw : public HwHelper {
283282

284283
bool isWaDisableRccRhwoOptimizationRequired() const override;
285284

286-
bool isAdditionalFeatureFlagRequired(const FeatureTable *featureTable) const override;
287-
288285
uint32_t getMinimalSIMDSize() override;
289286

290287
uint64_t getGpuTimeStampInNS(uint64_t timeStamp, double frequency) const override;

shared/source/helpers/hw_helper_base.inl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,4 @@ bool HwHelperHw<GfxFamily>::isSipWANeeded(const HardwareInfo &hwInfo) const {
534534
return false;
535535
}
536536

537-
template <typename GfxFamily>
538-
bool HwHelperHw<GfxFamily>::isAdditionalFeatureFlagRequired(const FeatureTable *featureTable) const {
539-
return false;
540-
}
541-
542537
} // namespace NEO

shared/source/os_interface/windows/wddm/wddm.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,7 @@ bool Wddm::createContext(OsContextWin &osContext) {
763763
PrivateData.pHwContextId = &hwContextId;
764764
PrivateData.IsMediaUsage = false;
765765
PrivateData.NoRingFlushes = DebugManager.flags.UseNoRingFlushesKmdMode.get();
766-
auto &rootDeviceEnvironment = this->getRootDeviceEnvironment();
767-
applyAdditionalContextFlags(PrivateData, osContext, *rootDeviceEnvironment.getHardwareInfo());
766+
applyAdditionalContextFlags(PrivateData, osContext);
768767

769768
CreateContext.EngineAffinity = 0;
770769
CreateContext.Flags.NullRendering = static_cast<UINT>(DebugManager.flags.EnableNullHardware.get());

shared/source/os_interface/windows/wddm/wddm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Wddm {
6060
bool mapGpuVirtualAddress(AllocationStorageData *allocationStorageData);
6161
MOCKABLE_VIRTUAL D3DGPU_VIRTUAL_ADDRESS reserveGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS minimumAddress, D3DGPU_VIRTUAL_ADDRESS maximumAddress, D3DGPU_SIZE_T size);
6262
MOCKABLE_VIRTUAL bool createContext(OsContextWin &osContext);
63-
MOCKABLE_VIRTUAL void applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext, const HardwareInfo &hwInfo);
63+
MOCKABLE_VIRTUAL void applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext);
6464
MOCKABLE_VIRTUAL bool freeGpuVirtualAddress(D3DGPU_VIRTUAL_ADDRESS &gpuPtr, uint64_t size);
6565
MOCKABLE_VIRTUAL NTSTATUS createAllocation(const void *alignedCpuPtr, const Gmm *gmm, D3DKMT_HANDLE &outHandle, D3DKMT_HANDLE &outResourceHandle, D3DKMT_HANDLE *outSharedHandle);
6666
MOCKABLE_VIRTUAL bool createAllocation64k(const Gmm *gmm, D3DKMT_HANDLE &outHandle);

shared/source/os_interface/windows/wddm_additional_context_flags.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
#include "shared/source/os_interface/windows/wddm/wddm.h"
99

1010
namespace NEO {
11-
void Wddm::applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext, const HardwareInfo &hwInfo) {
11+
void Wddm::applyAdditionalContextFlags(CREATECONTEXT_PVTDATA &privateData, OsContextWin &osContext) {
1212
}
1313
} // namespace NEO

0 commit comments

Comments
 (0)