v3d: remove static v3d_start_binning
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 4 Nov 2021 23:41:50 +0000 (00:41 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 11 Nov 2021 13:04:22 +0000 (14:04 +0100)
v3dx(start_binning) is just a call to that method, so let's just use
it directly.

Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13754>

src/gallium/drivers/v3d/v3dx_draw.c

index 815e5ef..ae8537d 100644 (file)
@@ -37,8 +37,8 @@
 #include "broadcom/common/v3d_util.h"
 #include "broadcom/cle/v3dx_pack.h"
 
-static void
-v3d_start_binning(struct v3d_context *v3d, struct v3d_job *job)
+void
+v3dX(start_binning)(struct v3d_context *v3d, struct v3d_job *job)
 {
         assert(job->needs_flush);
 
@@ -159,7 +159,7 @@ v3d_start_draw(struct v3d_context *v3d)
         job->draw_height = v3d->framebuffer.height;
         job->num_layers = util_framebuffer_get_num_layers(&v3d->framebuffer);
 
-        v3d_start_binning(v3d, job);
+        v3dX(start_binning)(v3d, job);
 }
 
 static void
@@ -1655,12 +1655,6 @@ v3d_clear_depth_stencil(struct pipe_context *pctx, struct pipe_surface *ps,
 }
 
 void
-v3dX(start_binning)(struct v3d_context *v3d, struct v3d_job *job)
-{
-        v3d_start_binning(v3d, job);
-}
-
-void
 v3dX(draw_init)(struct pipe_context *pctx)
 {
         pctx->draw_vbo = v3d_draw_vbo;