KhronosGroup / KhronosGroup/Vulkan-ValidationLayers

No error is emitted when trying to use `vkCmdCopyBufferToImage` to write to an unbound sparse image

Open
#9,482 3 comments 0 reactions 1 assignee Claimed by @spencer-lunarg View on GitHub
Incomplete
Dominant language
C++
Stars
1k
Forks
504
Avg merge
11h 35m
Merged PRs (30d)
224

Description

**Environment:**
- OS: Windows 11
- GPU and driver version: Intel Iris Xe Graphics, version 31.0.101.5186
- SDK or header version if building from repo: v1.4.307
- Options enabled (synchronization, best practices, etc.): Core + Synchronization default settings

**Describe the Issue**

If you create an image with `VK_IMAGE_CREATE_SPARSE_BINDING_BIT` enabled and then write to it with `vkCmdCopyBufferToImage` before binding it with `vkQueueBindSparse`, no error is reported by the layer despite the destination of the write operation appearing to be undefined.

**Expected behavior**

I would expect an error message alerting me that I have tried to write into an unbound image.

**Valid Usage ID**
Unfortunately, it looks like there are no VUs that cover this case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.