And add some default switch cases to silence compiler warnings.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
unsigned num_samplers[PIPE_SHADER_TYPES];
unsigned num_sampler_views[PIPE_SHADER_TYPES];
unsigned num_vertex_buffers;
- unsigned reduced_prim;
+ enum pipe_prim_type reduced_prim;
struct {
unsigned flag_1d;
svga_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
{
struct svga_context *svga = svga_context( pipe );
- unsigned reduced_prim = u_reduced_prim( info->mode );
+ enum pipe_prim_type reduced_prim = u_reduced_prim( info->mode );
unsigned count = info->count;
enum pipe_error ret = 0;
boolean needed_swtnl;
adjust_x = -0.5;
adjust_y = -0.5;
break;
+ default:
+ /* nothing */
+ break;
}
}
adjx += SVGA_TRIANGLE_ADJ_X;
adjy += SVGA_TRIANGLE_ADJ_Y;
break;
+ default:
+ /* nothing */
+ break;
}
}