gallium: added const qualifiers on some draw funcs
authorBrian <brian.paul@tungstengraphics.com>
Mon, 25 Aug 2008 17:30:57 +0000 (11:30 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 25 Aug 2008 17:30:57 +0000 (11:30 -0600)
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h

index 1c26cb31a39eca69cd8bba024a541b3745db36f3..36751c26211be225d57be79ebd2d79d2d1fe4bef 100644 (file)
@@ -288,7 +288,7 @@ draw_enable_point_sprites(struct draw_context *draw, boolean enable)
  * work for the drivers.
  */
 int
-draw_find_vs_output(struct draw_context *draw,
+draw_find_vs_output(const struct draw_context *draw,
                     uint semantic_name, uint semantic_index)
 {
    const struct draw_vertex_shader *vs = draw->vs.vertex_shader;
@@ -314,7 +314,7 @@ draw_find_vs_output(struct draw_context *draw,
  * Return number of vertex shader outputs.
  */
 uint
-draw_num_vs_outputs(struct draw_context *draw)
+draw_num_vs_outputs(const struct draw_context *draw)
 {
    uint count = draw->vs.vertex_shader->info.num_outputs;
    if (draw->extra_vp_outputs.slot > 0)
index b8f2bfa3327b96d9220b6f2b9ce4e61c7234bb06..0ab3681b64722250b7b45357c551329b0a011963 100644 (file)
@@ -84,11 +84,11 @@ draw_install_pstipple_stage(struct draw_context *draw, struct pipe_context *pipe
 
 
 int
-draw_find_vs_output(struct draw_context *draw,
+draw_find_vs_output(const struct draw_context *draw,
                     uint semantic_name, uint semantic_index);
 
 uint
-draw_num_vs_outputs(struct draw_context *draw);
+draw_num_vs_outputs(const struct draw_context *draw);