Mesa (master): gallium: add set_tess_state to configure default tessellation parameters
Marek Olšák
mareko at kemper.freedesktop.org
Sat May 16 13:17:59 UTC 2015
Module: Mesa
Branch: master
Commit: 6b262061203a6be8fe76402aa86e838254f937b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b262061203a6be8fe76402aa86e838254f937b8
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Jul 20 11:36:49 2014 -0400
gallium: add set_tess_state to configure default tessellation parameters
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/docs/source/context.rst | 5 +++++
src/gallium/include/pipe/p_context.h | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 5861f46..0908ee7 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -79,6 +79,11 @@ objects. They all follow simple, one-method binding calls, e.g.
should be the same as the number of set viewports and can be up to
PIPE_MAX_VIEWPORTS.
* ``set_viewport_states``
+* ``set_tess_state`` configures the default tessellation parameters:
+ * ``default_outer_level`` is the default value for the outer tessellation
+ levels. This corresponds to GL's ``PATCH_DEFAULT_OUTER_LEVEL``.
+ * ``default_inner_level`` is the default value for the inner tessellation
+ levels. This corresponds to GL's ``PATCH_DEFAULT_INNER_LEVEL``.
Sampler Views
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index 67deb04..c25bfa6 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -231,6 +231,10 @@ struct pipe_context {
unsigned start_slot, unsigned num_views,
struct pipe_sampler_view **);
+ void (*set_tess_state)(struct pipe_context *,
+ float default_outer_level[4],
+ float default_inner_level[2]);
+
/**
* Bind an array of shader resources that will be used by the
* graphics pipeline. Any resources that were previously bound to
More information about the mesa-commit
mailing list