mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
vc4: Fix off-by-one in branch target validation.
This commit is contained in:
parent
7fa2f2e366
commit
d04b07f8e2
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ validate_branch_to_sublist(VALIDATE_ARGS)
|
|||
|
||||
offset = *(uint32_t *)(untrusted + 0);
|
||||
if (offset % exec->tile_alloc_init_block_size ||
|
||||
offset / exec->tile_alloc_init_block_size >
|
||||
offset / exec->tile_alloc_init_block_size >=
|
||||
exec->bin_tiles_x * exec->bin_tiles_y) {
|
||||
DRM_ERROR("VC4_PACKET_BRANCH_TO_SUB_LIST must jump to initial "
|
||||
"tile allocation space.\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue