summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2023-05-08 15:44:03 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2023-05-08 15:44:03 +0000
commit744560d5c6a383b4f7eb51e94114f06bb0ef987f (patch)
tree8ec662a0cf64f39e3fbcaa3cc325d64a96b967d4 /src
parent3d013dd53e3be52f149cab66f78b55aeb8516b01 (diff)
downloadVirtualBox-svn-744560d5c6a383b4f7eb51e94114f06bb0ef987f.tar.gz
WDDM: align allocation size. bugref:9845
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@99677 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src')
-rw-r--r--src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPDX.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPDX.cpp b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPDX.cpp
index cf8959fbffe..dea0ccb1943 100644
--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPDX.cpp
+++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPDX.cpp
@@ -350,6 +350,7 @@ NTSTATUS APIENTRY DxgkDdiDXCreateAllocation(
/* Init allocation data. */
pAllocation->enmType = VBOXWDDM_ALLOC_TYPE_D3D;
pAllocation->dx.desc = *(PVBOXDXALLOCATIONDESC)pAllocationInfo->pPrivateDriverData;
+ pAllocation->dx.desc.cbAllocation = RT_ALIGN_32(pAllocation->dx.desc.cbAllocation, PAGE_SIZE); /* DXGK expects it to be page aligned. */
pAllocation->dx.sid = SVGA3D_INVALID_ID;
pAllocation->dx.mobid = SVGA3D_INVALID_ID;
pAllocation->dx.SegmentId = 0;