summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_scene.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-03-04 11:37:35 -0800
committerKenneth Graunke <[email protected]>2013-03-06 08:27:47 -0800
commit89e5c8e0fa0f7ec6e1dc0d1ee269c164fd1cf3b0 (patch)
tree085120fe0b4d2ed7d8ed350b1f8d1e7ac990f5f4 /src/gallium/drivers/llvmpipe/lp_scene.h
parent886c5085e3f78affa524bf12ca406a617219cd68 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.h')
0 files changed, 0 insertions, 0 deletions