diff options
author | José Fonseca <[email protected]> | 2011-11-02 10:32:20 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-11-02 11:18:35 +0000 |
commit | e8f646fa7e9cf6f6793864384128157735aa03b3 (patch) | |
tree | b3b6964b8f6631a6eec8e24314273b1956013c76 /src/gallium/drivers/svga/svga_state_framebuffer.c | |
parent | 666c70ce8eb7c8a21536f03be3a68a3c11997e09 (diff) |
svga: Update state prototypes to return pipe_error.
Fixes a bunch of prototype mismatch warnings..
Diffstat (limited to 'src/gallium/drivers/svga/svga_state_framebuffer.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_framebuffer.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/gallium/drivers/svga/svga_state_framebuffer.c b/src/gallium/drivers/svga/svga_state_framebuffer.c index 93f8f6a951d..8c0dddf7ae7 100644 --- a/src/gallium/drivers/svga/svga_state_framebuffer.c +++ b/src/gallium/drivers/svga/svga_state_framebuffer.c @@ -38,8 +38,9 @@ */ -static int emit_framebuffer( struct svga_context *svga, - unsigned dirty ) +static enum pipe_error +emit_framebuffer( struct svga_context *svga, + unsigned dirty ) { const struct pipe_framebuffer_state *curr = &svga->curr.framebuffer; struct pipe_framebuffer_state *hw = &svga->state.hw_clear.framebuffer; @@ -160,8 +161,9 @@ struct svga_tracked_state svga_hw_framebuffer = /*********************************************************************** */ -static int emit_viewport( struct svga_context *svga, - unsigned dirty ) +static enum pipe_error +emit_viewport( struct svga_context *svga, + unsigned dirty ) { const struct pipe_viewport_state *viewport = &svga->curr.viewport; struct svga_prescale prescale; @@ -438,8 +440,9 @@ struct svga_tracked_state svga_hw_viewport = /*********************************************************************** * Scissor state */ -static int emit_scissor_rect( struct svga_context *svga, - unsigned dirty ) +static enum pipe_error +emit_scissor_rect( struct svga_context *svga, + unsigned dirty ) { const struct pipe_scissor_state *scissor = &svga->curr.scissor; SVGA3dRect rect; @@ -465,8 +468,9 @@ struct svga_tracked_state svga_hw_scissor = * Userclip state */ -static int emit_clip_planes( struct svga_context *svga, - unsigned dirty ) +static enum pipe_error +emit_clip_planes( struct svga_context *svga, + unsigned dirty ) { unsigned i; enum pipe_error ret; |