summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/igt-gpu-tools
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-05-24 11:13:36 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-25 22:36:08 +0100
commit83bb5e110d25d2e15faee055a9ad0bde0a90cb09 (patch)
treede5ad4423290edd7c37668ebf97dacb42cce8e9e /meta/recipes-graphics/igt-gpu-tools
parenteb2327bc7df78d983dd3e2b87d884a0750cbe3e0 (diff)
downloadpoky-83bb5e110d25d2e15faee055a9ad0bde0a90cb09.tar.gz
igt-gpu-tools: upgrade 1.25 -> 1.26
Drop patches merged upstream. (From OE-Core rev: 8f97315e2fbec7308b77d5b53077014bbd973c53) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/igt-gpu-tools')
-rw-r--r--meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_edid-Allocate-raw-8-bytes-for-VSDB.patch42
-rw-r--r--meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch38
-rw-r--r--meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb8
3 files changed, 3 insertions, 85 deletions
diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_edid-Allocate-raw-8-bytes-for-VSDB.patch b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_edid-Allocate-raw-8-bytes-for-VSDB.patch
deleted file mode 100644
index 38bd4550a3..0000000000
--- a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/0001-lib-igt_edid-Allocate-raw-8-bytes-for-VSDB.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 606349860d27492c328752dca5a3784c0e9a6d24 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Feb 2021 11:05:45 -0800
4Subject: [PATCH i-g-t] lib/igt_edid: Allocate raw 8-bytes for VSDB
5
6hdmi_vsdb is an element of cea_vsdb which makes the size of cea_vsdb to
7be 8 ( 3bytes ieee_oui ) + ( 5bytes hdmi_vsdb struct), its true that we
8only use 7 bytes technically we can only allocate 7byte array but since
9we are writing to elements of hdmi_vsdb struct which is sitting at offet
104-8 in cea_vsdb, compiler thinks we have an element which is out of
11array bounds since out allocated size is 7bytes
12
13This errors out
14../git/lib/igt_edid.c:365:13: error: array subscript 'struct hdmi_vsdb[0]' is partly outside array bounds of 'char[7]' [-Werror=array-bounds]
15 365 | hdmi->src_phy_addr[0] = 0x10;
16 | ^~
17
18allocating one extra byte matches with size of cea_vsdb and compiler is
19happy
20
21Upstream-Status: Submitted [https://lists.freedesktop.org/archives/igt-dev/2021-February/029446.html]
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23---
24 lib/igt_edid.c | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27diff --git a/lib/igt_edid.c b/lib/igt_edid.c
28index 1c85486d..ce09cc47 100644
29--- a/lib/igt_edid.c
30+++ b/lib/igt_edid.c
31@@ -351,7 +351,7 @@ void cea_sad_init_pcm(struct cea_sad *sad, int channels,
32 const struct cea_vsdb *cea_vsdb_get_hdmi_default(size_t *size)
33 {
34 /* We'll generate a VSDB with 2 extension fields. */
35- static char raw[CEA_VSDB_HDMI_MIN_SIZE + 2] = {0};
36+ static char raw[CEA_VSDB_HDMI_MIN_SIZE + 3] = {0};
37 struct cea_vsdb *vsdb;
38 struct hdmi_vsdb *hdmi;
39
40--
412.30.1
42
diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch
deleted file mode 100644
index 39e36d8737..0000000000
--- a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools/reproducibility.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1meson: Allow source location to be configurable
2
3Hardcoding a build source path into a binary when cross compiling isn't
4appropriate and breaks build reproducibility. Allow the srcdir to be
5specified by an optional configuration option to meson.
6
7Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
8Upstream-Status: Submitted [https://lists.freedesktop.org/archives/igt-dev/2021-February/029443.html]
9
10Index: git/lib/meson.build
11===================================================================
12--- git.orig/lib/meson.build
13+++ git/lib/meson.build
14@@ -122,7 +122,11 @@ if chamelium.found()
15 lib_sources += 'igt_chamelium_stream.c'
16 endif
17
18-srcdir = join_paths(meson.source_root(), 'tests')
19+if get_option('srcdir') != ''
20+ srcdir = join_paths(get_option('srcdir'), 'tests')
21+else
22+ srcdir = join_paths(meson.source_root(), 'tests')
23+endif
24
25 lib_version = vcs_tag(input : 'version.h.in', output : 'version.h',
26 fallback : 'NO-GIT',
27Index: git/meson_options.txt
28===================================================================
29--- git.orig/meson_options.txt
30+++ git/meson_options.txt
31@@ -50,3 +50,7 @@ option('use_rpath',
32 type : 'boolean',
33 value : false,
34 description : 'Set runpath on installed executables for libigt.so')
35+
36+option('srcdir',
37+ type : 'string',
38+ description : 'Path to source code to be compiled into binaries (optional)')
diff --git a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
index 1cc94cf993..5ab0498f7a 100644
--- a/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
+++ b/meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb
@@ -9,12 +9,10 @@ LICENSE = "MIT"
9 9
10inherit meson 10inherit meson
11 11
12SRCREV = "d16ad07e7f2a028e14d61f570931c87fa5ce404c" 12SRCREV = "203def046b466fb2da67f9f15552d84e1c0b41f2"
13PV = "1.25+git${SRCPV}" 13PV = "1.26"
14 14
15SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https \ 15SRC_URI = "git://gitlab.freedesktop.org/drm/igt-gpu-tools.git;protocol=https"
16 file://0001-lib-igt_edid-Allocate-raw-8-bytes-for-VSDB.patch \
17 file://reproducibility.patch"
18 16
19S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
20 18