projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1278507
)
gallium: remove const qualifier from pipe_buffer argument in set_constant_buffer
author
Roland Scheidegger
<sroland@vmware.com>
Mon, 11 Jan 2010 15:30:48 +0000
(16:30 +0100)
committer
Roland 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
patch
|
blob
|
history
src/gallium/drivers/failover/fo_context.h
patch
|
blob
|
history
src/gallium/drivers/failover/fo_state.c
patch
|
blob
|
history
src/gallium/drivers/i915/i915_state.c
patch
|
blob
|
history
src/gallium/drivers/i965/brw_pipe_shader.c
patch
|
blob
|
history
src/gallium/drivers/identity/id_context.c
patch
|
blob
|
history
src/gallium/drivers/llvmpipe/lp_state.h
patch
|
blob
|
history
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
src/gallium/drivers/nv04/nv04_state.c
patch
|
blob
|
history
src/gallium/drivers/nv10/nv10_state.c
patch
|
blob
|
history
src/gallium/drivers/nv20/nv20_state.c
patch
|
blob
|
history
src/gallium/drivers/nv30/nv30_state.c
patch
|
blob
|
history
src/gallium/drivers/nv40/nv40_state.c
patch
|
blob
|
history
src/gallium/drivers/nv50/nv50_state.c
patch
|
blob
|
history
src/gallium/drivers/r300/r300_state.c
patch
|
blob
|
history
src/gallium/drivers/softpipe/sp_state.h
patch
|
blob
|
history
src/gallium/drivers/softpipe/sp_state_fs.c
patch
|
blob
|
history
src/gallium/drivers/svga/svga_pipe_constants.c
patch
|
blob
|
history
src/gallium/drivers/trace/tr_context.c
patch
|
blob
|
history
src/gallium/include/pipe/p_context.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/cell/ppu/cell_state_shader.c
b/src/gallium/drivers/cell/ppu/cell_state_shader.c
index cf5d681499ec08b0b0e51bd9b1b16dd87717caf9..1b09cf7f7d75f740279f53a54fe8156ea95e8578 100644
(file)
--- a/
src/gallium/drivers/cell/ppu/cell_state_shader.c
+++ b/
src/gallium/drivers/cell/ppu/cell_state_shader.c
@@
-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,
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);
{
struct cell_context *cell = cell_context(pipe);
diff --git
a/src/gallium/drivers/failover/fo_context.h
b/src/gallium/drivers/failover/fo_context.h
index c8be885457d8f06da6f487c95a56517b4cf13933..191a44c3dfc7521ef085d04641a6cb9cc1bb5494 100644
(file)
--- a/
src/gallium/drivers/failover/fo_context.h
+++ b/
src/gallium/drivers/failover/fo_context.h
@@
-125,7
+125,7
@@
failover_context( struct pipe_context *pipe )
void
failover_set_constant_buffer(struct pipe_context *pipe,
uint shader, uint index,
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 */
#endif /* FO_CONTEXT_H */
diff --git
a/src/gallium/drivers/failover/fo_state.c
b/src/gallium/drivers/failover/fo_state.c
index 55ccab6e9806fe9738e7ad066d4424a46182745c..d6ec4d13136225508d123103d5ef4d982a536aeb 100644
(file)
--- a/
src/gallium/drivers/failover/fo_state.c
+++ b/
src/gallium/drivers/failover/fo_state.c
@@
-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,
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);
{
struct failover_context *failover = failover_context(pipe);
diff --git
a/src/gallium/drivers/i915/i915_state.c
b/src/gallium/drivers/i915/i915_state.c
index 4d48b5a0be2abaf79ae1d72fb63023a9efc66b86..f7ebfadd593b02a89e0549f0682742529dbce110 100644
(file)
--- a/
src/gallium/drivers/i915/i915_state.c
+++ b/
src/gallium/drivers/i915/i915_state.c
@@
-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,
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;
{
struct i915_context *i915 = i915_context(pipe);
struct pipe_screen *screen = pipe->screen;
diff --git
a/src/gallium/drivers/i965/brw_pipe_shader.c
b/src/gallium/drivers/i965/brw_pipe_shader.c
index ede6b347a50e472610f82e415c44f44f8d1ae89a..6c376e5e5d30d7be5ccf947bdad133a46d861126 100644
(file)
--- a/
src/gallium/drivers/i965/brw_pipe_shader.c
+++ b/
src/gallium/drivers/i965/brw_pipe_shader.c
@@
-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,
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);
{
struct brw_context *brw = brw_context(pipe);
diff --git
a/src/gallium/drivers/identity/id_context.c
b/src/gallium/drivers/identity/id_context.c
index fb4d91a114109c62a46f6f6f363771869cd90639..b975182e7bd139db6c31bf87f80622b8b79f8a93 100644
(file)
--- a/
src/gallium/drivers/identity/id_context.c
+++ b/
src/gallium/drivers/identity/id_context.c
@@
-404,7
+404,7
@@
static void
identity_set_constant_buffer(struct pipe_context *_pipe,
uint shader,
uint index,
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;
{
struct identity_context *id_pipe = identity_context(_pipe);
struct pipe_context *pipe = id_pipe->pipe;
diff --git
a/src/gallium/drivers/llvmpipe/lp_state.h
b/src/gallium/drivers/llvmpipe/lp_state.h
index 131e3621e94e4d31445dbb0ff18b3e4a75915cf8..8e0c773a634a47ae1a47b75b65fd2218e3d9571b 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_state.h
+++ b/
src/gallium/drivers/llvmpipe/lp_state.h
@@
-155,7
+155,7
@@
void llvmpipe_set_clip_state( struct pipe_context *,
void llvmpipe_set_constant_buffer(struct pipe_context *,
uint shader, uint index,
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 *);
void *llvmpipe_create_fs_state(struct pipe_context *,
const struct pipe_shader_state *);
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 867e8ceea79b98a2dda09d6218d7ba68ea7e41c4..d129918fe2dd2bcfde3e52422a5d4d5aae7d40ac 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/
src/gallium/drivers/llvmpipe/lp_state_fs.c
@@
-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,
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;
{
struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
unsigned size = constants ? constants->size : 0;
diff --git
a/src/gallium/drivers/nv04/nv04_state.c
b/src/gallium/drivers/nv04/nv04_state.c
index ac69b29616213eb604fc801d66973d886fc47c5c..871034ad0b9275e858cdfad5b8fde91b9ad5e8f2 100644
(file)
--- a/
src/gallium/drivers/nv04/nv04_state.c
+++ b/
src/gallium/drivers/nv04/nv04_state.c
@@
-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,
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;
{
struct nv04_context *nv04 = nv04_context(pipe);
struct pipe_screen *pscreen = pipe->screen;
diff --git
a/src/gallium/drivers/nv10/nv10_state.c
b/src/gallium/drivers/nv10/nv10_state.c
index 150ab5029c8fc04addbe46f03e0718cfd35d49ca..ad7def53b12c3b99421ce46406e5f58ce6f7bb08 100644
(file)
--- a/
src/gallium/drivers/nv10/nv10_state.c
+++ b/
src/gallium/drivers/nv10/nv10_state.c
@@
-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,
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;
{
struct nv10_context *nv10 = nv10_context(pipe);
struct pipe_screen *pscreen = pipe->screen;
diff --git
a/src/gallium/drivers/nv20/nv20_state.c
b/src/gallium/drivers/nv20/nv20_state.c
index d7893b4f0f2c97ed14bd069f49eddd65e1fa27aa..45697a60efda018c111c4250016d411423e9a021 100644
(file)
--- a/
src/gallium/drivers/nv20/nv20_state.c
+++ b/
src/gallium/drivers/nv20/nv20_state.c
@@
-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,
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;
{
struct nv20_context *nv20 = nv20_context(pipe);
struct pipe_screen *pscreen = pipe->screen;
diff --git
a/src/gallium/drivers/nv30/nv30_state.c
b/src/gallium/drivers/nv30/nv30_state.c
index dfac46e23fbfb28dfce27ad1fd92c21fc91ba194..268d3a8ab85a9b45bc6098474ddd4dbcbf963547 100644
(file)
--- a/
src/gallium/drivers/nv30/nv30_state.c
+++ b/
src/gallium/drivers/nv30/nv30_state.c
@@
-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,
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);
{
struct nv30_context *nv30 = nv30_context(pipe);
diff --git
a/src/gallium/drivers/nv40/nv40_state.c
b/src/gallium/drivers/nv40/nv40_state.c
index 81ccbb5ea594deb2f0acea44b440dc9d41757032..f6e5dee8145932249c824380adace8138ea7062b 100644
(file)
--- a/
src/gallium/drivers/nv40/nv40_state.c
+++ b/
src/gallium/drivers/nv40/nv40_state.c
@@
-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,
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);
{
struct nv40_context *nv40 = nv40_context(pipe);
diff --git
a/src/gallium/drivers/nv50/nv50_state.c
b/src/gallium/drivers/nv50/nv50_state.c
index f462558aecd9a3b11cac21010251cbac47313b09..d609b4cbc6fcfc5765e0b4b8cf3bb732fd16a9cc 100644
(file)
--- a/
src/gallium/drivers/nv50/nv50_state.c
+++ b/
src/gallium/drivers/nv50/nv50_state.c
@@
-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,
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);
{
struct nv50_context *nv50 = nv50_context(pipe);
diff --git
a/src/gallium/drivers/r300/r300_state.c
b/src/gallium/drivers/r300/r300_state.c
index b627895d4c4e195c038213e67744489ac9bbf48a..541b0abc9c5764dbf8d1980d60d8c05baa07191d 100644
(file)
--- a/
src/gallium/drivers/r300/r300_state.c
+++ b/
src/gallium/drivers/r300/r300_state.c
@@
-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,
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;
{
struct r300_context* r300 = r300_context(pipe);
void *mapped;
diff --git
a/src/gallium/drivers/softpipe/sp_state.h
b/src/gallium/drivers/softpipe/sp_state.h
index 1169520b445f0fcdad93843fe9811f6d5aec3eb8..c41e718488057f84f0818d02bc71d857b56cacad 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_state.h
+++ b/
src/gallium/drivers/softpipe/sp_state.h
@@
-133,7
+133,7
@@
void softpipe_set_clip_state( struct pipe_context *,
void softpipe_set_constant_buffer(struct pipe_context *,
uint shader, uint index,
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 *);
void *softpipe_create_fs_state(struct pipe_context *,
const struct pipe_shader_state *);
diff --git
a/src/gallium/drivers/softpipe/sp_state_fs.c
b/src/gallium/drivers/softpipe/sp_state_fs.c
index fa85946c6a8f849dafbf93c4c5a7860f40eafc4a..eba0563c62c2dac2ae3056268c5d3df7ba4bf5f6 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_state_fs.c
+++ b/
src/gallium/drivers/softpipe/sp_state_fs.c
@@
-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,
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);
{
struct softpipe_context *softpipe = softpipe_context(pipe);
diff --git
a/src/gallium/drivers/svga/svga_pipe_constants.c
b/src/gallium/drivers/svga/svga_pipe_constants.c
index ea0f833cea8fe387f77d1df4e958d88970f908b0..ca2c7c49d72946d22a80668df7a8f62174f3c81d 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_constants.c
+++ b/
src/gallium/drivers/svga/svga_pipe_constants.c
@@
-49,7
+49,7
@@
struct svga_constbuf
static void svga_set_constant_buffer(struct pipe_context *pipe,
uint shader, uint index,
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);
{
struct svga_context *svga = svga_context(pipe);
diff --git
a/src/gallium/drivers/trace/tr_context.c
b/src/gallium/drivers/trace/tr_context.c
index 11044d684556eba494dc8f3506a60900c6ff0a65..8008b596c379c7344d4ac06062bc3a9658d67769 100644
(file)
--- a/
src/gallium/drivers/trace/tr_context.c
+++ b/
src/gallium/drivers/trace/tr_context.c
@@
-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,
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;
{
struct trace_context *tr_ctx = trace_context(_pipe);
struct pipe_context *pipe = tr_ctx->pipe;
diff --git
a/src/gallium/include/pipe/p_context.h
b/src/gallium/include/pipe/p_context.h
index 509d8e534bb5df11c6d92d9cba8bf1214d5930f4..9d19ec2f7fe029217fa66c306c9c434799bb0eb7 100644
(file)
--- a/
src/gallium/include/pipe/p_context.h
+++ b/
src/gallium/include/pipe/p_context.h
@@
-156,7
+156,7
@@
struct pipe_context {
void (*set_constant_buffer)( struct pipe_context *,
uint shader, uint index,
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 * );
void (*set_framebuffer_state)( struct pipe_context *,
const struct pipe_framebuffer_state * );