vkCmdClearColorImage does not clear beyond 1025 z slices of 3d images

Given any format 3d Vulkan image vkCmdClearColorImage only seems to apply to the first 1025 z slices with current NVIDIA drivers on Linux and Windows.

The issue appears to be reproducible with e.g. 580.159, 581.57, 591.86 and 610.47.

The issue does not reproduce with 560.94.

I tried creating a test case using Sascha Willem’s Vulkan Examples as a base:

The “clear3d” test is basically a copy of “texture3d” that changes the texture size from {128, 128, 128} to {1, 1, 2048} and adds a vkCmdClearColorImage right after the texture upload.

Expected behavior would be that the texture is completely dark but when running the example (which animates through the 3d texture) only about half of it is dark.

The issue vanishes when the size of the texture is reduced to {1, 1, 1025}.