diff options
author | Nicolai Hähnle <[email protected]> | 2016-03-11 18:11:35 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-03-14 17:24:37 -0500 |
commit | 8c497b8fb59fa80abb9be315defe809b982958f4 (patch) | |
tree | 9c60fca800498d2d73556173e399f02dcbe882ac /src | |
parent | e526f930aa5d1c6b022cde051bed40d5df9023d4 (diff) |
st/glsl_to_tgsi: set FS_EARLY_DEPTH_STENCIL when required
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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, |