In the vbuf_render::set_primitive() functions.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
#include "pipe/p_compiler.h"
+#include "pipe/p_defines.h"
struct pipe_rasterizer_state;
* 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
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;
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;
}
}
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);
}
static void r300_render_set_primitive(struct vbuf_render* render,
- unsigned prim)
+ enum pipe_prim_type prim)
{
struct r300_render* r300render = r300_render(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;
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;