mesa/st: Expose compute shaders when NIR support is advertised.
[mesa.git] / src / gallium / auxiliary / cso_cache / cso_context.c
index 97cb77ee8e86190c91828c0f12d1383eb03e152f..d9e1309c5ccc02f3f29b96256bd90abe7cef38f8 100644 (file)
@@ -329,7 +329,8 @@ cso_create_context(struct pipe_context *pipe, unsigned u_vbuf_flags)
       int supported_irs =
          pipe->screen->get_shader_param(pipe->screen, PIPE_SHADER_COMPUTE,
                                         PIPE_SHADER_CAP_SUPPORTED_IRS);
-      if (supported_irs & (1 << PIPE_SHADER_IR_TGSI)) {
+      if (supported_irs & ((1 << PIPE_SHADER_IR_TGSI) |
+                           (1 << PIPE_SHADER_IR_NIR))) {
          ctx->has_compute_shader = TRUE;
       }
    }