Mesa (main): dozen: Increase optimalBufferCopy*Alignment
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 7 18:47:59 UTC 2022
Module: Mesa
Branch: main
Commit: 14dd5bd2cbd3a2ffecc68ffd45eb35dab109642d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=14dd5bd2cbd3a2ffecc68ffd45eb35dab109642d
Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date: Thu Jul 7 09:47:54 2022 -0500
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 <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17388>
---
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,
};
More information about the mesa-commit
mailing list