mesa: add support for ARB_sample_locations
[mesa.git] / src / mesa / main / dd.h
index d85d89ef50ce80797f24a171dae7f73b81322aaf..1b048d3ff8e8b19afa2f230b9934925de8bf3822 100644 (file)
@@ -611,7 +611,9 @@ struct dd_function_table {
    /** Specify mapping of depth values from NDC to window coordinates */
    void (*DepthRange)(struct gl_context *ctx);
    /** Specify the current buffer for writing */
-   void (*DrawBuffer)( struct gl_context *ctx, GLenum buffer );
+   void (*DrawBuffer)(struct gl_context *ctx);
+   /** Used to allocated any buffers with on-demand creation */
+   void (*DrawBufferAllocate)(struct gl_context *ctx);
    /** Enable or disable server-side gl capabilities */
    void (*Enable)(struct gl_context *ctx, GLenum cap, GLboolean state);
    /** Specify fog parameters */
@@ -785,6 +787,14 @@ struct dd_function_table {
                               GLenum target, GLsizei numAttachments,
                               const GLenum *attachments);
 
+   /**
+    * \name Functions for GL_ARB_sample_locations
+    */
+   void (*GetProgrammableSampleCaps)(struct gl_context *ctx,
+                                     const struct gl_framebuffer *fb,
+                                     GLuint *bits, GLuint *width, GLuint *height);
+   void (*EvaluateDepthValues)(struct gl_context *ctx);
+
    /**
     * \name Query objects
     */