Fixes a bunch of prototype mismatch warnings..
*/
-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;
/***********************************************************************
*/
-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;
/***********************************************************************
* 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;
* 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;
}
-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;
/***********************************************************************
*/
-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;
/***********************************************************************
*/
-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;
};
-static int
+static enum pipe_error
update_tss_binding(struct svga_context *svga,
unsigned dirty )
{
}
-static int
+static enum pipe_error
update_tss(struct svga_context *svga,
unsigned dirty )
{
SVGA_FIFOCommitAll( svga->swc );
}
- return 0;
+ return PIPE_OK;
fail:
/* XXX: need to poison cached hardware state on failure to ensure
/***********************************************************************
*/
-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;
svga_vbuf_render_create( struct svga_context *svga );
-int
+enum pipe_error
svga_swtnl_update_vdecl( 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 );
};
-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;
}
-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 );
}