mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
radv/rra: Remove redundant bounds validation
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18530>
This commit is contained in:
parent
97d8bb9bc6
commit
d94cb8b595
1 changed files with 0 additions and 7 deletions
|
|
@ -472,13 +472,6 @@ rra_validate_node(struct hash_table_u64 *accel_struct_vas, uint8_t *data,
|
|||
result = false;
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t parent_id_index =
|
||||
rra_parent_table_index_from_offset(offset, parent_table_size);
|
||||
if (parent_id_index * 4 > parent_table_size) {
|
||||
rra_accel_struct_validation_fail(offset, "Invalid parent id index %u", parent_id_index);
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue