summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2016-04-19 00:47:49 +0200
committerBas Nieuwenhuizen <[email protected]>2016-05-27 22:28:11 +0200
commit2cee0d0f9c9e9e269885b1d943ff123e033d9b52 (patch)
tree3d5c532f761c2225efc8bd30c93fd02033a2ecb1
parent0438bc76e2467961a18456c676e5c92274333de4 (diff)
radeonsi: enable OpenGL 4.3
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index eefc68a7f81..88f4f2083e3 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -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;