summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-01-12 00:11:06 +0100
committerSamuel Pitoiset <[email protected]>2016-01-12 00:19:34 +0100
commit3029d60de7244ed8c460ad8ee2408d27ed494a6b (patch)
treeb83b9cf8e323b3520520eaaab8dd79394979018d /src/gallium
parent5318bd351eaee182fd2ecc98f94a3b2a72ae64e8 (diff)
nvc0: remove useless goto in nvc0_launch_grid()
Trivial. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_compute.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
index 2e7c790e9ee..9d4606fa2ec 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
@@ -195,8 +195,10 @@ nvc0_launch_grid(struct pipe_context *pipe,
int ret;
ret = !nvc0_compute_state_validate(nvc0);
- if (ret)
- goto out;
+ if (ret) {
+ NOUVEAU_ERR("Failed to launch grid !\n");
+ return;
+ }
nvc0_compute_upload_input(nvc0, input);
@@ -253,8 +255,4 @@ nvc0_launch_grid(struct pipe_context *pipe,
}
memset(nvc0->state.uniform_buffer_bound, 0,
sizeof(nvc0->state.uniform_buffer_bound));
-
-out:
- if (ret)
- NOUVEAU_ERR("Failed to launch grid !\n");
}