mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 05:40:13 +01:00
radeonsi: simplify write_psize code in si_get_vs_out_cntl
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12789>
This commit is contained in:
parent
824d9bed4f
commit
80efe661d7
1 changed files with 2 additions and 5 deletions
|
|
@ -1119,14 +1119,11 @@ static unsigned si_get_vs_out_cntl(const struct si_shader_selector *sel,
|
|||
/* Clip distances can be killed, but cull distances can't. */
|
||||
unsigned clipcull_mask = (sel->clipdist_mask & ~shader->key.opt.kill_clip_distances) |
|
||||
sel->culldist_mask;
|
||||
bool writes_psize = sel->info.writes_psize;
|
||||
|
||||
if (shader)
|
||||
writes_psize &= !shader->key.opt.kill_pointsize;
|
||||
|
||||
bool writes_psize = sel->info.writes_psize && !shader->key.opt.kill_pointsize;
|
||||
bool misc_vec_ena = writes_psize || (sel->info.writes_edgeflag && !ngg) ||
|
||||
sel->screen->options.vrs2x2 ||
|
||||
sel->info.writes_layer || sel->info.writes_viewport_index;
|
||||
|
||||
return S_02881C_VS_OUT_CCDIST0_VEC_ENA((clipcull_mask & 0x0F) != 0) |
|
||||
S_02881C_VS_OUT_CCDIST1_VEC_ENA((clipcull_mask & 0xF0) != 0) |
|
||||
S_02881C_USE_VTX_POINT_SIZE(writes_psize) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue