diff options
author | Brian Paul <[email protected]> | 2018-02-15 09:12:03 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-02-15 09:49:06 -0700 |
commit | 64a1223a80560fae456dd62ea92936ee204aee27 (patch) | |
tree | 8e02be4a9ce0c7fe697e2f8ff736f20f09f31863 /src/gallium/drivers/svga/svga_state_gs.c | |
parent | fa901768a4442e2376d03a57603bf2ca4bd1f490 (diff) |
svga: replace gotos with else clauses
Simple clean-up.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_state_gs.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_gs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_state_gs.c b/src/gallium/drivers/svga/svga_state_gs.c index 19f0887d2ba..38d85f0325c 100644 --- a/src/gallium/drivers/svga/svga_state_gs.c +++ b/src/gallium/drivers/svga/svga_state_gs.c @@ -153,13 +153,12 @@ svga_reemit_gs_bindings(struct svga_context *svga) if (!svga_need_to_rebind_resources(svga)) { ret = svga->swc->resource_rebind(svga->swc, NULL, gbshader, SVGA_RELOC_READ); - goto out; + } + else { + ret = SVGA3D_vgpu10_SetShader(svga->swc, SVGA3D_SHADERTYPE_GS, + gbshader, shaderId); } - ret = SVGA3D_vgpu10_SetShader(svga->swc, SVGA3D_SHADERTYPE_GS, - gbshader, shaderId); - - out: if (ret != PIPE_OK) return ret; |