mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
ac/nir: fix slots in clamping legacy colors
fixes:7c41cdb81fReviewed-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23178> (cherry picked from commite367617668)
This commit is contained in:
parent
cc5a2ca096
commit
caa1ba767c
2 changed files with 2 additions and 2 deletions
|
|
@ -1156,7 +1156,7 @@
|
||||||
"description": "ac/nir: fix slots in clamping legacy colors",
|
"description": "ac/nir: fix slots in clamping legacy colors",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "7c41cdb81f564ef52404e5f313ccfe2d723896e6"
|
"because_sha": "7c41cdb81f564ef52404e5f313ccfe2d723896e6"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -585,7 +585,7 @@ ac_nir_create_gs_copy_shader(const nir_shader *gs_nir,
|
||||||
|
|
||||||
/* clamp legacy color output */
|
/* clamp legacy color output */
|
||||||
if (i == VARYING_SLOT_COL0 || i == VARYING_SLOT_COL1 ||
|
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 *color = outputs.data[i][j];
|
||||||
nir_ssa_def *clamp = nir_load_clamp_vertex_color_amd(&b);
|
nir_ssa_def *clamp = nir_load_clamp_vertex_color_amd(&b);
|
||||||
outputs.data[i][j] = nir_bcsel(&b, clamp, nir_fsat(&b, color), color);
|
outputs.data[i][j] = nir_bcsel(&b, clamp, nir_fsat(&b, color), color);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue