diff options
author | Erik Faye-Lund <[email protected]> | 2019-10-03 16:51:19 -0400 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-17 10:41:36 +0200 |
commit | 28543f1640d459404413c244740291fe68a75a5c (patch) | |
tree | b2e7e01dc255da195414a3d61d089436151e9ec0 /src/mesa/state_tracker/st_program.c | |
parent | 011d692a52b60bbbb73395e403bcb6c7cbe61a06 (diff) |
mesa/gallium: automatically lower two-sided lighting
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 857a5444fcc..205fc9561fe 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1181,6 +1181,9 @@ st_create_fp_variant(struct st_context *st, false, alpha_ref_state); } + if (key->lower_two_sided_color) + NIR_PASS_V(tgsi.ir.nir, nir_lower_two_sided_color); + if (key->persample_shading) { nir_shader *shader = tgsi.ir.nir; nir_foreach_variable(var, &shader->inputs) |