mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
nvc0: remove useless goto in nvc0_launch_grid()
Trivial. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
5318bd351e
commit
3029d60de7
1 changed files with 4 additions and 6 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue