Mesa (main): crocus: reorder version checks on indirect xfb

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 5 05:14:01 UTC 2021


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jul  5 06:54:35 2021 +1000

crocus: reorder version checks on indirect xfb

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11707>

---

 src/gallium/drivers/crocus/crocus_draw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/crocus/crocus_draw.c b/src/gallium/drivers/crocus/crocus_draw.c
index 73de537ef1b..feef4e78ecf 100644
--- a/src/gallium/drivers/crocus/crocus_draw.c
+++ b/src/gallium/drivers/crocus/crocus_draw.c
@@ -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;
    }



More information about the mesa-commit mailing list