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

Author: Iago Toral Quiroga <[email protected]>
Date:   Tue May 30 10:36:17 2023 +0200

v3d: only warn about bining sync for indirect draw once

Reviewed-by: Juan A. Suarez <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23306>

---

 src/gallium/drivers/v3d/v3dx_draw.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/v3d/v3dx_draw.c 
b/src/gallium/drivers/v3d/v3dx_draw.c
index 503475f6832..a180dffed94 100644
--- a/src/gallium/drivers/v3d/v3dx_draw.c
+++ b/src/gallium/drivers/v3d/v3dx_draw.c
@@ -1033,8 +1033,12 @@ v3d_draw_vbo(struct pipe_context *pctx, const struct 
pipe_draw_info *info,
          * rendering to each texture's BO.
          */
         if (v3d->tex[PIPE_SHADER_VERTEX].num_textures || (indirect && 
indirect->buffer)) {
-                perf_debug("Blocking binner on last render "
-                           "due to vertex texturing or indirect drawing.\n");
+                static bool warned = false;
+                if (!warned) {
+                        perf_debug("Blocking binner on last render due to "
+                                   "vertex texturing or indirect drawing.\n");
+                        warned = true;
+                }
                 job->submit.in_sync_bcl = v3d->out_sync;
         }
 

Reply via email to