*/
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,
*/
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)
#define U_INDICES_H
#include "pipe/p_compiler.h"
+#include "pipe/p_defines.h"
/* First/last provoking vertex */
#define PV_FIRST 0
*/
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);
*/
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);
* 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);
* 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);
* 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:
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)
* '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)
enum pipe_prim_type prim, unsigned start, unsigned count,
unsigned start_instance, unsigned instance_count)
{
- unsigned gen_prim, gen_size, gen_nr;
+ enum pipe_prim_type gen_prim;
+ unsigned gen_size, gen_nr;
enum indices_mode gen_type;
u_generate_func gen_func;
enum pipe_error ret = PIPE_OK;
enum pipe_prim_type prim, unsigned start, unsigned count,
unsigned start_instance, unsigned instance_count)
{
- unsigned gen_prim, gen_size, gen_nr;
+ enum pipe_prim_type gen_prim;
+ unsigned gen_size, gen_nr;
enum indices_mode gen_type;
u_translate_func gen_func;
enum pipe_error ret = PIPE_OK;