1From 0c97d5eacae4f584313c9251e585bb0246cceffc Mon Sep 17 00:00:00 2001 2From: Alexander Kanavin <alex@linutronix.de> 3Date: Fri, 22 Nov 2024 22:52:31 +0100 4Subject: [PATCH] tests/egl/spec: make egl_ext_surface_compression conditional 5 to X11 6 7Otherwise, this error occurs: 8| In file included from /srv/storage/alex/yocto/build-64/workspace/sources/piglit/tests/egl/spec/egl_ext_surface_compression/create_surface.c:28: 9| /srv/storage/alex/yocto/build-64/workspace/sources/piglit/tests/egl/spec/egl_ext_surface_compression/../../egl-util.h:12:10: fatal error: X11/Xlib.h: No such file or directory 10| 12 | #include <X11/Xlib.h> 11| | ^~~~~~~~~~~~ 12 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> 16Signed-off-by: Alexander Kanavin <alex@linutronix.de> 17--- 18 .../spec/egl_ext_surface_compression/CMakeLists.gles3.txt | 6 ++++-- 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 55 56