summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-12-30 04:22:12 +0100
committerJakob Bornecrantz <[email protected]>2009-12-30 04:22:12 +0100
commit53e314cb8057797ae75187d91836a50f61170dd7 (patch)
treeb624e490cd7d11084734085488a5f591440cf5cb /src/gallium/state_trackers/xorg
parent3bcf7d7d7be074246d815fdf4a486e08f5db46a3 (diff)
st/xorg: Make sure we don't overrun the fence array in block handler
Diffstat (limited to 'src/gallium/state_trackers/xorg')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c
index bf0a23fe9c2..ee01ba0dcf6 100644
--- a/src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/src/gallium/state_trackers/xorg/xorg_driver.c
@@ -467,7 +467,7 @@ static void drv_block_handler(int i, pointer blockData, pointer pTimeout,
* quite small. Let us get a fair way ahead of hardware before
* throttling.
*/
- for (j = 0; j < XORG_NR_FENCES; j++)
+ for (j = 0; j < XORG_NR_FENCES - 1; j++)
ms->screen->fence_reference(ms->screen,
&ms->fence[j],
ms->fence[j+1]);