mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: disable fence wait if not supported on given CSR type
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d8a4f92856
commit
9629ab3cc3
@@ -121,6 +121,7 @@ TEST_F(CommandStreamReceiverTest, givenCsrWhenGettingCompletionAddressThenUnderl
|
||||
|
||||
TEST_F(CommandStreamReceiverTest, givenBaseCsrWhenCallingWaitUserFenceThenReturnFalse) {
|
||||
EXPECT_FALSE(commandStreamReceiver->waitUserFence(1, commandStreamReceiver->getCompletionAddress(), -1, false, InterruptId::notUsed, nullptr));
|
||||
EXPECT_FALSE(commandStreamReceiver->waitUserFenceSupported());
|
||||
}
|
||||
|
||||
HWTEST_F(CommandStreamReceiverTest, WhenCreatingCsrThenDefaultValuesAreSet) {
|
||||
|
||||
@@ -233,6 +233,7 @@ HWTEST_TEMPLATED_F(DrmCommandStreamEnhancedTestDrmPrelim, givenExternalInterrupt
|
||||
testDrmCsr->useUserFenceWait = true;
|
||||
testDrmCsr->activePartitions = 2u;
|
||||
EXPECT_NE(0u, testDrmCsr->immWritePostSyncWriteOffset);
|
||||
EXPECT_TRUE(testDrmCsr->waitUserFenceSupported());
|
||||
|
||||
auto rootExecEnvironment = executionEnvironment->rootDeviceEnvironments[0].get();
|
||||
auto &gfxCoreHelper = rootExecEnvironment->getHelper<GfxCoreHelper>();
|
||||
|
||||
Reference in New Issue
Block a user