gallium: remove const qualifier from pipe_buffer argument in set_constant_buffer
authorRoland Scheidegger <sroland@vmware.com>
Mon, 11 Jan 2010 15:30:48 +0000 (16:30 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 11 Jan 2010 15:30:48 +0000 (16:30 +0100)
20 files changed:
src/gallium/drivers/cell/ppu/cell_state_shader.c
src/gallium/drivers/failover/fo_context.h
src/gallium/drivers/failover/fo_state.c
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i965/brw_pipe_shader.c
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/nv04/nv04_state.c
src/gallium/drivers/nv10/nv10_state.c
src/gallium/drivers/nv20/nv20_state.c
src/gallium/drivers/nv30/nv30_state.c
src/gallium/drivers/nv40/nv40_state.c
src/gallium/drivers/nv50/nv50_state.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/softpipe/sp_state.h
src/gallium/drivers/softpipe/sp_state_fs.c
src/gallium/drivers/svga/svga_pipe_constants.c
src/gallium/drivers/trace/tr_context.c
src/gallium/include/pipe/p_context.h

index cf5d681499ec08b0b0e51bd9b1b16dd87717caf9..1b09cf7f7d75f740279f53a54fe8156ea95e8578 100644 (file)
@@ -183,7 +183,7 @@ cell_delete_vs_state(struct pipe_context *pipe, void *vs)
 static void
 cell_set_constant_buffer(struct pipe_context *pipe,
                          uint shader, uint index,
-                         const struct pipe_buffer *buf)
+                         struct pipe_buffer *buf)
 {
    struct cell_context *cell = cell_context(pipe);
 
index c8be885457d8f06da6f487c95a56517b4cf13933..191a44c3dfc7521ef085d04641a6cb9cc1bb5494 100644 (file)
@@ -125,7 +125,7 @@ failover_context( struct pipe_context *pipe )
 void
 failover_set_constant_buffer(struct pipe_context *pipe,
                              uint shader, uint index,
-                             const struct pipe_buffer *buf);
+                             struct pipe_buffer *buf);
 
 
 #endif /* FO_CONTEXT_H */
