From 01d02cee1bf54fd355c080f49dec10bbff80af6b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 15 May 2018 14:06:46 +1000 Subject: [PATCH] arb_gpu_shader5: expose higher GLSL level to guest This enables the ARB_gpu_shader5 extension Tested-by: Gurchetan Singh Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index fd47643..5f8ff23 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -6660,8 +6660,10 @@ bool vrend_renderer_fill_caps_common(uint32_t set, uint32_t version, caps->v1.glsl_level = 140; else if (gl_ver == 32) caps->v1.glsl_level = 150; - else if (gl_ver >= 33) + else if (gl_ver == 33) caps->v1.glsl_level = 330; + else if (gl_ver >= 40) + caps->v1.glsl_level = 400; } else { caps->v1.glsl_level = 130; }