mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Fixing offset alignments when using DynamicUploader
When using a dynamic uploader we didn't align the offset that the allocated memory might have already had. That fixes WriteTexture, WriteBuffer, ClearTexture and on D3D12 ClearBuffer. Bug: dawn:512 Change-Id: I64c7511ad6b0d3d6a28a494e1324a10ad4d38091 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/27020 Commit-Queue: Tomek Ponitka <tommek@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
eff9ef0f22
commit
7f265d1d40
@@ -64,4 +64,8 @@ static constexpr uint32_t kMaxTexture2DMipLevels = 14u;
|
||||
static_assert(1 << (kMaxTexture2DMipLevels - 1) == kMaxTextureSize,
|
||||
"kMaxTexture2DMipLevels and kMaxTextureSize size mismatch");
|
||||
|
||||
// Offset alignment for CopyB2B. Strictly speaking this alignment is required only
|
||||
// on macOS, but we decide to do it on all platforms.
|
||||
static constexpr uint64_t kCopyBufferToBufferOffsetAlignment = 4u;
|
||||
|
||||
#endif // COMMON_CONSTANTS_H_
|
||||
|
||||
Reference in New Issue
Block a user