index 55ccab6e9806fe9738e7ad066d4424a46182745c..d6ec4d13136225508d123103d5ef4d982a536aeb 100644 (file)
@@ -495,7 +495,7 @@ failover_set_vertex_elements(struct pipe_context *pipe,
 void
 failover_set_constant_buffer(struct pipe_context *pipe,
                              uint shader, uint index,
-                             const struct pipe_buffer *buf)
+                             struct pipe_buffer *buf)
 {
    struct failover_context *failover = failover_context(pipe);
 
index 4d48b5a0be2abaf79ae1d72fb63023a9efc66b86..f7ebfadd593b02a89e0549f0682742529dbce110 100644 (file)
@@ -517,7 +517,7 @@ static void i915_delete_vs_state(struct pipe_context *pipe, void *shader)
 
 static void i915_set_constant_buffer(struct pipe_context *pipe,
                                      uint shader, uint index,
-                                     const struct pipe_buffer *buf)
+                                     struct pipe_buffer *buf)
 {
    struct i915_context *i915 = i915_context(pipe);
    struct pipe_screen *screen = pipe->screen;
index ede6b347a50e472610f82e415c44f44f8d1ae89a..6c376e5e5d30d7be5ccf947bdad133a46d861126 100644 (file)
@@ -255,7 +255,7 @@ static void brw_delete_vs_state( struct pipe_context *pipe, void *prog )
 
 static void brw_set_constant_buffer(struct pipe_context *pipe,
                                      uint shader, uint index,
-                                     const struct pipe_buffer *buf)
+                                     struct pipe_buffer *buf)
 {
    struct brw_context *brw = brw_context(pipe);
 
index fb4d91a114109c62a46f6f6f363771869cd90639..b975182e7bd139db6c31bf87f80622b8b79f8a93 100644 (file)
@@ -404,7 +404,7 @@ static void
 identity_set_constant_buffer(struct pipe_context *_pipe,
                              uint shader,
                              uint index,
-                             const struct pipe_buffer *_buffer)
+                             struct pipe_buffer *_buffer)
 {
    struct identity_context *id_pipe = identity_context(_pipe);
    struct pipe_context *pipe = id_pipe->pipe;
index 131e3621e94e4d31445dbb0ff18b3e4a75915cf8..8e0c773a634a47ae1a47b75b65fd2218e3d9571b 100644 (file)
@@ -155,7 +155,7 @@ void llvmpipe_set_clip_state( struct pipe_context *,
 
 void llvmpipe_set_constant_buffer(struct pipe_context *,
                                   uint shader, uint index,
-                                  const struct pipe_buffer *buf);
+                                  struct pipe_buffer *buf);
 
 void *llvmpipe_create_fs_state(struct pipe_context *,
                                const struct pipe_shader_state *);
index 867e8ceea79b98a2dda09d6218d7ba68ea7e41c4..d129918fe2dd2bcfde3e52422a5d4d5aae7d40ac 100644 (file)
@@ -713,7 +713,7 @@ llvmpipe_delete_fs_state(struct pipe_context *pipe, void *fs)
 void
 llvmpipe_set_constant_buffer(struct pipe_context *pipe,
                              uint shader, uint index,
-                             const struct pipe_buffer *constants)
+                             struct pipe_buffer *constants)
 {
    struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
    unsigned size = constants ? constants->size : 0;
index ac69b29616213eb604fc801d66973d886fc47c5c..871034ad0b9275e858cdfad5b8fde91b9ad5e8f2 100644 (file)
@@ -332,7 +332,7 @@ nv04_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv04_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_buffer *buf )
+                        struct pipe_buffer *buf )
 {
        struct nv04_context *nv04 = nv04_context(pipe);
        struct pipe_screen *pscreen = pipe->screen;
index 150ab5029c8fc04addbe46f03e0718cfd35d49ca..ad7def53b12c3b99421ce46406e5f58ce6f7bb08 100644 (file)
@@ -458,7 +458,7 @@ nv10_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv10_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_buffer *buf )
+                        struct pipe_buffer *buf )
 {
        struct nv10_context *nv10 = nv10_context(pipe);
        struct pipe_screen *pscreen = pipe->screen;
index d7893b4f0f2c97ed14bd069f49eddd65e1fa27aa..45697a60efda018c111c4250016d411423e9a021 100644 (file)
@@ -451,7 +451,7 @@ nv20_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv20_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_buffer *buf )
+                        struct pipe_buffer *buf )
 {
        struct nv20_context *nv20 = nv20_context(pipe);
        struct pipe_screen *pscreen = pipe->screen;
index dfac46e23fbfb28dfce27ad1fd92c21fc91ba194..268d3a8ab85a9b45bc6098474ddd4dbcbf963547 100644 (file)
@@ -590,7 +590,7 @@ nv30_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv30_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_buffer *buf )
+                        struct pipe_buffer *buf )
 {
        struct nv30_context *nv30 = nv30_context(pipe);
 
index 81ccbb5ea594deb2f0acea44b440dc9d41757032..f6e5dee8145932249c824380adace8138ea7062b 100644 (file)
@@ -605,7 +605,7 @@ nv40_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv40_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_buffer *buf )
+                        struct pipe_buffer *buf )
 {
        struct nv40_context *nv40 = nv40_context(pipe);
 
index f462558aecd9a3b11cac21010251cbac47313b09..d609b4cbc6fcfc5765e0b4b8cf3bb732fd16a9cc 100644 (file)
@@ -588,7 +588,7 @@ nv50_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv50_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_buffer *buf )
+                        struct pipe_buffer *buf )
 {
        struct nv50_context *nv50 = nv50_context(pipe);
 
index b627895d4c4e195c038213e67744489ac9bbf48a..541b0abc9c5764dbf8d1980d60d8c05baa07191d 100644 (file)
@@ -804,7 +804,7 @@ static void r300_delete_vs_state(struct pipe_context* pipe, void* shader)
 
 static void r300_set_constant_buffer(struct pipe_context *pipe,
                                      uint shader, uint index,
-                                     const struct pipe_buffer *buf)
+                                     struct pipe_buffer *buf)
 {
     struct r300_context* r300 = r300_context(pipe);
     void *mapped;
index 1169520b445f0fcdad93843fe9811f6d5aec3eb8..c41e718488057f84f0818d02bc71d857b56cacad 100644 (file)
@@ -133,7 +133,7 @@ void softpipe_set_clip_state( struct pipe_context *,
 
 void softpipe_set_constant_buffer(struct pipe_context *,
                                   uint shader, uint index,
-                                  const struct pipe_buffer *buf);
+                                  struct pipe_buffer *buf);
 
 void *softpipe_create_fs_state(struct pipe_context *,
                                const struct pipe_shader_state *);
index fa85946c6a8f849dafbf93c4c5a7860f40eafc4a..eba0563c62c2dac2ae3056268c5d3df7ba4bf5f6 100644 (file)
@@ -152,7 +152,7 @@ softpipe_delete_vs_state(struct pipe_context *pipe, void *vs)
 void
 softpipe_set_constant_buffer(struct pipe_context *pipe,
                              uint shader, uint index,
-                             const struct pipe_buffer *buf)
+                             struct pipe_buffer *buf)
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
 
index ea0f833cea8fe387f77d1df4e958d88970f908b0..ca2c7c49d72946d22a80668df7a8f62174f3c81d 100644 (file)
@@ -49,7 +49,7 @@ struct svga_constbuf
 
 static void svga_set_constant_buffer(struct pipe_context *pipe,
                                      uint shader, uint index,
-                                     const struct pipe_buffer *buf)
+                                     struct pipe_buffer *buf)
 {
    struct svga_context *svga = svga_context(pipe);
 
index 11044d684556eba494dc8f3506a60900c6ff0a65..8008b596c379c7344d4ac06062bc3a9658d67769 100644 (file)
@@ -825,7 +825,7 @@ trace_context_set_clip_state(struct pipe_context *_pipe,
 static INLINE void
 trace_context_set_constant_buffer(struct pipe_context *_pipe,
                                   uint shader, uint index,
-                                  const struct pipe_buffer *buffer)
+                                  struct pipe_buffer *buffer)
 {
    struct trace_context *tr_ctx = trace_context(_pipe);
    struct pipe_context *pipe = tr_ctx->pipe;
index 509d8e534bb5df11c6d92d9cba8bf1214d5930f4..9d19ec2f7fe029217fa66c306c9c434799bb0eb7 100644 (file)
@@ -156,7 +156,7 @@ struct pipe_context {
 
    void (*set_constant_buffer)( struct pipe_context *,
                                 uint shader, uint index,
-                                const struct pipe_buffer *buf );
+                                struct pipe_buffer *buf );
 
    void (*set_framebuffer_state)( struct pipe_context *,
                                   const struct pipe_framebuffer_state * );