diff options
author | Eric Anholt <[email protected]> | 2009-06-23 19:30:25 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-09-04 14:12:35 -0700 |
commit | 213ac4bb5de1cef601e0677ef2e5ca1779851e28 (patch) | |
tree | 4c563c3d48f53cd0132227a80f8c3e4979a4355d /src/mesa | |
parent | cab307ce6b32d2ffdb0eb3bb5bae93c6fb9305fb (diff) |
i965: Set the max index buffer address correctly according to the docs.
It's the last addressable byte, not the byte after the end of the buffer.
(cherry picked from commit b72dea5441e8e9226dabf1826fa3bc129c7bc281)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 1b8bcc14ec0..3ef56a00683 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -635,7 +635,7 @@ static void brw_emit_indices(struct brw_context *brw) if (index_buffer == NULL) return; - ib_size = get_size(index_buffer->type) * index_buffer->count; + ib_size = get_size(index_buffer->type) * index_buffer->count - 1; /* Emit the indexbuffer packet: */ |