diff options
author | Icecream95 <[email protected]> | 2020-07-14 22:17:34 +1200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-17 14:50:26 +0000 |
commit | 314ba5e17450c8c14c2191bcd5675a9eaaac69d8 (patch) | |
tree | d4023daafd47bb5cc8d749a7236bf12477b5efb8 /src/freedreno | |
parent | 2a6db94b05cadb9bcd7a3b28f9fe60c7905fb21e (diff) |
nir: Add a face_sysval argument to nir_lower_two_sided_color
This is needed for handling drivers that use an input for loading the
face, for example Panfrost with Midgard GPUs.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Tested-by: Urja Rannikko <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5915>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 74013aa3bd1..c779a57f7c5 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -412,7 +412,7 @@ ir3_nir_lower_variant(struct ir3_shader_variant *so, nir_shader *s) progress |= OPT(s, ir3_nir_lower_layer_id); } if (so->key.color_two_side) { - OPT_V(s, nir_lower_two_sided_color); + OPT_V(s, nir_lower_two_sided_color, true); progress = true; } |