diff --git a/.pick_status.json b/.pick_status.json index 87bea112dd0..ef51f7a12db 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1954,7 +1954,7 @@ "description": "intel/elk: Fix assert with side effect", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "ebd67382604d0b7bddf2ebd2aa824a272e8e9bb2", "notes": null diff --git a/src/intel/compiler/elk/elk_fs.cpp b/src/intel/compiler/elk/elk_fs.cpp index bf5db704837..598ee12c9cb 100644 --- a/src/intel/compiler/elk/elk_fs.cpp +++ b/src/intel/compiler/elk/elk_fs.cpp @@ -3387,7 +3387,8 @@ elk_fs_visitor::workaround_source_arf_before_eot() /* Currently, we always emit only one EOT per program, * this WA should be updated if it ever changes. */ - assert(++eot_count == 1); + ++eot_count; + assert(eot_count == 1); const fs_builder ibld(this, block, inst); const fs_builder ubld = ibld.exec_all().group(1, 0);