diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2018-09-19 10:16:27 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-01-23 00:35:56 -0800 |
commit | e0485a1dd7f0df90fb7049c23425aa693a284bad (patch) | |
tree | 915cbb0b1768020b3417896a75cd82ee2d6ad2ee /src/mesa/state_tracker | |
parent | 8e26d534befe7cdd3bd21aa34f3ff63c1fa7baea (diff) |
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 46280792603..b0b9467cdfa 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -334,6 +334,8 @@ void st_init_limits(struct pipe_screen *screen, c->GLSLOptimizeConservatively = screen->get_param(screen, PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY); + c->GLSLTessLevelsAsInputs = + screen->get_param(screen, PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS); c->LowerTessLevel = true; c->LowerCsDerivedVariables = true; c->PrimitiveRestartForPatches = |