summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-18 17:34:55 +0100
committerKeith Whitwell <[email protected]>2008-04-18 18:32:37 +0100
commitf631bebe1a05c8af863e514546763433343b7c53 (patch)
treeec80a99fdc4b23435451876e5574bba45aff8212 /src
parent59ba8ea00b0d80c48678f6e22d33ca638e19be75 (diff)
softpipe: fix const-related compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_fs_sse.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/softpipe/sp_fs_sse.c b/src/gallium/drivers/softpipe/sp_fs_sse.c
index 5ef02a71426..f857d26143e 100644
--- a/src/gallium/drivers/softpipe/sp_fs_sse.c
+++ b/src/gallium/drivers/softpipe/sp_fs_sse.c
@@ -49,7 +49,7 @@
typedef void (XSTDCALL *codegen_function)(
const struct tgsi_exec_vector *input,
struct tgsi_exec_vector *output,
- float (*constant)[4],
+ const float (*constant)[4],
struct tgsi_exec_vector *temporary,
const struct tgsi_interp_coef *coef,
float (*immediates)[4]
@@ -67,9 +67,9 @@ struct sp_sse_fragment_shader {
static void
-fs_sse_prepare( struct sp_fragment_shader *base,
- struct tgsi_exec_machine *machine,
- struct tgsi_sampler *samplers )
+fs_sse_prepare( const struct sp_fragment_shader *base,
+ struct tgsi_exec_machine *machine,
+ struct tgsi_sampler *samplers )
{
}
@@ -80,9 +80,9 @@ fs_sse_prepare( struct sp_fragment_shader *base,
* TODO: process >1 quad at a time
*/
static unsigned
-fs_sse_run( struct sp_fragment_shader *base,
- struct tgsi_exec_machine *machine,
- struct quad_header *quad )
+fs_sse_run( const struct sp_fragment_shader *base,
+ struct tgsi_exec_machine *machine,
+ struct quad_header *quad )
{
struct sp_sse_fragment_shader *shader = (struct sp_sse_fragment_shader *) base;