Skip to content

Commit f946cdd

Browse files
Do not limit to 1 slice for throttle hint low.
Change-Id: Id42f2ba3af752d36dcf4c550129c4cf1aa68c530 Signed-off-by: Mrozek, Michal <[email protected]>
1 parent b2e16b7 commit f946cdd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

runtime/os_interface/windows/wddm_device_command_stream.inl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ FlushStamp WddmCommandStreamReceiver<GfxFamily>::flush(BatchBuffer &batchBuffer,
8282
const uint32_t maxRequestedSubsliceCount = 7;
8383
switch (batchBuffer.throttle) {
8484
case QueueThrottle::LOW:
85-
pHeader->UmdRequestedSubsliceCount = 1;
86-
break;
8785
case QueueThrottle::MEDIUM:
8886
pHeader->UmdRequestedSubsliceCount = 0;
8987
break;

unit_tests/os_interface/windows/device_command_stream_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ TEST_F(WddmCommandStreamTest, givenWdmmWhenSubmitIsCalledAndThrottleIsToLowThenS
325325
COMMAND_BUFFER_HEADER *pHeader = reinterpret_cast<COMMAND_BUFFER_HEADER *>(commandHeader);
326326

327327
EXPECT_EQ(0, pHeader->UmdRequestedSliceState);
328-
EXPECT_EQ(1, pHeader->UmdRequestedSubsliceCount);
328+
EXPECT_EQ(0, pHeader->UmdRequestedSubsliceCount);
329329
EXPECT_EQ(wddm->getGtSysInfo()->EUCount / wddm->getGtSysInfo()->SubSliceCount, pHeader->UmdRequestedEUCount);
330330

331331
memoryManager->freeGraphicsMemory(commandBuffer);

0 commit comments

Comments
 (0)