mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user