mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
ac/nir: fix slots in clamping legacy colors
fixes: 7c41cdb81f
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23178>
This commit is contained in:
parent
dd0469e401
commit
e367617668
1 changed files with 1 additions and 1 deletions
|
|
@ -585,7 +585,7 @@ ac_nir_create_gs_copy_shader(const nir_shader *gs_nir,
|
|||
|
||||
/* clamp legacy color output */
|
||||
if (i == VARYING_SLOT_COL0 || i == VARYING_SLOT_COL1 ||
|
||||
i == VARYING_SLOT_BFC0 || i == VARYING_SLOT_BFC0) {
|
||||
i == VARYING_SLOT_BFC0 || i == VARYING_SLOT_BFC1) {
|
||||
nir_ssa_def *color = outputs.data[i][j];
|
||||
nir_ssa_def *clamp = nir_load_clamp_vertex_color_amd(&b);
|
||||
outputs.data[i][j] = nir_bcsel(&b, clamp, nir_fsat(&b, color), color);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue