gallium: use const in set_tess_state
authorMarek Olšák <marek.olsak@amd.com>
Mon, 18 May 2015 10:34:44 +0000 (12:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 26 May 2015 09:46:28 +0000 (11:46 +0200)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/trace/tr_context.c
src/gallium/include/pipe/p_context.h

index a1aeebdf65b7f45174200d6a703795feccee1edb..0013c963e7ac3826ce3bc6b6ddde7d7e6fa872ff 100644 (file)
@@ -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;
index c25bfa638c1c358f9deec441f1f2a6a9c9f9d343..c2eedf8e7c72c6604337c4da5007964beb51d049 100644 (file)
@@ -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