mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
refactor: remove not needed code
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6d1a3d404e
commit
10313b7b84
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -152,7 +152,6 @@ struct UltCommandStreamReceiverTest
|
||||
commandStreamReceiver.taskLevel = taskLevel;
|
||||
|
||||
commandStreamReceiver.lastMediaSamplerConfig = 0;
|
||||
commandStreamReceiver.lastSentUseGlobalAtomics = false;
|
||||
commandStreamReceiver.streamProperties.pipelineSelect.setPropertiesAll(true, false, false);
|
||||
commandStreamReceiver.streamProperties.stateComputeMode.setPropertiesAll(0, GrfConfig::defaultGrfNumber,
|
||||
gfxCoreHelper.getDefaultThreadArbitrationPolicy(), pDevice->getPreemptionMode());
|
||||
|
||||
@@ -362,8 +362,6 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHpCommandStreamReceiverFlushTaskTests, givenDebug
|
||||
|
||||
using StateBaseAddressXeHPAndLaterTests = XeHpCommandStreamReceiverFlushTaskTests;
|
||||
|
||||
namespace {
|
||||
|
||||
template <typename FamilyType, typename CommandStreamReceiverType>
|
||||
void flushTaskAndcheckForSBA(StateBaseAddressXeHPAndLaterTests *sbaTest, CommandStreamReceiverType &csr, bool shouldBePresent) {
|
||||
size_t offset = csr.commandStream.getUsed();
|
||||
@@ -380,40 +378,6 @@ void flushTaskAndcheckForSBA(StateBaseAddressXeHPAndLaterTests *sbaTest, Command
|
||||
}
|
||||
}
|
||||
|
||||
template <typename FamilyType>
|
||||
void testGlobalAtomicsImpactOnSBA(StateBaseAddressXeHPAndLaterTests *sbaTest, bool multiOsCtx, bool multiSubDevices, bool expectSBA) {
|
||||
|
||||
auto &commandStreamReceiver = sbaTest->pDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
commandStreamReceiver.multiOsContextCapable = multiOsCtx;
|
||||
sbaTest->flushTaskFlags.areMultipleSubDevicesInContext = multiSubDevices;
|
||||
|
||||
flushTaskAndcheckForSBA<FamilyType>(sbaTest, commandStreamReceiver, true);
|
||||
flushTaskAndcheckForSBA<FamilyType>(sbaTest, commandStreamReceiver, false);
|
||||
|
||||
commandStreamReceiver.lastSentUseGlobalAtomics ^= true;
|
||||
flushTaskAndcheckForSBA<FamilyType>(sbaTest, commandStreamReceiver, expectSBA);
|
||||
flushTaskAndcheckForSBA<FamilyType>(sbaTest, commandStreamReceiver, false);
|
||||
|
||||
commandStreamReceiver.lastSentUseGlobalAtomics ^= true;
|
||||
flushTaskAndcheckForSBA<FamilyType>(sbaTest, commandStreamReceiver, expectSBA);
|
||||
}
|
||||
|
||||
} /* namespace */
|
||||
|
||||
struct GlobalAtomicsStateBaseAddressTests : public StateBaseAddressXeHPAndLaterTests,
|
||||
public ::testing::WithParamInterface<std::tuple<bool, bool>> {};
|
||||
|
||||
HWTEST_P(GlobalAtomicsStateBaseAddressTests, givenAnyMultiOSContextValueWithAnySubDeviceNumberWhenLastSentUseGlobalAtomicsIsFlippedThenStatBaseAddressProgrammingIsNeverAffected) {
|
||||
auto [multiOsCtx, multiSubDevices] = GetParam();
|
||||
testGlobalAtomicsImpactOnSBA<FamilyType>(this, multiOsCtx, multiSubDevices, false);
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(,
|
||||
GlobalAtomicsStateBaseAddressTests,
|
||||
::testing::Combine(
|
||||
::testing::Bool(),
|
||||
::testing::Bool()));
|
||||
|
||||
using RenderSurfaceStateXeHPAndLaterTests = XeHpCommandStreamReceiverFlushTaskTests;
|
||||
|
||||
HWCMDTEST_F(IGFX_XE_HP_CORE, RenderSurfaceStateXeHPAndLaterTests, givenSpecificProductFamilyWhenAppendingRssThenProgramGpuCoherency) {
|
||||
|
||||
Reference in New Issue
Block a user