diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-09 20:56:09 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-11 15:12:17 -0700 |
commit | 46de3beab1f4145d23567f95db4e5e4c5adbe5db (patch) | |
tree | 4d17927713aa60ca185f48ecbd0310e710d2164f /src/mesa | |
parent | f03b21ae6982e6cb9a6240532f3f721c7d80a8fb (diff) |
gallium: Add PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED
Tells whether or not the driver can handle gl_LocalInvocationIndex and
gl_GlobalInvocationID. If not supported (the default), state tracker
will lower those on behalf of the driver.
v2: Add case to u_screen.c. (Anholt)
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index f930d3caff9..cb340b3edc9 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -348,7 +348,8 @@ void st_init_limits(struct pipe_screen *screen, screen->get_param(screen, PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS); c->LowerTessLevel = !screen->get_param(screen, PIPE_CAP_NIR_COMPACT_ARRAYS); - c->LowerCsDerivedVariables = true; + c->LowerCsDerivedVariables = + !screen->get_param(screen, PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED); c->PrimitiveRestartForPatches = screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART_FOR_PATCHES); |