aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-08-26 15:49:16 -0600
committerBrian Paul <[email protected]>2013-08-26 15:49:16 -0600
commit92cbfded6a3000e19385191bcf30f57e2eb933b6 (patch)
treeafcec02b34f6df8ec5375738f4a92cdab6605cbb /src/gallium/drivers
parent5e7ac28ebfd309782185d44813f0f86659a680cf (diff)
svga: replace 0 with PIPE_OK in a few places
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_state_need_swtnl.c2
-rw-r--r--src/gallium/drivers/svga/svga_state_tss.c2
-rw-r--r--src/gallium/drivers/svga/svga_swtnl_state.c6
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;
}