Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation Layers modify incorrect configurations resulting in a successful render #8947

Open
SimonBorghese opened this issue Dec 1, 2024 · 0 comments

Comments

@SimonBorghese
Copy link

SimonBorghese commented Dec 1, 2024

Environment:

  • OS: Windows 10 & Arch Linux
  • GPU and driver version: NVIDIA RTX 3070, 566.14 (Windows) 565.57.01 (Linux)
  • SDK: 1.3.296.0 (Windows) 1.3.290 (Linux)
  • Options enabled (synchronization, best practices, etc.): Handle Wrapping (Windows) (Options not narrowed down on Linux, using defaults)

Describe the Issue

Consider a Vulkan application using dynamic rendering on Vulkan 1.3.29X

The programmer sets the vkRenderInfo struct as the p_next to their pipeline creation info. Within the vkRenderInfo, colorAttachmentCount is set to zero HOWEVER the actual pointer to the color attachments formats is set to point to the format of the color attachment used in dynamic rendering. This happens the programmer forgot to set the color attachment format count.

When validation layers are completely disabled, this results in the expected behavior (i.e. undefined behavior).

HOWEVER, when validation layers are enabled, the pipeline correctly outputs to color attachments despite to no color attachment formats technically being specified,

Expected behavior

Undefined behavior, specifically on my driver, the fragment shader output is NOT written to the color attachment

A validation error SHOULD be raised in this configuration however none is but that is not the scope of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant