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.
This commit is contained in:
Eric Anholt 2009-06-23 19:30:25 -07:00
parent d43599afef
commit b72dea5441

View file

@ -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:
*/