summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa-demos
diff options
context:
space:
mode:
authorValentin Jec <valentin.jec@nxp.com>2024-07-26 18:25:22 +0300
committerValentin Jec <valentin.jec@nxp.com>2024-08-08 14:14:04 +0300
commit6204783c642c92e3d59d0cbea494df59d5958cd7 (patch)
treec194ef7388902f6297ce4d44351e3b33a71bfabf /recipes-graphics/mesa/mesa-demos
parent46949846a64108f4fec63b33c4d64cfe7415009a (diff)
downloadmeta-freescale-6204783c642c92e3d59d0cbea494df59d5958cd7.tar.gz
mesa-demos: Add patch for egl clear backgrounds black color
mesa: Add patches for video showing wrong frame and fix virgl driver assert issue Signed-off-by: Valentin Jec <valentin.jec@nxp.com>
Diffstat (limited to 'recipes-graphics/mesa/mesa-demos')
-rw-r--r--recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch b/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch
new file mode 100644
index 000000000..fa46823f1
--- /dev/null
+++ b/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch
@@ -0,0 +1,30 @@
1From cad7eb0f0487aea64c4460bd6ad95b5c9537d35a Mon Sep 17 00:00:00 2001
2From: Jiyu Yang <jiyu.yang@nxp.com>
3Date: Thu, 11 Apr 2024 16:30:50 +0800
4Subject: [PATCH] egl: clear backgrounds black
5
6if 50% translucency used, the application render result can vary
7depending on the format chosen, such as R10G10B10A2 or RGB24.
8
9Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/demos/-/merge_requests/174]
10Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
11---
12 src/egl/opengles2/es2gears.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/egl/opengles2/es2gears.c b/src/egl/opengles2/es2gears.c
16index db67f3a9..4e81afe7 100644
17--- a/src/egl/opengles2/es2gears.c
18+++ b/src/egl/opengles2/es2gears.c
19@@ -515,7 +515,7 @@ gears_draw(void)
20 GLfloat transform[16];
21 identity(transform);
22
23- glClearColor(0.0, 0.0, 0.0, 0.0);
24+ glClearColor(0.0, 0.0, 0.0, 1.0);
25 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
26
27 /* Translate and rotate the view */
28--
292.34.1
30