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 commit 8521051cfa)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
Eric R. Smith 2026-03-05 10:22:32 -04:00 committed by Eric Engestrom
parent eea697b179
commit 63a6e0ffc9
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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;
}