[Mesa-dev] [PATCH 1/2] i965: Fix off-by-one in query object result gathering.

Eric Anholt eric at anholt.net
Mon Mar 4 15:37:55 PST 2013


Kenneth Graunke <kenneth at whitecape.org> writes:

> 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.

This series is:

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130304/15c1ca4f/attachment.pgp>


More information about the mesa-dev mailing list