diff options
author | Brian Paul <brianp@vmware.com> | 2016-06-22 17:24:12 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-06-23 13:02:28 -0600 |
commit | 5d0799831725e67a224ef3cbb4ead39e2cebc7e6 (patch) | |
tree | c659cb6393716c3937b7f494703a12fc04e35421 /src | |
parent | fe762128732df1fafef862a391b4d04ee0467c55 (diff) | |
download | external_mesa3d-5d0799831725e67a224ef3cbb4ead39e2cebc7e6.zip external_mesa3d-5d0799831725e67a224ef3cbb4ead39e2cebc7e6.tar.gz external_mesa3d-5d0799831725e67a224ef3cbb4ead39e2cebc7e6.tar.bz2 |
svga: update some comments in svga_buffer_handle()
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_buffer_upload.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c index 87d77c5..be4c694 100644 --- a/src/gallium/drivers/svga/svga_resource_buffer_upload.c +++ b/src/gallium/drivers/svga/svga_resource_buffer_upload.c @@ -786,19 +786,12 @@ svga_buffer_handle(struct svga_context *svga, if (sbuf->map.num_ranges) { if (!sbuf->dma.pending) { - /* - * No pending DMA upload yet, so insert a DMA upload command now. - */ + /* No pending DMA/update commands yet. */ - /* - * Migrate the data from swbuf -> hwbuf if necessary. - */ + /* Migrate the data from swbuf -> hwbuf if necessary */ ret = svga_buffer_update_hw(svga, sbuf); if (ret == PIPE_OK) { - /* - * Queue a dma command. - */ - + /* Emit DMA or UpdateGBImage commands */ ret = svga_buffer_upload_command(svga, sbuf); if (ret == PIPE_ERROR_OUT_OF_MEMORY) { svga_context_flush(svga, NULL); |