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:
@@ -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:
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user