summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-10-23 23:43:31 +0100
committerDave Airlie <[email protected]>2017-10-26 00:55:59 +0100
commit74fc9e9186389df1d94d82e919b5ae1576d7d68a (patch)
tree95c5c90affc34418abb78ea95c82b5c81c9bf350 /src
parent3ee2e98aff4fdddda626d61f2e45bf25bd76d4f5 (diff)
st/mesa: enable nir path for all shaders.
There is no reason to block this here, if a driver enables it, let it handle it. Reviewed-by: Timothy Arceri <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index aa225df63d6..eaed052a17d 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -6973,15 +6973,7 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
struct gl_program *linked_prog = NULL;
if (preferred_ir == PIPE_SHADER_IR_NIR) {
- /* TODO only for GLSL VS/FS/CS for now: */
- switch (shader->Stage) {
- case MESA_SHADER_VERTEX:
- case MESA_SHADER_FRAGMENT:
- case MESA_SHADER_COMPUTE:
- linked_prog = st_nir_get_mesa_program(ctx, prog, shader);
- default:
- break;
- }
+ linked_prog = st_nir_get_mesa_program(ctx, prog, shader);
} else {
linked_prog = get_mesa_program_tgsi(ctx, prog, shader);
}