From 314ba5e17450c8c14c2191bcd5675a9eaaac69d8 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Tue, 14 Jul 2020 22:17:34 +1200 Subject: 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 Reviewed-by: Rob Clark Tested-by: Urja Rannikko Part-of: --- src/freedreno/ir3/ir3_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/freedreno') 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; } -- cgit v1.2.3