Skip to content

[hal vulkan] Clean up Vulkan Validation Layer callback. - #9909

Open
jimblandy wants to merge 1 commit into
gfx-rs:trunkfrom
jimblandy:hal-vulkan-clean-up-old-vuid-suppressions
Open

[hal vulkan] Clean up Vulkan Validation Layer callback.#9909
jimblandy wants to merge 1 commit into
gfx-rs:trunkfrom
jimblandy:hal-vulkan-clean-up-old-vuid-suppressions

Conversation

@jimblandy

Copy link
Copy Markdown
Member

The wgpu-hal Vulkan backend, clean up the callback that reports VUID violations detected by the Vulkan Validation Layer:

  • Remove suppressions for VUIDs 01912, 04627, and 00184, as the upstream bugs responsible for these reports have been fixed for more than a year.

  • Fix some typos in comments.

The wgpu-hal Vulkan backend, clean up the callback that reports
VUID violations detected by the Vulkan Validation Layer:

- Remove suppressions for VUIDs 01912, 04627, and 00184, as the
  upstream bugs responsible for these reports have been fixed for
  more than a year.

- Fix some typos in comments.

@ErichDonGubler ErichDonGubler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minus CI being aang-y.

if let Some(layer_properties) = user_data.validation_layer_properties.as_ref() {
if layer_properties.layer_description.as_ref() == c"Khronos Validation Layer"
&& layer_properties.layer_spec_version >= vk::make_api_version(0, 1, 3, 240)
&& layer_properties.layer_spec_version <= vk::make_api_version(0, 1, 3, 250)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: CI is failing on a warning now that these layer_properties members are never used. Worth keeping? Or shall we just toss it?

@ErichDonGubler ErichDonGubler self-assigned this Jul 22, 2026

@inner-daemons inner-daemons left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a wonderful and very welcome change IMO

Comment on lines -29 to -30
const VUID_VKCMDENDDEBUGUTILSLABELEXT_COMMANDBUFFER_01912: i32 = 0x56146426;
if cd.message_id_number == VUID_VKCMDENDDEBUGUTILSLABELEXT_COMMANDBUFFER_01912 {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These names are killing me man, good riddance

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

Successfully merging this pull request may close these issues.

3 participants