i965: Reuse precalculated ib_type_size value.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2013-01-22 17:38:37 -08:00
parent 9aa02a205d
commit b859a12f21

View file

@ -840,7 +840,7 @@ static void brw_upload_indices(struct brw_context *brw)
/* If the index buffer isn't aligned to its element size, we have to
* rebase it into a temporary.
*/
if ((get_size(index_buffer->type) - 1) & offset) {
if ((ib_type_size - 1) & offset) {
GLubyte *map = ctx->Driver.MapBufferRange(ctx,
offset,
ib_size,