svga: Update state prototypes to return pipe_error.

Fixes a bunch of prototype mismatch warnings..
This commit is contained in:
José Fonseca
2011-11-02 10:32:20 +00:00
parent 666c70ce8e
commit e8f646fa7e
6 changed files with 36 additions and 25 deletions
@@ -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;
@@ -71,8 +71,9 @@ svga_translate_vertex_format(enum pipe_format format)
}
static int update_need_swvfetch( struct svga_context *svga,
unsigned dirty )
static enum pipe_error
update_need_swvfetch( struct svga_context *svga,
unsigned dirty )
{
unsigned i;
boolean need_swvfetch = FALSE;
@@ -110,8 +111,9 @@ struct svga_tracked_state svga_update_need_swvfetch =
/***********************************************************************
*/
static int update_need_pipeline( struct svga_context *svga,
unsigned dirty )
static enum pipe_error
update_need_pipeline( struct svga_context *svga,
unsigned dirty )
{
boolean need_pipeline = FALSE;
@@ -165,8 +167,9 @@ struct svga_tracked_state svga_update_need_pipeline =
/***********************************************************************
*/
static int update_need_swtnl( struct svga_context *svga,
unsigned dirty )
static enum pipe_error
update_need_swtnl( struct svga_context *svga,
unsigned dirty )
{
boolean need_swtnl;
+3 -3
View File
@@ -63,7 +63,7 @@ struct bind_queue {
};
static int
static enum pipe_error
update_tss_binding(struct svga_context *svga,
unsigned dirty )
{
@@ -284,7 +284,7 @@ svga_queue_tss( struct ts_queue *q,
}
static int
static enum pipe_error
update_tss(struct svga_context *svga,
unsigned dirty )
{
@@ -336,7 +336,7 @@ update_tss(struct svga_context *svga,
SVGA_FIFOCommitAll( svga->swc );
}
return 0;
return PIPE_OK;
fail:
/* XXX: need to poison cached hardware state on failure to ensure
+3 -2
View File
@@ -175,8 +175,9 @@ struct svga_tracked_state svga_hw_vs =
/***********************************************************************
*/
static int update_zero_stride( struct svga_context *svga,
unsigned dirty )
static enum pipe_error
update_zero_stride( struct svga_context *svga,
unsigned dirty )
{
unsigned i;
@@ -88,7 +88,7 @@ struct vbuf_render *
svga_vbuf_render_create( struct svga_context *svga );
int
enum pipe_error
svga_swtnl_update_vdecl( struct svga_context *svga );
+8 -5
View File
@@ -83,8 +83,9 @@ static void set_draw_viewport( struct svga_context *svga )
draw_set_viewport_state(svga->swtnl.draw, &vp);
}
static int update_swtnl_draw( struct svga_context *svga,
unsigned dirty )
static enum pipe_error
update_swtnl_draw( struct svga_context *svga,
unsigned dirty )
{
draw_flush( svga->swtnl.draw );
@@ -139,7 +140,8 @@ struct svga_tracked_state svga_update_swtnl_draw =
};
int svga_swtnl_update_vdecl( struct svga_context *svga )
enum pipe_error
svga_swtnl_update_vdecl( struct svga_context *svga )
{
struct svga_vbuf_render *svga_render = svga_vbuf_render(svga->swtnl.backend);
struct draw_context *draw = svga->swtnl.draw;
@@ -221,8 +223,9 @@ int svga_swtnl_update_vdecl( struct svga_context *svga )
}
static int update_swtnl_vdecl( struct svga_context *svga,
unsigned dirty )
static enum pipe_error
update_swtnl_vdecl( struct svga_context *svga,
unsigned dirty )
{
return svga_swtnl_update_vdecl( svga );
}