summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_draw_elements.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-05-25 16:52:34 -0600
committerBrian Paul <[email protected]>2016-05-26 17:44:17 -0600
commitd21a309c6c00122b0562284d78fce5138fa2ad30 (patch)
treeba76a97b40b1247f89938ba5975960a16abdb5e1 /src/gallium/drivers/svga/svga_draw_elements.c
parent90afd7b7ef897f7ba126006d866d1e726235b974 (diff)
svga: s/unsigned/enum pipe_prim_type/ for primitive type variables
Proper enum types were only added recently. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_draw_elements.c')
-rw-r--r--src/gallium/drivers/svga/svga_draw_elements.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_draw_elements.c b/src/gallium/drivers/svga/svga_draw_elements.c
index b74c745ee4a..6eb5067beec 100644
--- a/src/gallium/drivers/svga/svga_draw_elements.c
+++ b/src/gallium/drivers/svga/svga_draw_elements.c
@@ -39,7 +39,7 @@
static enum pipe_error
translate_indices(struct svga_hwtnl *hwtnl, struct pipe_resource *src,
- unsigned offset, unsigned prim, unsigned nr,
+ unsigned offset, enum pipe_prim_type prim, unsigned nr,
unsigned index_size,
u_translate_func translate, struct pipe_resource **out_buf)
{
@@ -98,7 +98,7 @@ svga_hwtnl_simple_draw_range_elements(struct svga_hwtnl *hwtnl,
struct pipe_resource *index_buffer,
unsigned index_size, int index_bias,
unsigned min_index, unsigned max_index,
- unsigned prim, unsigned start,
+ enum pipe_prim_type prim, unsigned start,
unsigned count,
unsigned start_instance,
unsigned instance_count)
@@ -130,7 +130,7 @@ svga_hwtnl_draw_range_elements(struct svga_hwtnl *hwtnl,
struct pipe_resource *index_buffer,
unsigned index_size, int index_bias,
unsigned min_index, unsigned max_index,
- unsigned prim, unsigned start, unsigned count,
+ enum pipe_prim_type prim, unsigned start, unsigned count,
unsigned start_instance, unsigned instance_count)
{
unsigned gen_prim, gen_size, gen_nr;