diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-01-29 11:52:33 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-01-29 11:52:33 +0000 |
commit | 37bbf6a1792773f11c15a4da1588a7520ee2fb4e (patch) | |
tree | 64944d4aa665a1e479cfc004e446593062254550 /lib/mesa/src/gallium/auxiliary/util/u_draw.h | |
parent | 6b139c2063623e9310025247cd966490b9aa57ea (diff) |
Merge Mesa 18.3.2
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/util/u_draw.h')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/util/u_draw.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/util/u_draw.h b/lib/mesa/src/gallium/auxiliary/util/u_draw.h index e8af14051..d0955fa3f 100644 --- a/lib/mesa/src/gallium/auxiliary/util/u_draw.h +++ b/lib/mesa/src/gallium/auxiliary/util/u_draw.h @@ -67,7 +67,9 @@ util_draw_arrays(struct pipe_context *pipe, } static inline void -util_draw_elements(struct pipe_context *pipe, unsigned index_size, +util_draw_elements(struct pipe_context *pipe, + void *indices, + unsigned index_size, int index_bias, enum pipe_prim_type mode, uint start, uint count) @@ -75,6 +77,8 @@ util_draw_elements(struct pipe_context *pipe, unsigned index_size, struct pipe_draw_info info; util_draw_init_info(&info); + info.index.user = indices; + info.has_user_indices = true; info.index_size = index_size; info.mode = mode; info.start = start; @@ -108,6 +112,7 @@ util_draw_arrays_instanced(struct pipe_context *pipe, static inline void util_draw_elements_instanced(struct pipe_context *pipe, + void *indices, unsigned index_size, int index_bias, enum pipe_prim_type mode, @@ -119,6 +124,8 @@ util_draw_elements_instanced(struct pipe_context *pipe, struct pipe_draw_info info; util_draw_init_info(&info); + info.index.user = indices; + info.has_user_indices = true; info.index_size = index_size; info.mode = mode; info.start = start; |