Skip to content

Commit

Permalink
[naga] Remove redundant handle ordering check from validator. (gfx-rs…
Browse files Browse the repository at this point in the history
…#6321)

`Validator::validate_module_handles` already ensures that types refer
only to other types appearing earlier in the arena than themselves, so
this check in `Validator::validate_type` is redundant.
  • Loading branch information
jimblandy authored Sep 25, 2024
1 parent 7074380 commit e7f891b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions naga/src/valid/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,6 @@ impl super::Validator {
)
}
Ti::BindingArray { base, size } => {
if base >= handle {
return Err(TypeError::InvalidArrayBaseType(base));
}
let type_info_mask = match size {
crate::ArraySize::Constant(_) => TypeFlags::SIZED | TypeFlags::HOST_SHAREABLE,
crate::ArraySize::Dynamic => {
Expand Down

0 comments on commit e7f891b

Please sign in to comment.