projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65e9239
)
radeonsi/gfx10: don't use NGG culling if compute-based culling is used
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 20 Mar 2020 21:45:17 +0000
(17:45 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Sat, 28 Mar 2020 00:58:34 +0000
(
00:58
+0000)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>
src/gallium/drivers/radeonsi/si_state_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state_draw.c
b/src/gallium/drivers/radeonsi/si_state_draw.c
index 96fa59145ae81207446dcabbd001b15ec9606723..dc6de604d21ee4078499a4f829f44c0869255d8b 100644
(file)
--- 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