mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
i965: Only map the necessary buffer range in brw_prepare_indices
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
2ea1ff3816
commit
0d636213d4
1 changed files with 2 additions and 3 deletions
|
|
@ -690,11 +690,10 @@ static void brw_prepare_indices(struct brw_context *brw)
|
|||
*/
|
||||
if ((get_size(index_buffer->type) - 1) & offset) {
|
||||
GLubyte *map = ctx->Driver.MapBufferRange(ctx,
|
||||
0,
|
||||
bufferobj->Size,
|
||||
offset,
|
||||
ib_size,
|
||||
GL_MAP_WRITE_BIT,
|
||||
bufferobj);
|
||||
map += offset;
|
||||
|
||||
intel_upload_data(&brw->intel, map, ib_size, ib_type_size,
|
||||
&bo, &offset);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue