Bring back page size for PrivateDriverDataSize in wddm queue submit

Change-Id: Iad7c623ceed1a6d432df544ceea462569f615c15
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2020-05-08 12:06:30 +02:00
committed by sys_ocldev
parent c3ea485752
commit 989651b397
4 changed files with 23 additions and 2 deletions

View File

@@ -180,3 +180,4 @@ DECLARE_DEBUG_VARIABLE(bool, UseMaxSimdSizeToDeduceMaxWorkgroupSize, false, "Wit
DECLARE_DEBUG_VARIABLE(bool, ReturnRawGpuTimestamps, false, "Driver returns raw GPU tiemstamps instead of calculated ones.")
DECLARE_DEBUG_VARIABLE(bool, ForcePerDssBackedBufferProgramming, false, "Always program per-DSS memory backed buffer in preamble")
DECLARE_DEBUG_VARIABLE(bool, DisableAtomicForPostSyncs, false, "When enabled, post syncs are not tracked with atomics")
DECLARE_DEBUG_VARIABLE(bool, UseCommandBufferHeaderSizeForWddmQueueSubmission, false, "Default: Page size (4096). Use sizeof(COMMAND_BUFFER_HEADER) if true.")

View File

@@ -139,7 +139,11 @@ bool WddmInterface23::submit(uint64_t commandBuffer, size_t size, void *commandH
submitCommand.CommandLength = static_cast<UINT>(size);
submitCommand.pPrivateDriverData = commandHeader;
submitCommand.PrivateDriverDataSize = sizeof(COMMAND_BUFFER_HEADER);
submitCommand.PrivateDriverDataSize = MemoryConstants::pageSize;
if (DebugManager.flags.UseCommandBufferHeaderSizeForWddmQueueSubmission.get()) {
submitCommand.PrivateDriverDataSize = sizeof(COMMAND_BUFFER_HEADER);
}
auto status = wddm.getGdi()->submitCommandToHwQueue(&submitCommand);
UNRECOVERABLE_IF(status != STATUS_SUCCESS);