Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created November 27, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/9efc0a6602a024b761178236cb04377d to your computer and use it in GitHub Desktop.
Save anarsoul/9efc0a6602a024b761178236cb04377d to your computer and use it in GitHub Desktop.
diff --git a/src/gallium/auxiliary/util/u_helpers.c b/src/gallium/auxiliary/util/u_helpers.c
index 00a1a9791fa..1a1c50959ab 100644
--- a/src/gallium/auxiliary/util/u_helpers.c
+++ b/src/gallium/auxiliary/util/u_helpers.c
@@ -149,7 +149,7 @@ util_upload_index_buffer(struct pipe_context *pipe,
unsigned start_offset = info->start * info->index_size;
u_upload_data(pipe->stream_uploader, start_offset,
- info->count * info->index_size, 4,
+ info->count * info->index_size, 0x40,
(char*)info->index.user + start_offset,
out_offset, out_buffer);
u_upload_unmap(pipe->stream_uploader);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment