From: Nicolai Hähnle Date: Fri, 11 Mar 2016 23:11:35 +0000 (-0500) Subject: st/glsl_to_tgsi: set FS_EARLY_DEPTH_STENCIL when required X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c497b8fb59fa80abb9be315defe809b982958f4;p=mesa.git st/glsl_to_tgsi: set FS_EARLY_DEPTH_STENCIL when required Reviewed-by: Ilia Mirkin Reviewed-by: Marek Olšák --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 18cea60fc74..18414055549 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6121,6 +6121,9 @@ st_translate_program( } if (procType == TGSI_PROCESSOR_FRAGMENT) { + if (program->shader->EarlyFragmentTests) + ureg_property(ureg, TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL, 1); + if (proginfo->InputsRead & VARYING_BIT_POS) { /* Must do this after setting up t->inputs. */ emit_wpos(st_context(ctx), t, proginfo, ureg,