Browse Source

svga: fix dma.pending > 0 test

The dma.pending field is boolean, so testing for > 0 isn't right.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
tags/19.1-branchpoint
Brian Paul 6 years ago
parent
commit
cb52d4482d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/svga/svga_resource_buffer.c

+ 1
- 1
src/gallium/drivers/svga/svga_resource_buffer.c View File

@@ -117,7 +117,7 @@ svga_buffer_transfer_map(struct pipe_context *pipe,
(void) svga_buffer_handle(svga, resource, sbuf->bind_flags);
}

if (sbuf->dma.pending > 0) {
if (sbuf->dma.pending) {
svga_buffer_upload_flush(svga, sbuf);
svga_context_finish(svga);
}

Loading…
Cancel
Save