mesa/src/util/xmlpool
Kenneth Graunke 9b577f2a88 driconf, glsl: Add a vs_position_always_invariant option
Many applications use multi-pass rendering and require their vertex
shader position to be computed the same way each time.  Optimizations
may consider, say, fusing a multiply-add based on global usage of an
expression in a shader.  But a second shader with the same expression
may have different code, causing that optimization to make the other
choice the second time around.

The correct solution is for applications to mark their VS outputs
'invariant', indicating they need multiple shaders to compute that
output in the same manner.  However, most applications fail to do so.

So, we add a new driconf option - vs_position_always_invariant - which
forces the gl_Position output in vertex shaders to be marked invariant.

Fixes: 7025dbe794 ("nir: Skip emitting no-op movs from the builder.")
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2019-11-27 18:48:04 +00:00
..
.gitignore delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
ca.po xmlpool: update translation po files 2018-11-13 17:25:02 +00:00
de.po xmlpool: update translation po files 2018-11-13 17:25:02 +00:00
es.po xmlpool: update translation po files 2018-11-13 17:25:02 +00:00
fr.po xmlpool: update translation po files 2018-11-13 17:25:02 +00:00
gen_xmlpool.py util/gen_xmlpool: Make use of python's foreach loop 2018-10-31 16:37:46 -07:00
LINGUAS meson: add support for generating translation mo files 2018-10-31 16:37:12 -07:00
meson.build meson: move idep_xmlconfig_headers to xmlpool/ 2019-10-31 16:03:57 +00:00
nl.po xmlpool: update translation po files 2018-11-13 17:25:02 +00:00
POTFILES meson: add support for generating translation mo files 2018-10-31 16:37:12 -07:00
SConscript util/gen_xmlpool: Don't write via shell redirection 2018-10-31 16:37:46 -07:00
sv.po xmlpool: update translation po files 2018-11-13 17:25:02 +00:00
t_options.h driconf, glsl: Add a vs_position_always_invariant option 2019-11-27 18:48:04 +00:00