diff options
| -rw-r--r-- | meta/recipes-graphics/virglrenderer/virglrenderer/0001-meson.build-use-python3-directly-for-python.patch | 6 | ||||
| -rw-r--r-- | meta/recipes-graphics/virglrenderer/virglrenderer/0001-vtest-Fix-undefined-behavior-with-clang.patch | 56 | ||||
| -rw-r--r-- | meta/recipes-graphics/virglrenderer/virglrenderer_1.0.1.bb (renamed from meta/recipes-graphics/virglrenderer/virglrenderer_1.0.0.bb) | 3 |
3 files changed, 4 insertions, 61 deletions
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer/0001-meson.build-use-python3-directly-for-python.patch b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-meson.build-use-python3-directly-for-python.patch index 06379ee716..3e12495970 100644 --- a/meta/recipes-graphics/virglrenderer/virglrenderer/0001-meson.build-use-python3-directly-for-python.patch +++ b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-meson.build-use-python3-directly-for-python.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 2afe24fc95dbb89e99df29ccbe73afa835f58202 Mon Sep 17 00:00:00 2001 | 1 | From dec8cca59124d7f8796b54902482ceb295a71b51 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Mon, 6 Jan 2020 12:44:42 +0100 | 3 | Date: Mon, 6 Jan 2020 12:44:42 +0100 |
| 4 | Subject: [PATCH] meson.build: use 'python3' directly for python | 4 | Subject: [PATCH] meson.build: use 'python3' directly for python |
| @@ -14,10 +14,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | 15 | ||
| 16 | diff --git a/meson.build b/meson.build | 16 | diff --git a/meson.build b/meson.build |
| 17 | index de6d16b5..79cedbf6 100644 | 17 | index 9f91ff2f..2391f89d 100644 |
| 18 | --- a/meson.build | 18 | --- a/meson.build |
| 19 | +++ b/meson.build | 19 | +++ b/meson.build |
| 20 | @@ -68,7 +68,7 @@ flags = [ | 20 | @@ -74,7 +74,7 @@ flags = [ |
| 21 | 21 | ||
| 22 | add_project_arguments(cc.get_supported_arguments(flags), language : 'c') | 22 | add_project_arguments(cc.get_supported_arguments(flags), language : 'c') |
| 23 | 23 | ||
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer/0001-vtest-Fix-undefined-behavior-with-clang.patch b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-vtest-Fix-undefined-behavior-with-clang.patch deleted file mode 100644 index 48488d7be1..0000000000 --- a/meta/recipes-graphics/virglrenderer/virglrenderer/0001-vtest-Fix-undefined-behavior-with-clang.patch +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | From ea328b246d093477cf26a68b42e975aaaef6abad Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 28 Nov 2023 21:55:36 -0800 | ||
| 4 | Subject: [PATCH] vtest: Fix undefined behavior with clang | ||
| 5 | |||
| 6 | This is seen when compiling with CC="clang -D_FORTIFY_SOURCE=2" | ||
| 7 | Move #ifdef outside of printf() call. | ||
| 8 | |||
| 9 | Fixes | ||
| 10 | |||
| 11 | | ../git/vtest/vtest_server.c:244:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] | ||
| 12 | | 244 | #ifdef ENABLE_VENUS | ||
| 13 | | | ^ | ||
| 14 | | ../git/vtest/vtest_server.c:246:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] | ||
| 15 | | 246 | #endif | ||
| 16 | | | ^ | ||
| 17 | |||
| 18 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1309] | ||
| 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 20 | --- | ||
| 21 | vtest/vtest_server.c | 12 ++++++++---- | ||
| 22 | 1 file changed, 8 insertions(+), 4 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c | ||
| 25 | index 1ca7f74f..93d949d7 100644 | ||
| 26 | --- a/vtest/vtest_server.c | ||
| 27 | +++ b/vtest/vtest_server.c | ||
| 28 | @@ -197,6 +197,12 @@ static void vtest_server_parse_args(int argc, char **argv) | ||
| 29 | /* getopt_long stores the option index here. */ | ||
| 30 | int option_index = 0; | ||
| 31 | |||
| 32 | +#ifdef ENABLE_VENUS | ||
| 33 | + char* ven = " [--venus]"; | ||
| 34 | +#else | ||
| 35 | + char* ven = ""; | ||
| 36 | +#endif | ||
| 37 | + | ||
| 38 | do { | ||
| 39 | ret = getopt_long(argc, argv, "", long_options, &option_index); | ||
| 40 | |||
| 41 | @@ -244,10 +250,8 @@ static void vtest_server_parse_args(int argc, char **argv) | ||
| 42 | printf("Usage: %s [--no-fork] [--no-loop-or-fork] [--multi-clients] " | ||
| 43 | "[--use-glx] [--use-egl-surfaceless] [--use-gles] [--no-virgl]" | ||
| 44 | "[--rendernode <dev>] [--socket-path <path>] " | ||
| 45 | -#ifdef ENABLE_VENUS | ||
| 46 | - " [--venus]" | ||
| 47 | -#endif | ||
| 48 | - " [file]\n", argv[0]); | ||
| 49 | + "%s" | ||
| 50 | + " [file]\n", argv[0], ven); | ||
| 51 | exit(EXIT_FAILURE); | ||
| 52 | break; | ||
| 53 | } | ||
| 54 | -- | ||
| 55 | 2.43.0 | ||
| 56 | |||
diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer_1.0.0.bb b/meta/recipes-graphics/virglrenderer/virglrenderer_1.0.1.bb index eb7ba1089f..0501b0c59c 100644 --- a/meta/recipes-graphics/virglrenderer/virglrenderer_1.0.0.bb +++ b/meta/recipes-graphics/virglrenderer/virglrenderer_1.0.1.bb | |||
| @@ -9,10 +9,9 @@ LICENSE = "MIT" | |||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=c81c08eeefd9418fca8f88309a76db10" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=c81c08eeefd9418fca8f88309a76db10" |
| 10 | 10 | ||
| 11 | DEPENDS = "libdrm libepoxy virtual/egl virtual/libgbm" | 11 | DEPENDS = "libdrm libepoxy virtual/egl virtual/libgbm" |
| 12 | SRCREV = "9c9d55ecbe502e0d71ee99529709efcca69aac42" | 12 | SRCREV = "690680e5f0f952e22424fca1538c1b24457a0868" |
| 13 | SRC_URI = "git://gitlab.freedesktop.org/virgl/virglrenderer.git;branch=main;protocol=https \ | 13 | SRC_URI = "git://gitlab.freedesktop.org/virgl/virglrenderer.git;branch=main;protocol=https \ |
| 14 | file://0001-meson.build-use-python3-directly-for-python.patch \ | 14 | file://0001-meson.build-use-python3-directly-for-python.patch \ |
| 15 | file://0001-vtest-Fix-undefined-behavior-with-clang.patch \ | ||
| 16 | " | 15 | " |
| 17 | 16 | ||
| 18 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
