gallium: Add PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 19 Sep 2018 17:16:27 +0000 (10:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Jan 2019 08:35:56 +0000 (00:35 -0800)
commite0485a1dd7f0df90fb7049c23425aa693a284bad
tree915cbb0b1768020b3417896a75cd82ee2d6ad2ee
parent8e26d534befe7cdd3bd21aa34f3ff63c1fa7baea
gallium: Add PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS

In the Intel backend, it makes the most sense to treat gl_TessLevelInner
and gl_TessLevelOuter as ordinary shader inputs.  For Radeon, it makes
more sense to treat them as system values which get special handling.

We already have a compiler option for this, but the Iris driver will
need a capability bit so we can set it appropriately.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/auxiliary/util/u_screen.c
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_extensions.c