Skip to content

Commit

Permalink
Update validate_runtime.rs (#2621)
Browse files Browse the repository at this point in the history
  • Loading branch information
ComfyFluffy authored Jan 28, 2025
1 parent a11c8a7 commit c447064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulkano/src/pipeline/shader/validate_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@ impl RuntimeValidator<'_> {
if let Some(scope) = scope {
match scope {
Scope::Subgroup => {
if self.device.enabled_features().shader_subgroup_clock {
if !self.device.enabled_features().shader_subgroup_clock {
return Err(Box::new(ValidationError {
problem: "an `OpReadClockKHR` instruction is performed \
with a scope of `Scope::Subgroup`"
Expand All @@ -2591,7 +2591,7 @@ impl RuntimeValidator<'_> {
}
}
Scope::Device => {
if self.device.enabled_features().shader_device_clock {
if !self.device.enabled_features().shader_device_clock {
return Err(Box::new(ValidationError {
problem: "an `OpReadClockKHR` instruction is performed \
with a scope of `Scope::Device`"
Expand Down

0 comments on commit c447064

Please sign in to comment.