r600g : fix incorrect size computation in r600_query_result
authorPierre-Eric Pelloux-Prayer <pelloux@gmail.com>
Tue, 7 Jun 2011 21:40:37 +0000 (17:40 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 7 Jun 2011 21:40:37 +0000 (17:40 -0400)
commitbdf2e112856659816d000699fce606adc4ee9926
tree0bffb396feb054fc27b4cc403b854a7b3ac00609
parent5d4c4798223c3463dbf67c47b9563f82c9057e7f
r600g : fix incorrect size computation in r600_query_result

query->num_results already has the size in dwords of the query
buffer.  There no need to multiply again.  We were reading past
the end of the buffer, resulting in reading garbage.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=37028

agd5f: clarify the comment.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/winsys/r600/drm/r600_hw_context.c