From 92cbfded6a3000e19385191bcf30f57e2eb933b6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 26 Aug 2013 15:49:16 -0600 Subject: [PATCH] svga: replace 0 with PIPE_OK in a few places --- src/gallium/drivers/svga/svga_state_need_swtnl.c | 2 +- src/gallium/drivers/svga/svga_state_tss.c | 2 +- src/gallium/drivers/svga/svga_swtnl_state.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/svga/svga_state_need_swtnl.c b/src/gallium/drivers/svga/svga_state_need_swtnl.c index 38ed77cfff0..c0bfd2c14d0 100644 --- a/src/gallium/drivers/svga/svga_state_need_swtnl.c +++ b/src/gallium/drivers/svga/svga_state_need_swtnl.c @@ -74,7 +74,7 @@ update_need_swvfetch(struct svga_context *svga, unsigned dirty) if (!svga->curr.velems) { /* No vertex elements bound. */ - return 0; + return PIPE_OK; } for (i = 0; i < svga->curr.velems->count; i++) { diff --git a/src/gallium/drivers/svga/svga_state_tss.c b/src/gallium/drivers/svga/svga_state_tss.c index 861a0dff03b..137e2086c0c 100644 --- a/src/gallium/drivers/svga/svga_state_tss.c +++ b/src/gallium/drivers/svga/svga_state_tss.c @@ -164,7 +164,7 @@ update_tss_binding(struct svga_context *svga, svga->rebind.texture_samplers = FALSE; - return 0; + return PIPE_OK; fail: return PIPE_ERROR_OUT_OF_MEMORY; diff --git a/src/gallium/drivers/svga/svga_swtnl_state.c b/src/gallium/drivers/svga/svga_swtnl_state.c index d60af3fb834..d66f1a1515a 100644 --- a/src/gallium/drivers/svga/svga_swtnl_state.c +++ b/src/gallium/drivers/svga/svga_swtnl_state.c @@ -125,7 +125,7 @@ update_swtnl_draw( struct svga_context *svga, draw_set_mrd(svga->swtnl.draw, svga->curr.depthscale); - return 0; + return PIPE_OK; } @@ -223,12 +223,12 @@ svga_swtnl_update_vdecl( struct svga_context *svga ) vdecl[i].array.stride = offset; if (memcmp(svga_render->vdecl, vdecl, sizeof(vdecl)) == 0) - return 0; + return PIPE_OK; memcpy(svga_render->vdecl, vdecl, sizeof(vdecl)); svga->swtnl.new_vdecl = TRUE; - return 0; + return PIPE_OK; } -- 2.30.2