diff options
author | Brian Paul <[email protected]> | 2016-05-26 07:12:59 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-05-26 17:44:18 -0600 |
commit | a25ae485a6ae17fa78ffa51c3e4c08823cfffd88 (patch) | |
tree | dcac4e70fdfee3c2ed5b32916fd416cfbbd9f386 /src/gallium/auxiliary/indices | |
parent | 21a3fb9cd838cdcbdf1be97453878abf74dd3f6f (diff) |
util/indices,svga: s/unsigned/enum pipe_prim_type/
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/indices')
-rw-r--r-- | src/gallium/auxiliary/indices/u_indices.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/indices/u_indices.h | 17 | ||||
-rw-r--r-- | src/gallium/auxiliary/indices/u_unfilled_indices.c | 10 |
3 files changed, 17 insertions, 16 deletions
diff --git a/src/gallium/auxiliary/indices/u_indices.c b/src/gallium/auxiliary/indices/u_indices.c index 2b2d10c9cba..91f00f2bb7d 100644 --- a/src/gallium/auxiliary/indices/u_indices.c +++ b/src/gallium/auxiliary/indices/u_indices.c @@ -72,7 +72,7 @@ static void translate_memcpy_uint( const void *in, */ enum indices_mode u_index_translator(unsigned hw_mask, - unsigned prim, + enum pipe_prim_type prim, unsigned in_index_size, unsigned nr, unsigned in_pv, @@ -235,12 +235,12 @@ u_index_translator(unsigned hw_mask, */ enum indices_mode u_index_generator(unsigned hw_mask, - unsigned prim, + enum pipe_prim_type prim, unsigned start, unsigned nr, unsigned in_pv, unsigned out_pv, - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_generate_func *out_generate) diff --git a/src/gallium/auxiliary/indices/u_indices.h b/src/gallium/auxiliary/indices/u_indices.h index 7f696ab0663..f160fcbc678 100644 --- a/src/gallium/auxiliary/indices/u_indices.h +++ b/src/gallium/auxiliary/indices/u_indices.h @@ -26,6 +26,7 @@ #define U_INDICES_H #include "pipe/p_compiler.h" +#include "pipe/p_defines.h" /* First/last provoking vertex */ #define PV_FIRST 0 @@ -92,13 +93,13 @@ void u_index_init( void ); */ enum indices_mode u_index_translator(unsigned hw_mask, - unsigned prim, + enum pipe_prim_type prim, unsigned in_index_size, unsigned nr, unsigned in_pv, /* API */ unsigned out_pv, /* hardware */ unsigned prim_restart, - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_translate_func *out_translate); @@ -115,12 +116,12 @@ u_index_translator(unsigned hw_mask, */ enum indices_mode u_index_generator(unsigned hw_mask, - unsigned prim, + enum pipe_prim_type prim, unsigned start, unsigned nr, unsigned in_pv, /* API */ unsigned out_pv, /* hardware */ - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_generate_func *out_generate); @@ -135,11 +136,11 @@ void u_unfilled_init( void ); * points. */ enum indices_mode -u_unfilled_translator(unsigned prim, +u_unfilled_translator(enum pipe_prim_type prim, unsigned in_index_size, unsigned nr, unsigned unfilled_mode, - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_translate_func *out_translate); @@ -148,11 +149,11 @@ u_unfilled_translator(unsigned prim, * As above, but for non-indexed (array) primitives. */ enum indices_mode -u_unfilled_generator(unsigned prim, +u_unfilled_generator(enum pipe_prim_type prim, unsigned start, unsigned nr, unsigned unfilled_mode, - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_generate_func *out_generate); diff --git a/src/gallium/auxiliary/indices/u_unfilled_indices.c b/src/gallium/auxiliary/indices/u_unfilled_indices.c index 8cb5192d9a2..0ca1d04040b 100644 --- a/src/gallium/auxiliary/indices/u_unfilled_indices.c +++ b/src/gallium/auxiliary/indices/u_unfilled_indices.c @@ -95,7 +95,7 @@ static void generate_linear_uint( unsigned start, * separate lines (PIPE_PRIM_LINES). */ static unsigned -nr_lines(unsigned prim, unsigned nr) +nr_lines(enum pipe_prim_type prim, unsigned nr) { switch (prim) { case PIPE_PRIM_TRIANGLES: @@ -126,11 +126,11 @@ nr_lines(unsigned prim, unsigned nr) enum indices_mode -u_unfilled_translator(unsigned prim, +u_unfilled_translator(enum pipe_prim_type prim, unsigned in_index_size, unsigned nr, unsigned unfilled_mode, - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_translate_func *out_translate) @@ -186,11 +186,11 @@ u_unfilled_translator(unsigned prim, * 'draw' module. */ enum indices_mode -u_unfilled_generator(unsigned prim, +u_unfilled_generator(enum pipe_prim_type prim, unsigned start, unsigned nr, unsigned unfilled_mode, - unsigned *out_prim, + enum pipe_prim_type *out_prim, unsigned *out_index_size, unsigned *out_nr, u_generate_func *out_generate) |