From: Brian Paul Date: Thu, 3 Sep 2015 17:23:36 +0000 (-0600) Subject: svga: update call to u_upload_alloc() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70dbdca15fa173302481111cdfb86881dd13dc38;p=mesa.git svga: update call to u_upload_alloc() u_upload_alloc() no longer returns a return value. Trivial. --- diff --git a/src/gallium/drivers/svga/svga_state_constants.c b/src/gallium/drivers/svga/svga_state_constants.c index e0bbe013c02..b6d6de0dca3 100644 --- a/src/gallium/drivers/svga/svga_state_constants.c +++ b/src/gallium/drivers/svga/svga_state_constants.c @@ -613,9 +613,9 @@ emit_constbuf_vgpu10(struct svga_context *svga, unsigned shader) */ new_buf_size = align(new_buf_size, 16); - ret = u_upload_alloc(svga->const0_upload, 0, new_buf_size, &offset, - &dst_buffer, &dst_map); - if (ret != PIPE_OK || !dst_map) { + u_upload_alloc(svga->const0_upload, 0, new_buf_size, &offset, + &dst_buffer, &dst_map); + if (!dst_map) { if (src_map) pipe_buffer_unmap(&svga->pipe, src_transfer); return PIPE_ERROR_OUT_OF_MEMORY;