Commit 34a76b50 by Chris Forbes

Require 16-byte alignment for Vulkan objects

At least for large formats, we assume 16 byte alignment for render target writes. Requiring 16 bytes in general seems a good idea for x86_64. Bug: b/127721996 Change-Id: Ie4d2d9bf71fb8a3d8b58f099785e75a72ff0e181 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26448Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent 7273a4b3
...@@ -37,7 +37,7 @@ enum ...@@ -37,7 +37,7 @@ enum
enum enum
{ {
REQUIRED_MEMORY_ALIGNMENT = 8, // For 64 bit formats on ARM64 REQUIRED_MEMORY_ALIGNMENT = 16, // ARM64 will want 8 bytes for 64b formats; x86 wants 16 bytes for 128b formats
MIN_TEXEL_BUFFER_OFFSET_ALIGNMENT = 256, MIN_TEXEL_BUFFER_OFFSET_ALIGNMENT = 256,
MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 256, MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 256,
MIN_STORAGE_BUFFER_OFFSET_ALIGNMENT = 256, MIN_STORAGE_BUFFER_OFFSET_ALIGNMENT = 256,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment