crocus: reorder version checks on indirect xfb
authorDave Airlie <airlied@redhat.com>
Sun, 4 Jul 2021 20:54:35 +0000 (06:54 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Jul 2021 05:03:48 +0000 (15:03 +1000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11707>

src/gallium/drivers/crocus/crocus_draw.c

index 73de537..feef4e7 100644 (file)
@@ -374,8 +374,8 @@ crocus_draw_vbo(struct pipe_context *ctx,
       return;
    }
 
-   if (indirect && indirect->count_from_stream_output &&
-       screen->devinfo.verx10 < 75) {
+   if (screen->devinfo.verx10 < 75 &&
+       indirect && indirect->count_from_stream_output) {
       crocus_draw_vbo_get_vertex_count(ctx, info, drawid_offset, indirect);
       return;
    }