Skip to content

Make read_clock_khr always available #310

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

Merged
merged 4 commits into from
Jul 1, 2025
Merged

Conversation

Firestar99
Copy link
Member

@Firestar99 Firestar99 commented Jul 1, 2025

split out from #280 to get it merged sooner

Currently, the arch::read_clock_khr function is hidden behind it's target_feature gates ShaderClockKHR and ext:SPV_KHR_shader_clock, unlike every other intrinsic we have. Usually, the functions are always available and spirv-val just fails if you use a feature without enabling it. This PR removes the feature gate.

It also removes that extension and capability from the ones enabled by default in compiletest, as naga does not support it, to unblock #280

Copy link
Collaborator

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

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

LGTM!

@Firestar99 Firestar99 added this pull request to the merge queue Jul 1, 2025
Merged via the queue into main with commit 80f5532 Jul 1, 2025
13 checks passed
@Firestar99 Firestar99 deleted the read_shader_clock_feature branch July 1, 2025 10:45
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.

2 participants