gallium: s/unsigned/enum pipe_prim_type/
authorBrian Paul <brianp@vmware.com>
Fri, 27 Oct 2017 20:36:01 +0000 (14:36 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Oct 2017 22:26:26 +0000 (16:26 -0600)
In the vbuf_render::set_primitive() functions.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_vbuf.h
src/gallium/drivers/i915/i915_prim_vbuf.c
src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
src/gallium/drivers/nouveau/nv30/nv30_draw.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c

index 194796b044c89751fe445ec3176baa16592185c8..8faccda556c12605b9ecaec82b55c60c7966e087 100644 (file)
@@ -38,6 +38,7 @@
 
 
 #include "pipe/p_compiler.h"
+#include "pipe/p_defines.h"
 
 
 struct pipe_rasterizer_state;
@@ -96,7 +97,7 @@ struct vbuf_render {
     * the discretion of the driver, for the benefit of the passthrough
     * path.
     */
-   void (*set_primitive)( struct vbuf_render *, unsigned prim );
+   void (*set_primitive)( struct vbuf_render *, enum pipe_prim_type prim );
 
    /**
     * Draw indexed primitives.  Note that indices are ushort.  The driver
index c0ba23b3be85d62da53bfd19a5a2fed3b047534a..8f2f5c1bbbbf2c637421954c62c310d15045a041 100644 (file)
@@ -324,7 +324,7 @@ i915_vbuf_ensure_index_bounds(struct vbuf_render *render,
 
 static void
 i915_vbuf_render_set_primitive(struct vbuf_render *render, 
-                               unsigned prim)
+                               enum pipe_prim_type prim)
 {
    struct i915_vbuf_render *i915_render = i915_vbuf_render(render);
    i915_render->prim = prim;
index d7fa9fd20bf2c234dce34bf42220b90750842f31..28a48d488206eab2f50c3b8f5113b8ef5829f994 100644 (file)
@@ -115,7 +115,7 @@ lp_setup_unmap_vertices(struct vbuf_render *vbr,
 
 
 static void
-lp_setup_set_primitive(struct vbuf_render *vbr, unsigned prim)
+lp_setup_set_primitive(struct vbuf_render *vbr, enum pipe_prim_type prim)
 {
    lp_setup_context(vbr)->prim = prim;
 }
index 4c587fca75da03210e8b4de7fec77cb07c2424c8..798ec1423d297da6ef93552f383fe494d287a1ca 100644 (file)
@@ -111,7 +111,7 @@ nv30_render_unmap_vertices(struct vbuf_render *render,
 }
 
 static void
-nv30_render_set_primitive(struct vbuf_render *render, unsigned prim)
+nv30_render_set_primitive(struct vbuf_render *render, enum pipe_prim_type prim)
 {
    struct nv30_render *r = nv30_render(render);
 
index 4cae7660347ad3b3f845b0b5c71deef13cdc1ee1..9397aaeba7c7f17bae62efc8d072c4434d2db6c6 100644 (file)
@@ -964,7 +964,7 @@ static void r300_render_release_vertices(struct vbuf_render* render)
 }
 
 static void r300_render_set_primitive(struct vbuf_render* render,
-                                      unsigned prim)
+                                      enum pipe_prim_type prim)
 {
     struct r300_render* r300render = r300_render(render);
 
index 95d1ac1514feb4d53069c2950e1dd94e84a376b0..1ce04a2f11d227d967fbfd62bd2cae1f9aad70a8 100644 (file)
@@ -60,7 +60,7 @@ struct softpipe_vbuf_render
    struct softpipe_context *softpipe;
    struct setup_context *setup;
 
-   uint prim;
+   enum pipe_prim_type prim;
    uint vertex_size;
    uint nr_vertices;
    uint vertex_buffer_size;
@@ -133,7 +133,7 @@ sp_vbuf_unmap_vertices(struct vbuf_render *vbr,
 
 
 static void
-sp_vbuf_set_primitive(struct vbuf_render *vbr, unsigned prim)
+sp_vbuf_set_primitive(struct vbuf_render *vbr, enum pipe_prim_type prim)
 {
    struct softpipe_vbuf_render *cvbr = softpipe_vbuf_render(vbr);
    struct setup_context *setup_ctx = cvbr->setup;