diff --git a/.pick_status.json b/.pick_status.json index f70b604e95f..326a95e0de1 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/imagination/pco/pco_nir.c b/src/imagination/pco/pco_nir.c index c674119fc94..ec51364fd1c 100644 --- a/src/imagination/pco/pco_nir.c +++ b/src/imagination/pco/pco_nir.c @@ -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; }