draw: add const qualifiers, fix return types
authorBrian Paul <brianp@vmware.com>
Wed, 3 Feb 2010 01:54:12 +0000 (18:54 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Feb 2010 01:54:53 +0000 (18:54 -0700)
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_private.h

index 15ba788f00d09271724006afd6609bb05ba1e0de..d5ddc4a6a922c25cf1bb008f6284c601e9de4522 100644 (file)
@@ -465,7 +465,8 @@ void draw_do_flush( struct draw_context *draw, unsigned flags )
  * outputs from the vertex shader.
  * \sa draw_num_shader_outputs
  */
-int draw_current_shader_outputs(struct draw_context *draw)
+uint
+draw_current_shader_outputs(const struct draw_context *draw)
 {
    if (draw->gs.geometry_shader)
       return draw->gs.num_gs_outputs;
@@ -477,7 +478,8 @@ int draw_current_shader_outputs(struct draw_context *draw)
  * Return the index of the shader output which will contain the
  * vertex position.
  */
-int draw_current_shader_position_output(struct draw_context *draw)
+uint
+draw_current_shader_position_output(const struct draw_context *draw)
 {
    if (draw->gs.geometry_shader)
       return draw->gs.position_output;
index 6a7190e9750b0985e6b02a14677223d106a99b76..69466d8749de7bbbdc07589fb1f754931f7047ba 100644 (file)
@@ -280,8 +280,8 @@ void draw_gs_destroy( struct draw_context *draw );
 /*******************************************************************************
  * Common shading code:
  */
-int draw_current_shader_outputs(struct draw_context *draw);
-int draw_current_shader_position_output(struct draw_context *draw);
+uint draw_current_shader_outputs(const struct draw_context *draw);
+uint draw_current_shader_position_output(const struct draw_context *draw);
 
 /*******************************************************************************
  * Vertex processing (was passthrough) code: