mojira.dev
MC-313723

Vulkan: writeToTexture uses a staging offset that is only 1-byte aligned

uploadStaging(source, 1L, 16) only aligns to 1 byte, and the result is used as the bufferOffset of vkCmdCopyBufferToImage, which must be a multiple of the texel block size (and of 4 for depth/stencil). Any odd-sized staging allocation earlier in the same block (an R8 glyph upload, a 6-byte writeToBuffer…) misaligns the next RGBA8 NativeImage upload. OpenGL has no such constraint.

Source: VUID-vkCmdCopyBufferToImage-dstImage-07975

Comments 0

No comments.

Lolo

(Unassigned)

Plausible

26.4 Pre-Release 2

Retrieved