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

Author: Marek Olšák <[email protected]>
Date:   Fri Mar 20 17:45:17 2020 -0400

radeonsi/gfx10: don't use NGG culling if compute-based culling is used

Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>

---

 src/gallium/drivers/radeonsi/si_state_draw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c 
b/src/gallium/drivers/radeonsi/si_state_draw.c
index 96fa59145ae..dc6de604d21 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -2040,6 +2040,7 @@ static void si_draw_vbo(struct pipe_context *ctx, const 
struct pipe_draw_info *i
 
        /* Update NGG culling settings. */
        if (sctx->ngg &&
+           !dispatch_prim_discard_cs &&
            rast_prim == PIPE_PRIM_TRIANGLES &&
            (sctx->screen->always_use_ngg_culling ||
             /* At least 1024 non-indexed vertices (8 subgroups) are needed

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

Reply via email to