From: Brian Paul Date: Wed, 22 Jun 2016 23:24:12 +0000 (-0600) Subject: svga: update some comments in svga_buffer_handle() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d0799831725e67a224ef3cbb4ead39e2cebc7e6;p=mesa.git svga: update some comments in svga_buffer_handle() Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c index 87d77c5f317..be4c69420c8 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);