svga: avoid emitting redundant SetIndexBuffer commands
[mesa.git] / src / gallium / drivers / svga / svga_context.h
index c4284cc3e5b491ef5a0255ee510b07941f1ca3db..db9491bc282ed920def0686cacbf87b8466d2d20 100644 (file)
@@ -343,6 +343,10 @@ struct svga_hw_draw_state
    SVGA3dElementLayoutId layout_id;
    SVGA3dPrimitiveType topology;
 
+   struct svga_winsys_surface *ib;  /**< index buffer for drawing */
+   SVGA3dSurfaceFormat ib_format;
+   unsigned ib_offset;
+
    /* used for rebinding */
    unsigned num_sampler_views[PIPE_SHADER_TYPES];
    unsigned default_constbuf_size[PIPE_SHADER_TYPES];