Proper enum types were only added recently.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
enum pipe_error
svga_hwtnl_draw_arrays(struct svga_hwtnl *hwtnl,
- unsigned prim, unsigned start, unsigned count,
+ enum pipe_prim_type prim, unsigned start, unsigned count,
unsigned start_instance, unsigned instance_count);
enum pipe_error
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);
boolean
static enum pipe_error
retrieve_or_generate_indices(struct svga_hwtnl *hwtnl,
- unsigned prim,
+ enum pipe_prim_type prim,
unsigned gen_type,
unsigned gen_nr,
unsigned gen_size,
static enum pipe_error
simple_draw_arrays(struct svga_hwtnl *hwtnl,
- unsigned prim, unsigned start, unsigned count,
+ enum pipe_prim_type prim, unsigned start, unsigned count,
unsigned start_instance, unsigned instance_count)
{
SVGA3dPrimitiveRange range;
enum pipe_error
svga_hwtnl_draw_arrays(struct svga_hwtnl *hwtnl,
- 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;
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)
{
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)
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;
* triangles?
*/
static inline boolean
-svga_need_unfilled_fallback(const struct svga_hwtnl *hwtnl, unsigned prim)
+svga_need_unfilled_fallback(const struct svga_hwtnl *hwtnl,
+ enum pipe_prim_type prim)
{
const struct svga_context *svga = hwtnl->svga;
int index_bias,
unsigned min_index,
unsigned max_index,
- unsigned prim,
+ enum pipe_prim_type prim,
unsigned start,
unsigned count,
unsigned start_instance,
int index_bias,
unsigned min_index,
unsigned max_index,
- unsigned prim,
+ enum pipe_prim_type prim,
unsigned start,
unsigned count,
unsigned start_instance,
static enum pipe_error
retry_draw_arrays( struct svga_context *svga,
- unsigned prim, unsigned start, unsigned count,
+ enum pipe_prim_type prim, unsigned start, unsigned count,
unsigned start_instance, unsigned instance_count,
boolean do_retry )
{
static void
svga_vbuf_render_set_primitive( struct vbuf_render *render,
- unsigned prim )
+ enum pipe_prim_type prim )
{
struct svga_vbuf_render *svga_render = svga_vbuf_render(render);
svga_render->prim = prim;
SVGA3dElementLayoutId layout_id; /**< current element layout id */
- unsigned prim;
+ enum pipe_prim_type prim;
struct pipe_resource *vbuf;
struct pipe_resource *ibuf;