svga: use new enum indices_mode type
authorBrian Paul <brianp@vmware.com>
Sat, 31 Oct 2015 13:44:49 +0000 (07:44 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Nov 2015 18:51:40 +0000 (11:51 -0700)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_draw_arrays.c
src/gallium/drivers/svga/svga_draw_elements.c

index caf4b17de168d340bae38497816ac89622635878..acb2e95e74752b4fddf461c7597e517e4ab03f52 100644 (file)
@@ -204,7 +204,8 @@ svga_hwtnl_draw_arrays(struct svga_hwtnl *hwtnl,
                        unsigned prim, unsigned start, unsigned count,
                        unsigned start_instance, unsigned instance_count)
 {
-   unsigned gen_prim, gen_size, gen_nr, gen_type;
+   unsigned gen_prim, gen_size, gen_nr;
+   enum indices_mode gen_type;
    u_generate_func gen_func;
    enum pipe_error ret = PIPE_OK;
    unsigned api_pv = hwtnl->api_pv;
index 9df8f6e9beb46112f8da94a1970915bd06c17cb6..0213409ef29d76d177e41db4ab4cc9247dd2613f 100644 (file)
@@ -133,7 +133,8 @@ svga_hwtnl_draw_range_elements(struct svga_hwtnl *hwtnl,
                                unsigned prim, unsigned start, unsigned count,
                                unsigned start_instance, unsigned instance_count)
 {
-   unsigned gen_prim, gen_size, gen_nr, gen_type;
+   unsigned gen_prim, gen_size, gen_nr;
+   enum indices_mode gen_type;
    u_translate_func gen_func;
    enum pipe_error ret = PIPE_OK;