diff options
author | Brian Paul <brianp@vmware.com> | 2010-02-02 18:54:12 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-02 18:54:53 -0700 |
commit | 256f7f5ab2123bae9549e4f572276e200dc1ae76 (patch) | |
tree | 66396624a576ac4d2afe81cdfab6f8d630a9c237 /src/gallium/auxiliary/draw | |
parent | d6e55520e479d8a2fb42eca0b6bd177bd32adf06 (diff) |
draw: add const qualifiers, fix return types
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/draw/draw_private.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 15ba788f00..d5ddc4a6a9 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -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; diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h index 6a7190e975..69466d8749 100644 --- a/src/gallium/auxiliary/draw/draw_private.h +++ b/src/gallium/auxiliary/draw/draw_private.h @@ -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: |