mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 05:40:13 +01:00
radeonsi: select key for mesh shader
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37932>
This commit is contained in:
parent
e42ada1723
commit
845f333111
1 changed files with 7 additions and 3 deletions
|
|
@ -2557,9 +2557,10 @@ static void si_get_vs_key_outputs(struct si_context *sctx, struct si_shader_sele
|
|||
key->ge.opt.kill_layer = vs->info.writes_layer &&
|
||||
sctx->framebuffer.state.layers <= 1;
|
||||
key->ge.opt.kill_outputs = ~linked & outputs_written;
|
||||
key->ge.opt.ngg_culling = sctx->ngg_culling;
|
||||
key->ge.mono.u.vs_export_prim_id = vs->stage != MESA_SHADER_GEOMETRY &&
|
||||
sctx->shader.ps.cso && sctx->shader.ps.cso->info.uses_primid;
|
||||
key->ge.opt.ngg_culling = vs->stage != MESA_SHADER_MESH ? sctx->ngg_culling : 0;
|
||||
key->ge.mono.u.vs_export_prim_id =
|
||||
vs->stage != MESA_SHADER_GEOMETRY && vs->stage != MESA_SHADER_MESH &&
|
||||
sctx->shader.ps.cso && sctx->shader.ps.cso->info.uses_primid;
|
||||
|
||||
if (vs->info.enabled_streamout_buffer_mask) {
|
||||
if (sctx->streamout.enabled_mask) {
|
||||
|
|
@ -2960,6 +2961,9 @@ static inline void si_shader_selector_key(struct pipe_context *ctx, struct si_sh
|
|||
si_clear_vs_key_outputs(sctx, sel, key);
|
||||
}
|
||||
break;
|
||||
case MESA_SHADER_MESH:
|
||||
si_get_vs_key_outputs(sctx, sel, key);
|
||||
break;
|
||||
case MESA_SHADER_FRAGMENT:
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue