gallium: add PIPE_CAP_TGSI CLOCK
[mesa.git] / src / gallium / drivers / svga / svga_pipe_draw.c
index bbd443049507da7dcbaa0bb0b655c780fc7189e4..30524a0e3ec49a7a820c3efdf2b62d6f6c4dc1d4 100644 (file)
@@ -182,7 +182,7 @@ static void
 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;
@@ -196,7 +196,7 @@ svga_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
       goto done;
 
    /* Upload a user index buffer. */
-   struct pipe_index_buffer ibuffer_saved = {};
+   struct pipe_index_buffer ibuffer_saved = {0};
    if (info->indexed && svga->curr.ib.user_buffer &&
        !util_save_and_upload_index_buffer(pipe, info, &svga->curr.ib,
                                           &ibuffer_saved)) {