[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg-devel
Subject: [PATCH xserver] glamor: Rename var in glamor_xv, SAMPLE is GLSL keyword
From: Corentin Rossignon <corossig () gmail ! com>
Date: 2017-12-29 10:37:59
Message-ID: 20171229103759.32536-1-corossig () gmail ! com
[Download RAW message or body]
From: Corentin Rossignon <corentin.rossignon@gmail.com>
This fix issue with gnome-shell and playing video using xv
Signed-off-by: Corentin Rossignon <corentin.rossignon@gmail.com>
Bugzilla: https://bugs.freedesktop.org/104405
---
glamor/glamor_xv.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c
index 31320d124..487927408 100644
--- a/glamor/glamor_xv.c
+++ b/glamor/glamor_xv.c
@@ -77,14 +77,14 @@ static const glamor_facet glamor_facet_xv_planar = {
"uniform vec4 vco;\n"
"varying vec2 tcs;\n"),
.fs_exec = (
- " float sample;\n"
+ " float sample_var;\n"
" vec4 temp1;\n"
- " sample = texture2D(y_sampler, tcs).w;\n"
- " temp1.xyz = offsetyco.www * vec3(sample) + offsetyco.xyz;\n"
- " sample = texture2D(u_sampler, tcs).w;\n"
- " temp1.xyz = ucogamma.xyz * vec3(sample) + temp1.xyz;\n"
- " sample = texture2D(v_sampler, tcs).w;\n"
- " temp1.xyz = clamp(vco.xyz * vec3(sample) + temp1.xyz, 0.0, 1.0);\n"
+ " sample_var = texture2D(y_sampler, tcs).w;\n"
+ " temp1.xyz = offsetyco.www * vec3(sample_var) + offsetyco.xyz;\n"
+ " sample_var = texture2D(u_sampler, tcs).w;\n"
+ " temp1.xyz = ucogamma.xyz * vec3(sample_var) + temp1.xyz;\n"
+ " sample_var = texture2D(v_sampler, tcs).w;\n"
+ " temp1.xyz = clamp(vco.xyz * vec3(sample_var) + temp1.xyz, 0.0, 1.0);\n"
" temp1.w = 1.0;\n"
" gl_FragColor = temp1;\n"
),
--
2.15.1
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic