Mesa (main): st/mesa: fix an incorrect comment in st_context_flush

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 17 02:54:22 UTC 2021


Module: Mesa
Branch: main
Commit: 37bf4184db5c85a92266ae604d87b59fc9797022
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=37bf4184db5c85a92266ae604d87b59fc9797022

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sat Jun 12 12:27:21 2021 -0400

st/mesa: fix an incorrect comment in st_context_flush

Acked-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11341>

---

 src/mesa/state_tracker/st_manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index d0184fa0be6..48b87b792e4 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -664,8 +664,8 @@ st_context_flush(struct st_context_iface *stctxi, unsigned flags,
    if (flags & ST_FLUSH_FENCE_FD)
       pipe_flags |= PIPE_FLUSH_FENCE_FD;
 
-   /* If both the bitmap cache is dirty and there are unflushed vertices,
-    * it means that glBitmap was called first and then glBegin.
+   /* We can do these in any order because FLUSH_VERTICES will also flush
+    * the bitmap cache if there are any unflushed vertices.
     */
    st_flush_bitmap_cache(st);
    FLUSH_VERTICES(st->ctx, 0, 0);



More information about the mesa-commit mailing list