cell: added const qualifier
authorBrian <brian.paul@tungstengraphics.com>
Mon, 31 Mar 2008 22:54:31 +0000 (16:54 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 31 Mar 2008 22:54:31 +0000 (16:54 -0600)
src/gallium/drivers/cell/ppu/cell_state_per_fragment.c
src/gallium/drivers/cell/ppu/cell_state_per_fragment.h

index 0a79cccc83bd6d95b026e15cd874cafc83eb7950..53ae3aa50e746c8c0b9cd208acd94ef99e5b14f5 100644 (file)
@@ -1167,7 +1167,8 @@ int PC_OFFSET(const struct spe_function *f, const void *d)
  * Only two framebuffer formats are supported at this time.
  */
 void
-cell_generate_logic_op(struct spe_function *f, struct pipe_blend_state *blend,
+cell_generate_logic_op(struct spe_function *f,
+                       const struct pipe_blend_state *blend,
                        struct pipe_surface *surf)
 {
    const unsigned logic_op = (blend->logicop_enable)
index ab4de96c69ddee11d665025d09b3b8df0ff9cd02..a8267a51331c13dbce8e53517d29368ddac7101f 100644 (file)
@@ -32,7 +32,8 @@ extern void
 cell_generate_alpha_blend(struct cell_blend_state *cb);
 
 extern void
-cell_generate_logic_op(struct spe_function *f, struct pipe_blend_state *blend,
-    struct pipe_surface *surf);
+cell_generate_logic_op(struct spe_function *f,
+                       const struct pipe_blend_state *blend,
+                       struct pipe_surface *surf);
 
 #endif /* CELL_STATE_PER_FRAGMENT_H */