mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
pco: fix a typo in the check for optimization looping
The count isn't incremented anywhere else. Signed-off-by: Eric R. Smith <eric.smith@collabora.com> Reviewed-by: Simon Perretta <simon.perretta@imgtec.com> Fixes:f1b24267d2("pco: rework nir processing and passes") (cherry picked from commit8521051cfa) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
parent
eea697b179
commit
63a6e0ffc9
2 changed files with 2 additions and 2 deletions
|
|
@ -1264,7 +1264,7 @@
|
|||
"description": "pco: fix a typo in the check for optimization looping",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f1b24267d25bcf3a29228b705a253a6c4b40b8af",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -448,7 +448,7 @@ static void pco_nir_opt(pco_ctx *ctx, nir_shader *nir, bool algebraic)
|
|||
do {
|
||||
progress = false;
|
||||
|
||||
if (count > 1000) {
|
||||
if (count++ > 1000) {
|
||||
printf("WARNING! Infinite opt loop!\n");
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue