summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-12-01 01:13:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-03 11:21:34 +0000
commit156fd7be4fcd5f400ad01a0b33cb2f66567bb4bf (patch)
treeaec21072d0bdf0329bae006988c9712bdf112434
parent77f8b8e981fd2098660903c2fd10cc58b544c40e (diff)
downloadpoky-156fd7be4fcd5f400ad01a0b33cb2f66567bb4bf.tar.gz
piglit: update the patch to fix building the test without wayland
Fix the following error appearing if building on a pure-X11 distros: <PATH>/git/tests/egl/egl-wayland.c:29:10: fatal error: wayland-client.h: No such file or directory 29 | #include <wayland-client.h> | ^~~~~~~~~~~~~~~~~~ (From OE-Core rev: 61d344636cf59ad11805923665543cde4eb6cbd7) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/piglit/piglit/0001-tests-egl-spec-make-egl_ext_surface_compression-cond.patch56
1 files changed, 39 insertions, 17 deletions
diff --git a/meta/recipes-graphics/piglit/piglit/0001-tests-egl-spec-make-egl_ext_surface_compression-cond.patch b/meta/recipes-graphics/piglit/piglit/0001-tests-egl-spec-make-egl_ext_surface_compression-cond.patch
index 47f8b03961..69cc302912 100644
--- a/meta/recipes-graphics/piglit/piglit/0001-tests-egl-spec-make-egl_ext_surface_compression-cond.patch
+++ b/meta/recipes-graphics/piglit/piglit/0001-tests-egl-spec-make-egl_ext_surface_compression-cond.patch
@@ -11,23 +11,45 @@ Otherwise, this error occurs:
11| | ^~~~~~~~~~~~ 11| | ^~~~~~~~~~~~
12 12
13Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/974] 13Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/974]
14Co-developed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
15Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
14Signed-off-by: Alexander Kanavin <alex@linutronix.de> 16Signed-off-by: Alexander Kanavin <alex@linutronix.de>
15--- 17---
16 tests/egl/spec/CMakeLists.txt | 4 +++- 18 .../spec/egl_ext_surface_compression/CMakeLists.gles3.txt | 6 ++++--
17 1 file changed, 3 insertions(+), 1 deletion(-) 19 tests/egl/spec/egl_ext_surface_compression/create_surface.c | 1 -
20 2 files changed, 4 insertions(+), 3 deletions(-)
21
22diff --git a/tests/egl/spec/egl_ext_surface_compression/CMakeLists.gles3.txt b/tests/egl/spec/egl_ext_surface_compression/CMakeLists.gles3.txt
23index d9540bcfde27..01a70164f444 100644
24--- a/tests/egl/spec/egl_ext_surface_compression/CMakeLists.gles3.txt
25+++ b/tests/egl/spec/egl_ext_surface_compression/CMakeLists.gles3.txt
26@@ -2,10 +2,12 @@ link_libraries(
27 piglitutil_${piglit_target_api}
28 )
29
30-piglit_add_executable(egl_ext_surface_compression-create ../../egl-util.c
31+if (PIGLIT_HAS_WAYLAND)
32+piglit_add_executable(egl_ext_surface_compression-create
33 ../../egl-wayland.c create_surface.c)
34+endif (PIGLIT_HAS_WAYLAND)
35
36-piglit_add_executable(egl_ext_surface_compression-image ../../egl-util.c
37+piglit_add_executable(egl_ext_surface_compression-image
38 image_storage.c)
39
40 # vim: ft=cmake:
41diff --git a/tests/egl/spec/egl_ext_surface_compression/create_surface.c b/tests/egl/spec/egl_ext_surface_compression/create_surface.c
42index e3d55d4331fb..35f13fd007b4 100644
43--- a/tests/egl/spec/egl_ext_surface_compression/create_surface.c
44+++ b/tests/egl/spec/egl_ext_surface_compression/create_surface.c
45@@ -25,7 +25,6 @@
46 #include "piglit-util.h"
47 #include "piglit-util-egl.h"
48 #include "piglit-util-gl.h"
49-#include "../../egl-util.h"
50 #include "../../egl-wayland.h"
51
52 static enum piglit_result
53--
542.39.5
18 55
19diff --git a/tests/egl/spec/CMakeLists.txt b/tests/egl/spec/CMakeLists.txt
20index 33c504978..1dea6d8fc 100644
21--- a/tests/egl/spec/CMakeLists.txt
22+++ b/tests/egl/spec/CMakeLists.txt
23@@ -7,7 +7,9 @@ add_subdirectory (egl_ext_device_drm)
24 add_subdirectory (egl_ext_platform_device)
25 add_subdirectory (egl_ext_image_dma_buf_import_modifiers)
26 add_subdirectory (egl_ext_protected_content)
27-add_subdirectory (egl_ext_surface_compression)
28+if (PIGLIT_HAS_X11)
29+ add_subdirectory (egl_ext_surface_compression)
30+endif (PIGLIT_HAS_X11)
31 add_subdirectory (egl_khr_create_context)
32 add_subdirectory (egl_khr_display_reference)
33 add_subdirectory (egl_khr_get_all_proc_addresses)