mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
pco: handle offset calculation for empty blocks
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
parent
2586d779ac
commit
4591eaa150
1 changed files with 7 additions and 1 deletions
|
|
@ -2962,7 +2962,13 @@ static inline unsigned pco_igrp_offset(pco_igrp *igrp)
|
|||
static inline unsigned pco_cf_node_offset(pco_cf_node *cf_node)
|
||||
{
|
||||
pco_block *block = pco_cf_node_as_block(cf_node);
|
||||
return pco_igrp_offset(pco_first_igrp(block));
|
||||
pco_igrp *igrp = pco_first_igrp(block);
|
||||
if (!igrp) {
|
||||
block = pco_next_block_nonempty(block);
|
||||
igrp = pco_first_igrp(block);
|
||||
}
|
||||
|
||||
return pco_igrp_offset(igrp);
|
||||
}
|
||||
|
||||
static inline unsigned pco_branch_rel_offset(pco_igrp *br, pco_cf_node *cf_node)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue