diff options
author | Brian Paul <[email protected]> | 2015-09-03 11:23:36 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-09-03 11:24:24 -0600 |
commit | 70dbdca15fa173302481111cdfb86881dd13dc38 (patch) | |
tree | 6310e47571432822e774c18173829e2f6b4de7e8 /src/gallium/drivers/svga | |
parent | efea7c3a3f91219db6e2fa3588388b6be4ecfa40 (diff) |
svga: update call to u_upload_alloc()
u_upload_alloc() no longer returns a return value.
Trivial.
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_constants.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |