From ba3c50f592b96253000d6aef31f946d647d8a4cd Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 7 Mar 2020 20:06:29 +0100 Subject: [PATCH] package/piglit: fix GL tests Fixes: - http://autobuild.buildroot.org/results/3355e4dc02b07ccfd9fe9b5cafb70c01fc88c158 Add an upstream patch to ensure tests needing GLESv3 are only built when that is available. Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- ...tests-fix-test-build-requiring-gles3.patch | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 package/piglit/0001-tests-fix-test-build-requiring-gles3.patch diff --git a/package/piglit/0001-tests-fix-test-build-requiring-gles3.patch b/package/piglit/0001-tests-fix-test-build-requiring-gles3.patch new file mode 100644 index 0000000000..4183f23432 --- /dev/null +++ b/package/piglit/0001-tests-fix-test-build-requiring-gles3.patch @@ -0,0 +1,49 @@ +From 8417ca1725d523493d8f6782699273dc056888ac Mon Sep 17 00:00:00 2001 +From: Lionel Landwerlin +Date: Thu, 1 Aug 2019 20:51:55 +0300 +Subject: [PATCH] tests: fix test build requiring gles3 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This should be built only on gles3. + +Signed-off-by: Lionel Landwerlin +Reported-by: Krzysztof Raszkowski +Fixes: ef761094be ("tests: Reproducer for 110796") +Reviewed-by: Tapani Pälli +[Retrieved from: +https://gitlab.freedesktop.org/mesa/piglit/commit/8417ca1725d523493d8f6782699273dc056888ac] +Signed-off-by: Fabrice Fontaine +--- + tests/shaders/CMakeLists.gl.txt | 1 - + tests/shaders/CMakeLists.gles3.txt | 1 + + 2 files changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/shaders/CMakeLists.gl.txt b/tests/shaders/CMakeLists.gl.txt +index f1512f9cf..a299001cb 100644 +--- a/tests/shaders/CMakeLists.gl.txt ++++ b/tests/shaders/CMakeLists.gl.txt +@@ -43,7 +43,6 @@ IF (UNIX) + ENDIF (UNIX) + piglit_add_executable (glsl-arb-fragment-coord-conventions glsl-arb-fragment-coord-conventions.c) + piglit_add_executable (glsl-bindattriblocation glsl-bindattriblocation.c) +-piglit_add_executable (glsl-bug-110796 glsl-bug-110796.c) + piglit_add_executable (glsl-bug-22603 glsl-bug-22603.c) + piglit_add_executable (glsl-dlist-getattriblocation glsl-dlist-getattriblocation.c) + piglit_add_executable (glsl-explicit-location-01 glsl-explicit-location-01.c) +diff --git a/tests/shaders/CMakeLists.gles3.txt b/tests/shaders/CMakeLists.gles3.txt +index 18b8c3534..c8ccfad42 100644 +--- a/tests/shaders/CMakeLists.gles3.txt ++++ b/tests/shaders/CMakeLists.gles3.txt +@@ -3,6 +3,7 @@ link_libraries( + ) + + piglit_add_executable (built-in-constants_${piglit_target_api} built-in-constants.c parser_utils.c) ++piglit_add_executable (glsl-bug-110796 glsl-bug-110796.c) + piglit_add_executable(shader_runner_${piglit_target_api} shader_runner.c parser_utils.c) + + # vim: ft=cmake: +-- +2.24.1 + -- 2.30.2