projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efea7c3
)
svga: update call to u_upload_alloc()
author
Brian Paul
<brianp@vmware.com>
Thu, 3 Sep 2015 17:23:36 +0000
(11:23 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 3 Sep 2015 17:24:24 +0000
(11:24 -0600)
u_upload_alloc() no longer returns a return value.
Trivial.
src/gallium/drivers/svga/svga_state_constants.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_state_constants.c
b/src/gallium/drivers/svga/svga_state_constants.c
index e0bbe013c02ac062a4f9af62612aa23fcbfe62cf..b6d6de0dca329fd486244d4cb3c1dcd42872c9e5 100644
(file)
--- 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;