mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 14:23:32 +00:00
[naga] Remove redundant handle ordering check from validator. (#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.
This commit is contained in:
parent
7074380945
commit
e7f891bf2b
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user