radeonsi: rewrite a confusing comment in si_upload_and_prefetch_VB_descriptors
authorMarek Olšák <marek.olsak@amd.com>
Mon, 28 Jun 2021 17:42:26 +0000 (13:42 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 8 Jul 2021 18:37:41 +0000 (18:37 +0000)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11754>

src/gallium/drivers/radeonsi/si_state_draw.cpp

index a382322..4fc81ab 100644 (file)
@@ -1381,9 +1381,8 @@ static bool si_upload_and_prefetch_VB_descriptors(struct si_context *sctx)
       uint32_t *ptr;
 
       if (alloc_size) {
-         /* Vertex buffer descriptors are the only ones which are uploaded
-          * directly through a staging buffer and don't go through
-          * the fine-grained upload path.
+         /* Vertex buffer descriptors are the only ones which are uploaded directly
+          * and don't go through si_upload_graphics_shader_descriptors.
           */
          u_upload_alloc(sctx->b.const_uploader, 0, alloc_size,
                         si_optimal_tcc_alignment(sctx, alloc_size), &sctx->vb_descriptors_offset,