From 14dd5bd2cbd3a2ffecc68ffd45eb35dab109642d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 7 Jul 2022 09:47:54 -0500 Subject: [PATCH] dozen: Increase optimalBufferCopy*Alignment D3D12 requires the offset to be 512B-aligned and row pitch to be 256B-aligned for copy commands. There will need to be a fallback written eventually because Vulkan has no such requirements but these will remain the optimal limits as they allow using the D3D12 copy commands directly. Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/vulkan/dzn_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c index c26dbac99e7..ba74f5b6581 100644 --- a/src/microsoft/vulkan/dzn_device.c +++ b/src/microsoft/vulkan/dzn_device.c @@ -1501,8 +1501,8 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, .lineWidthGranularity = 0.0f, .strictLines = 0, .standardSampleLocations = false, - .optimalBufferCopyOffsetAlignment = 1, - .optimalBufferCopyRowPitchAlignment = 1, + .optimalBufferCopyOffsetAlignment = D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT, + .optimalBufferCopyRowPitchAlignment = D3D12_TEXTURE_DATA_PITCH_ALIGNMENT, .nonCoherentAtomSize = 256, };