mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radeonsi/gfx10: take PRIMID from the correct output when exported by GS
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
8060339278
commit
1b11fb148c
1 changed files with 2 additions and 2 deletions
|
|
@ -3156,8 +3156,8 @@ static unsigned si_get_ps_input_cntl(struct si_context *sctx,
|
|||
}
|
||||
}
|
||||
|
||||
if (name == TGSI_SEMANTIC_PRIMID)
|
||||
/* PrimID is written after the last output. */
|
||||
if (j == vsinfo->num_outputs && name == TGSI_SEMANTIC_PRIMID)
|
||||
/* PrimID is written after the last output when HW VS is used. */
|
||||
ps_input_cntl |= S_028644_OFFSET(vs->info.vs_output_param_offset[vsinfo->num_outputs]);
|
||||
else if (j == vsinfo->num_outputs && !G_028644_PT_SPRITE_TEX(ps_input_cntl)) {
|
||||
/* No corresponding output found, load defaults into input.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue