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

Author: Mike Blumenkrantz <[email protected]>
Date:   Tue May 11 13:49:10 2021 -0400

zink: remove unnecessary draw checks

I don't know how/why these got here but they aren't needed

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11408>

---

 src/gallium/drivers/zink/zink_draw.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_draw.c 
b/src/gallium/drivers/zink/zink_draw.c
index 7c857a51f4c..2512279f348 100644
--- a/src/gallium/drivers/zink/zink_draw.c
+++ b/src/gallium/drivers/zink/zink_draw.c
@@ -402,9 +402,6 @@ zink_draw_vbo(struct pipe_context *pctx,
               const struct pipe_draw_start_count_bias *draws,
               unsigned num_draws)
 {
-   if (!dindirect && (!draws[0].count || !dinfo->instance_count))
-      return;
-
    struct zink_context *ctx = zink_context(pctx);
    struct zink_screen *screen = zink_screen(pctx->screen);
    struct zink_rasterizer_state *rast_state = ctx->rast_state;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to