main/cs: Add gl_context::ComputeProgram
authorPaul Berry <stereotype441@gmail.com>
Sat, 11 Jan 2014 05:39:25 +0000 (21:39 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 2 Sep 2014 02:38:27 +0000 (19:38 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/main/mtypes.h

index fbc9b4006a5780ec9945a03097b77bdd4dc37e24..4fb30ffbabee9f90ec09e8e3e472ca6c02d3e44e 100644 (file)
@@ -2347,6 +2347,20 @@ struct gl_fragment_program_state
 };
 
 
+/**
+ * Context state for compute programs.
+ */
+struct gl_compute_program_state
+{
+   struct gl_compute_program *Current;  /**< user-bound compute program */
+
+   /** Currently enabled and valid program (including internal programs
+    * and compiled shader programs).
+    */
+   struct gl_compute_program *_Current;
+};
+
+
 /**
  * ATI_fragment_shader runtime state
  */
@@ -4153,6 +4167,7 @@ struct gl_context
    struct gl_vertex_program_state VertexProgram;
    struct gl_fragment_program_state FragmentProgram;
    struct gl_geometry_program_state GeometryProgram;
+   struct gl_compute_program_state ComputeProgram;
    struct gl_ati_fragment_shader_state ATIFragmentShader;
 
    struct gl_pipeline_shader_state Pipeline; /**< GLSL pipeline shader object state */