]> git.cworth.org Git - fips/commit
Fix conversion from group IDs to group array indices.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Oct 2013 19:38:37 +0000 (12:38 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 23 Oct 2013 20:00:56 +0000 (13:00 -0700)
commit583e41faf104e7a7ee168761361c8c64aa3c5462
tree9bdd2365c7a5c163b3f87dcf699ce978e14130c9
parent2c71194f453bb34ff2291c2fa7c73582a3adb05e
Fix conversion from group IDs to group array indices.

The loop that found the array index for a particular group based on the
group ID had a subtle bug: it compared against "i" instead of group_id.

In the i965 implementation, the first group happens to have ID 0, which
meant that the loop would always select the first group (since the ID
equals the array index).  This led to assertion failures about the
number of counters in each group.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
metrics.c