i965: Fix off-by-one in query object result gathering.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Mar 2013 19:37:35 +0000 (11:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Mar 2013 16:27:47 +0000 (08:27 -0800)
commit89e5c8e0fa0f7ec6e1dc0d1ee269c164fd1cf3b0
tree085120fe0b4d2ed7d8ed350b1f8d1e7ac990f5f4
parent886c5085e3f78affa524bf12ca406a617219cd68
i965: Fix off-by-one in query object result gathering.

If we've written N pairs of values to the buffer, then last_index = N,
but the values are 0 .. N-1.  Thus, we need to use <, not <=.

This worked anyway because we fill the buffer with zeroes, so we just
added an extra (0 - 0) to our results.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_queryobj.c