radeonsi: enable OpenGL 4.3
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 18 Apr 2016 22:47:49 +0000 (00:47 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 27 May 2016 20:28:11 +0000 (22:28 +0200)
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index eefc68a7f81c8bcf050060e91d6eb9e48a6e2174..88f4f2083e37505e15ed89c2ee077178b2d58447 100644 (file)
@@ -369,6 +369,10 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
                return HAVE_LLVM >= 0x0309 ? 4 : 0;
 
        case PIPE_CAP_GLSL_FEATURE_LEVEL:
+               if (pscreen->get_shader_param(pscreen, PIPE_SHADER_COMPUTE,
+                                             PIPE_SHADER_CAP_SUPPORTED_IRS) &
+                   (1 << PIPE_SHADER_IR_TGSI))
+                       return 430;
                return HAVE_LLVM >= 0x0309 ? 420 :
                       HAVE_LLVM >= 0x0307 ? 410 : 330;