diff options
author | Jason Ekstrand <[email protected]> | 2016-05-17 15:34:40 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-23 19:12:34 -0700 |
commit | aec10a1d5b4a0802f6f09d1b83c79f53ecd3d29f (patch) | |
tree | 70d9f9fd944e5d33ab2ce396f22fbf279bce94f8 /src/mesa/drivers/dri/i965/gen8_draw_upload.c | |
parent | 7c8dfa78b98a12c1c5f74d11433c8554d4c90657 (diff) |
i965/draw: Use the real size for index buffers
Previously, we were using the size of the whole BO which may be
substantially larger than the actual index buffer size.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen8_draw_upload.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_draw_upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_draw_upload.c b/src/mesa/drivers/dri/i965/gen8_draw_upload.c index 4bb3a59b8d2..5b3f673c2ad 100644 --- a/src/mesa/drivers/dri/i965/gen8_draw_upload.c +++ b/src/mesa/drivers/dri/i965/gen8_draw_upload.c @@ -384,7 +384,7 @@ gen8_emit_index_buffer(struct brw_context *brw) OUT_BATCH(CMD_INDEX_BUFFER << 16 | (5 - 2)); OUT_BATCH(brw_get_index_type(index_buffer->type) | mocs_wb); OUT_RELOC64(brw->ib.bo, I915_GEM_DOMAIN_VERTEX, 0, 0); - OUT_BATCH(brw->ib.bo->size); + OUT_BATCH(brw->ib.size); ADVANCE_BATCH(); } |