]> git.cworth.org Git - fips/commitdiff
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)
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>

No differences found