mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
performance: initialize timeout params once
Currently this is done per each enqueue which is not really needed Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7fc7fbfc47
commit
d7d6996464
@@ -1220,7 +1220,7 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionFailsThenF
|
||||
memoryManager->freeGraphicsMemory(commandBuffer);
|
||||
}
|
||||
|
||||
HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnRcsWhenFlushingCommandBufferThenExpectDirectSubmissionUsedAndDirectSubmissionControllerStarted) {
|
||||
HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnRcsWhenFlushingCommandBufferThenExpectDirectSubmissionUsed) {
|
||||
using Dispatcher = RenderDispatcher<FamilyType>;
|
||||
using MockSubmission =
|
||||
MockWddmDirectSubmission<FamilyType, Dispatcher>;
|
||||
@@ -1247,7 +1247,6 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnR
|
||||
batchBuffer.endCmdPtr = commandBuffer->getUnderlyingBuffer();
|
||||
|
||||
csr->flush(batchBuffer, csr->getResidencyAllocations());
|
||||
EXPECT_TRUE(mockCsr->directSubmissionControllerStarted);
|
||||
auto directSubmission = reinterpret_cast<MockSubmission *>(mockCsr->directSubmission.get());
|
||||
EXPECT_TRUE(directSubmission->ringStart);
|
||||
size_t actualDispatchSize = directSubmission->ringCommandStream.getUsed();
|
||||
@@ -1267,7 +1266,7 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnR
|
||||
memoryManager->freeGraphicsMemory(commandBuffer);
|
||||
}
|
||||
|
||||
HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnBcsWhenFlushingCommandBufferThenExpectDirectSubmissionUsedAndDirectSubmissionControllerStarted) {
|
||||
HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnBcsWhenFlushingCommandBufferThenExpectDirectSubmissionUsed) {
|
||||
using Dispatcher = BlitterDispatcher<FamilyType>;
|
||||
using MockSubmission =
|
||||
MockWddmDirectSubmission<FamilyType, Dispatcher>;
|
||||
@@ -1295,7 +1294,6 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnB
|
||||
batchBuffer.endCmdPtr = commandBuffer->getUnderlyingBuffer();
|
||||
|
||||
csr->flush(batchBuffer, csr->getResidencyAllocations());
|
||||
EXPECT_TRUE(mockCsr->directSubmissionControllerStarted);
|
||||
auto directSubmission = reinterpret_cast<MockSubmission *>(mockCsr->blitterDirectSubmission.get());
|
||||
EXPECT_TRUE(directSubmission->ringStart);
|
||||
size_t actualDispatchSize = directSubmission->ringCommandStream.getUsed();
|
||||
|
||||
Reference in New Issue
Block a user