st/mesa: enable nir path for all shaders.
authorDave Airlie <airlied@redhat.com>
Mon, 23 Oct 2017 22:43:31 +0000 (23:43 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 25 Oct 2017 23:55:59 +0000 (00:55 +0100)
There is no reason to block this here, if a driver enables
it, let it handle it.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index aa225df63d6e56d449d3c4ce0d5f1cbd52f76d6c..eaed052a17d7eb8a7f27cab79f1d0ddd82b6102e 100644 (file)
@@ -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);
       }