Mesa (main): radeonsi: rewrite a confusing comment in si_upload_and_prefetch_VB_descriptors
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 8 18:55:48 UTC 2021
Module: Mesa
Branch: main
Commit: 9aa53d7ac450b7b2f92c378a607b68bf52aa5af1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9aa53d7ac450b7b2f92c378a607b68bf52aa5af1
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 28 13:42:26 2021 -0400
radeonsi: rewrite a confusing comment in si_upload_and_prefetch_VB_descriptors
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11754>
---
src/gallium/drivers/radeonsi/si_state_draw.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index a3823220f96..4fc81ab1811 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -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,
More information about the mesa-commit
mailing list