i965: Implement ARB_indirect_parameters.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_context.h
index bc3d3e398be6ed29c9044fdc663eb33d2902296d..dea35ee04f6b55c1f76448deef55c0e4a2d07102 100644 (file)
@@ -812,6 +812,14 @@ struct brw_context
       int gl_drawid;
       struct brw_bo *draw_id_bo;
       uint32_t draw_id_offset;
+
+      /**
+       * Pointer to the the buffer storing the indirect draw parameters. It
+       * currently only stores the number of requested draw calls but more
+       * parameters could potentially be added.
+       */
+      struct brw_bo *draw_params_count_bo;
+      uint32_t draw_params_count_offset;
    } draw;
 
    struct {