Make sure that implicit flush controls are disabled in AUB capture.

Change-Id: Ie731b8f6f2ca322e8298e8e2f3ed633fe01f07fb
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2020-09-24 06:35:53 +02:00
parent 72c91c2f13
commit f75c9e2f57
3 changed files with 17 additions and 1 deletions

View File

@@ -1171,6 +1171,17 @@ HWTEST_F(AubCommandStreamReceiverTests, WhenBlitBufferIsCalledThenCounterIsCorre
EXPECT_EQ(1u, aubCsr->blitBufferCalled);
}
HWTEST_F(AubCommandStreamReceiverTests, givenDebugOverwritesForImplicitFlushesWhenTheyAreUsedTheyDoNotAffectAubCapture) {
DebugManagerStateRestore restorer;
DebugManager.flags.PerformImplicitFlushForIdleGpu.set(1);
DebugManager.flags.PerformImplicitFlushForNewResource.set(1);
auto aubExecutionEnvironment = getEnvironment<UltAubCommandStreamReceiver<FamilyType>>(true, true, true);
auto aubCsr = aubExecutionEnvironment->template getCsr<UltAubCommandStreamReceiver<FamilyType>>();
EXPECT_FALSE(aubCsr->useGpuIdleImplicitFlush);
EXPECT_FALSE(aubCsr->useNewResourceImplicitFlush);
}
using HardwareContextContainerTests = ::testing::Test;
TEST_F(HardwareContextContainerTests, givenOsContextWithMultipleDevicesSupportedThenInitialzeHwContextsWithValidIndexes) {

View File

@@ -20,6 +20,8 @@ class UltAubCommandStreamReceiver : public AUBCommandStreamReceiverHw<GfxFamily>
public:
using BaseClass::osContext;
using BaseClass::useGpuIdleImplicitFlush;
using BaseClass::useNewResourceImplicitFlush;
UltAubCommandStreamReceiver(const std::string &fileName, bool standalone, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex)
: BaseClass(fileName, standalone, executionEnvironment, rootDeviceIndex) {