Mesa (master): gallium: use const in set_tess_state

Marek Olšák mareko at kemper.freedesktop.org
Tue May 26 10:58:09 UTC 2015


Module: Mesa
Branch: master
Commit: 92c31bb0dd8149d3e5db48b8dec62b242be80d28
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=92c31bb0dd8149d3e5db48b8dec62b242be80d28

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon May 18 12:34:44 2015 +0200

gallium: use const in set_tess_state

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

---

 src/gallium/drivers/trace/tr_context.c |    4 ++--
 src/gallium/include/pipe/p_context.h   |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index a1aeebd..0013c96 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -1511,8 +1511,8 @@ static void trace_context_memory_barrier(struct pipe_context *_context,
 
 
 static void trace_context_set_tess_state(struct pipe_context *_context,
-                                         float default_outer_level[4],
-                                         float default_inner_level[2])
+                                         const float default_outer_level[4],
+                                         const float default_inner_level[2])
 {
    struct trace_context *tr_context = trace_context(_context);
    struct pipe_context *context = tr_context->pipe;
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index c25bfa6..c2eedf8 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -232,8 +232,8 @@ struct pipe_context {
                              struct pipe_sampler_view **);
 
    void (*set_tess_state)(struct pipe_context *,
-                          float default_outer_level[4],
-                          float default_inner_level[2]);
+                          const float default_outer_level[4],
+                          const float default_inner_level[2]);
 
    /**
     * Bind an array of shader resources that will be used by the




More information about the mesa-commit mailing list