xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 1 07:34:14 UTC 2023


 glamor/glamor_render.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 910847f45265aa1b0177dc4be4d165dc71c01b69
Author: Balló György <ballogyor at gmail.com>
Date:   Wed Oct 11 16:01:13 2023 +0200

    glamor: Don't require EXT_gpu_shader4 unconditionally
    
    It causes a shader compilation error on systems without EXT_gpu_shader4.
    
    Fixes: ee107cd4

diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c
index 99c31fc2c..179b62dd8 100644
--- a/glamor/glamor_render.c
+++ b/glamor/glamor_render.c
@@ -242,7 +242,11 @@ glamor_create_composite_fs(glamor_screen_private *glamor_priv, struct shader_key
     const char *mask_fetch = "";
     const char *in;
     const char *header;
-    const char *header_norm = glamor_priv->glsl_version > 120 ? "#version 130\n" : "#version 120\n#extension GL_EXT_gpu_shader4 : require\n" GLAMOR_COMPAT_DEFINES_FS;
+    const char *header_norm = glamor_priv->glsl_version > 120 ?
+        "#version 130\n" :
+        glamor_priv->use_gpu_shader4 ?
+          "#version 120\n#extension GL_EXT_gpu_shader4 : require\n" GLAMOR_COMPAT_DEFINES_FS :
+          "#version 120\n" GLAMOR_COMPAT_DEFINES_FS;
     const char *header_es = glamor_priv->glsl_version > 100 ? "#version 300 es\n" : "#version 100\n" GLAMOR_COMPAT_DEFINES_FS;
     const char *dest_swizzle;
     GLuint prog;


More information about the xorg-commit mailing list