mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
radeonsi: no ngg culling for mesh shader
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37505>
This commit is contained in:
parent
74894150f1
commit
73aebeec42
1 changed files with 3 additions and 2 deletions
|
|
@ -980,8 +980,9 @@ static inline bool gfx10_has_variable_edgeflags(struct si_shader *shader)
|
|||
|
||||
static inline bool si_shader_culling_enabled(struct si_shader *shader)
|
||||
{
|
||||
/* Legacy VS/TES/GS and ES don't cull in the shader. */
|
||||
if (!shader->key.ge.as_ngg || shader->key.ge.as_es) {
|
||||
/* Legacy VS/TES/GS and ES/MS don't cull in the shader. */
|
||||
if (!shader->key.ge.as_ngg || shader->key.ge.as_es ||
|
||||
shader->selector->stage == MESA_SHADER_MESH) {
|
||||
assert(!shader->key.ge.opt.ngg_culling);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue