[virglrenderer-devel] [PATCH 4/4] vrend: Up the shader feature level when on GLES 3.x
Jakob Bornecrantz
jakob at collabora.com
Wed May 16 14:34:27 UTC 2018
Signed-off-by: Jakob Bornecrantz <jakob at collabora.com>
---
src/vrend_renderer.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 812df76..824f147 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -6634,7 +6634,11 @@ bool vrend_renderer_fill_caps_common(uint32_t set, uint32_t version,
/* Some checks looks at v1.glsl_level so set it here. */
if (vrend_state.use_gles) {
- caps->v1.glsl_level = 120;
+ if (gl_ver >= 30) {
+ caps->v1.glsl_level = 130;
+ } else {
+ caps->v1.glsl_level = 120;
+ }
} else if (vrend_state.use_core_profile) {
if (gl_ver == 31)
caps->v1.glsl_level = 140;
--
2.14.1
More information about the virglrenderer-devel
mailing list