diff options
author | Eric Anholt <[email protected]> | 2013-01-22 17:38:37 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-01-25 09:40:44 -0800 |
commit | b859a12f217042544450083d36b55f8391ca2909 (patch) | |
tree | 7061ab661d75e1e9be117e969031e8da60362e56 /src/mesa | |
parent | 9aa02a205d886b27325428785a63be7f8b8ae5ec (diff) |
i965: Reuse precalculated ib_type_size value.
Reviewed-by: Kenneth Graunke <[email protected]>
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 43848f7dcbc..07751487c0d 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -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, |