[Mesa-dev] [PATCH 4/5] gallium: add interfaces for controlling tess program state

Ilia Mirkin imirkin at alum.mit.edu
Sat Jul 19 07:59:04 PDT 2014


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

There are no docs on any of these shader states. I didn't want to create them
as part of this change, since this is just a copy of whatever fs/vs/gs are
doing.

 src/gallium/include/pipe/p_context.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index af5674f..40a0eef 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -170,6 +170,16 @@ struct pipe_context {
    void   (*bind_gs_state)(struct pipe_context *, void *);
    void   (*delete_gs_state)(struct pipe_context *, void *);
 
+   void * (*create_tcs_state)(struct pipe_context *,
+                              const struct pipe_shader_state *);
+   void   (*bind_tcs_state)(struct pipe_context *, void *);
+   void   (*delete_tcs_state)(struct pipe_context *, void *);
+
+   void * (*create_tes_state)(struct pipe_context *,
+                              const struct pipe_shader_state *);
+   void   (*bind_tes_state)(struct pipe_context *, void *);
+   void   (*delete_tes_state)(struct pipe_context *, void *);
+
    void * (*create_vertex_elements_state)(struct pipe_context *,
                                           unsigned num_elements,
                                           const struct pipe_vertex_element *);
-- 
1.8.5.5



More information about the mesa-dev mailing list