svga: update some comments in svga_buffer_handle()
authorBrian Paul <brianp@vmware.com>
Wed, 22 Jun 2016 23:24:12 +0000 (17:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Jun 2016 19:02:28 +0000 (13:02 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer_upload.c

index 87d77c5f317957ecf5e4001447d1a3bfa7f9879e..be4c69420c807de72b165efc639d8290d4e4e810 100644 (file)
@@ -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);