diff options
author | Marek Olšák <[email protected]> | 2016-10-17 00:38:41 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-19 19:26:30 +0200 |
commit | ec35ff4e2b71867b0c60479bea8aacd8dfd66ae5 (patch) | |
tree | 80074f8512cf003596363d880628e58edfa291cc /src/mesa/state_tracker/st_extensions.c | |
parent | eacda2c08085c8296949b2743e9ecdb2d2d6d54f (diff) |
glsl_to_tgsi: remove subroutine support
Never used. The GLSL compiler doesn't even look at EmitNoFunctions.
v2: add back "return" support in "main"
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index b87a3db1870..6ed00abf653 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -272,8 +272,7 @@ void st_init_limits(struct pipe_screen *screen, options->EmitNoLoops = !screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH); - options->EmitNoFunctions = - !screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_SUBROUTINES); + options->EmitNoFunctions = true; options->EmitNoMainReturn = !screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_SUBROUTINES); |