Mesa (master): llvmpipe/cs: respect render condition

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 19 05:25:33 UTC 2020


Module: Mesa
Branch: master
Commit: 0e0b6d477b9bd3719b96229591529007484e9063
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e0b6d477b9bd3719b96229591529007484e9063

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Jul 17 05:22:18 2020 +1000

llvmpipe/cs: respect render condition

Running complete CTS turned up a missing cond render.

Fixes KHR-GL45.compute_shader.conditional-dispatching

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5944>

---

 src/gallium/drivers/llvmpipe/lp_state_cs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_cs.c b/src/gallium/drivers/llvmpipe/lp_state_cs.c
index 59757234a83..dcdd9b36240 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_cs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_cs.c
@@ -43,6 +43,7 @@
 #include "lp_perf.h"
 #include "lp_screen.h"
 #include "lp_memory.h"
+#include "lp_query.h"
 #include "lp_cs_tpool.h"
 #include "frontend/sw_winsys.h"
 #include "nir/nir_to_tgsi_info.h"
@@ -1316,6 +1317,9 @@ static void llvmpipe_launch_grid(struct pipe_context *pipe,
    struct llvmpipe_screen *screen = llvmpipe_screen(pipe->screen);
    struct lp_cs_job_info job_info;
 
+   if (!llvmpipe_check_render_cond(llvmpipe))
+      return;
+
    memset(&job_info, 0, sizeof(job_info));
 
    llvmpipe_cs_update_derived(llvmpipe, info->input);



More information about the mesa-commit mailing list