Mesa (master): radeonsi: move a displaced comment in si_draw_vbo

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Sep 24 13:19:04 UTC 2020


Module: Mesa
Branch: master
Commit: d647065b069d232ba41aa1512b5aa259feadd596
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d647065b069d232ba41aa1512b5aa259feadd596

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sat Sep 19 05:29:37 2020 -0400

radeonsi: move a displaced comment in si_draw_vbo

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6786>

---

 src/gallium/drivers/radeonsi/si_state_draw.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index f6a9c95be43..5677443884b 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -1932,13 +1932,13 @@ static void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *i
       }
    }
 
-   if (sctx->bo_list_add_all_gfx_resources)
-      si_gfx_resources_add_all_to_bo_list(sctx);
-
    /* Since we've called si_context_add_resource_size for vertex buffers,
     * this must be called after si_need_cs_space, because we must let
     * need_cs_space flush before we add buffers to the buffer list.
     */
+   if (sctx->bo_list_add_all_gfx_resources)
+      si_gfx_resources_add_all_to_bo_list(sctx);
+
    if (!si_upload_vertex_buffer_descriptors(sctx) ||
        !si_upload_graphics_shader_descriptors(sctx))
       goto return_cleanup;



More information about the mesa-commit mailing list