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);