Skip to contentSkip to conversation

libdrm: add version 2.4.66

PATCH New Denys Dmytriyenko 1 participant 3 messages Jan 22, 2016

lore
Share & tools
lore
#1 lore raw

PATCH 2/3 libdrm: update bbappend and the patch for the new version

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 ...001-Add-option-to-run-a-test-indefinitely.patch | 30 +++++++++++-----------
 ...bdrm_2.4.59.bbappend => libdrm_2.4.66.bbappend} |  0
 2 files changed, 15 insertions(+), 15 deletions(-)
 rename meta-arago-distro/recipes-graphics/drm/{libdrm_2.4.59.bbappend => libdrm_2.4.66.bbappend} (100%)
meta-arago-distro/recipes-graphics/drm/libdrm/0001-Add-option-to-run-a-test-indefinitely.patch +15 -15
index d74d713..6e3dfd4 100644
@@ -16,19 +16,19 @@ Signed-off-by: Denys Dmytriyenko <[email protected]>
  1 file changed, 8 insertions(+), 4 deletions(-)
 
 diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
-index 4b9cf2f..208af86 100644
+index 22e3e81..a74e39a 100644
 --- a/tests/modetest/modetest.c
 +++ b/tests/modetest/modetest.c
-@@ -1163,7 +1163,7 @@ static void clear_cursors(struct device *dev)
- 	cursor_stop();
+@@ -1181,7 +1181,7 @@ static void clear_cursors(struct device *dev)
+ 		bo_destroy(dev->mode.cursor_bo);
  }
  
 -static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned int count)
 +static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned int count, int dont_stop)
  {
- 	uint32_t handles[4], pitches[4], offsets[4] = {0}; /* we only use [0] */
+ 	uint32_t handles[4] = {0}, pitches[4] = {0}, offsets[4] = {0};
  	unsigned int other_fb_id;
-@@ -1241,7 +1241,7 @@ static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned
+@@ -1258,7 +1258,7 @@ static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned
  			fprintf(stderr, "select timed out or error (ret %d)\n",
  				ret);
  			continue;
@@ -37,8 +37,8 @@ index 4b9cf2f..208af86 100644
  			break;
  		}
  #endif
-@@ -1442,7 +1442,7 @@ static int cursor_supported(void)
- 	return 1;
+@@ -1492,7 +1492,7 @@ static int pipe_resolve_connectors(struct device *dev, struct pipe_arg *pipe)
+ 	return 0;
  }
  
 -static char optstr[] = "cdD:efM:P:ps:Cvw:";
@@ -46,25 +46,25 @@ index 4b9cf2f..208af86 100644
  
  int main(int argc, char **argv)
  {
-@@ -1458,6 +1458,7 @@ int main(int argc, char **argv)
+@@ -1507,6 +1507,7 @@ int main(int argc, char **argv)
  	char *module = NULL;
  	unsigned int i;
- 	int count = 0, plane_count = 0;
-+  int dont_stop= 0;
+ 	unsigned int count = 0, plane_count = 0;
++	int dont_stop= 0;
  	unsigned int prop_count = 0;
  	struct pipe_arg *pipe_args = NULL;
  	struct plane_arg *plane_args = NULL;
-@@ -1542,6 +1543,9 @@ int main(int argc, char **argv)
+@@ -1594,6 +1595,9 @@ int main(int argc, char **argv)
  
  			prop_count++;
  			break;
-+    case 't':
-+      dont_stop = 1;
-+      break;
++		case 't':
++			dont_stop = 1;
++			break;
  		default:
  			usage(argv[0]);
  			break;
-@@ -1626,7 +1630,7 @@ int main(int argc, char **argv)
+@@ -1666,7 +1670,7 @@ int main(int argc, char **argv)
  			set_cursors(&dev, pipe_args, count);
  
  		if (test_vsync)
meta-arago-distro/recipes-graphics/drm/libdrm_2.4.66.bbappend renamed from meta-arago-distro/recipes-graphics/drm/libdrm_2.4.59.bbappend +0 -0
similarity index 100%
rename from meta-arago-distro/recipes-graphics/drm/libdrm_2.4.59.bbappend
rename to meta-arago-distro/recipes-graphics/drm/libdrm_2.4.66.bbappend
Signature · 1 line
2.2.0
#0 lore raw

PATCH 1/3 libdrm: add version 2.4.66

From: Denys Dmytriyenko <[email protected]>

Overlay locally latest version needed for DDK 1.14 work.
Taken from oe-core/master verbatim and can be dropped once migrated there.

---
 ...tests-kms-steal-crtc-Include-sys-select.h.patch | 33 ++++++++++++++++
 .../recipes-graphics/drm/libdrm/installtests.patch | 15 ++++++++
 .../recipes-graphics/drm/libdrm_2.4.66.bb          | 45 ++++++++++++++++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/drm/libdrm/0001-tests-kms-steal-crtc-Include-sys-select.h.patch
 create mode 100644 meta-arago-extras/recipes-graphics/drm/libdrm/installtests.patch
 create mode 100644 meta-arago-extras/recipes-graphics/drm/libdrm_2.4.66.bb
meta-arago-extras/recipes-graphics/drm/libdrm/0001-tests-kms-steal-crtc-Include-sys-select.h.patch new file +33 -0
new file mode 100644
index 0000000..c18228e
@@ -0,0 +1,33 @@
+From 46fb5516fb0ab17bcf46a0306a11e8966bb36e14 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 29 Dec 2015 22:17:21 +0000
+Subject: [PATCH] tests/kms-steal-crtc: Include sys/select.h
+
+Fixes errors e.g.
+
+error: implicit declaration of function 'select'
+
+and missing definitions of FD_* defines
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Submitted
+
+ tests/kms/kms-steal-crtc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/kms/kms-steal-crtc.c b/tests/kms/kms-steal-crtc.c
+index 2f7f327..24d70ab 100644
+--- a/tests/kms/kms-steal-crtc.c
++++ b/tests/kms/kms-steal-crtc.c
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <sys/select.h>
+ 
+ #include <drm_fourcc.h>
+ 
+-- 
+2.6.4
+
meta-arago-extras/recipes-graphics/drm/libdrm/installtests.patch new file +15 -0
new file mode 100644
index 0000000..30e0a61
@@ -0,0 +1,15 @@
+tests: also install tests app
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Yu Ke <[email protected]>
+
+Index: libdrm-2.4.66/tests/Makefile.am
+===================================================================
+--- libdrm-2.4.66.orig/tests/Makefile.am
++++ libdrm-2.4.66/tests/Makefile.am
+@@ -73,3 +73,4 @@ TESTS +=					\
+ endif
+ 
+ check_PROGRAMS += $(TESTS)
++bin_PROGRAMS = $(check_PROGRAMS)
meta-arago-extras/recipes-graphics/drm/libdrm_2.4.66.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.2.0
#2 lore raw

PATCH 3/3 arago-prefs: set preference for the new version of libdrm

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/conf/distro/include/arago-prefs.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/conf/distro/include/arago-prefs.inc +1 -1
index 874bea5..a1213ec 100644
@@ -20,7 +20,7 @@ include conf/distro/include/qt5-versions.inc
 PREFERRED_PROVIDER_ltp-ddt = "ltp-ddt"
 
 # Use the latest version of libdrm
-PREFERRED_VERSION_libdrm = "2.4.59"
+PREFERRED_VERSION_libdrm = "2.4.66"
 
 PREFERRED_PROVIDER_virtual/gettext = "gettext"
 
Signature · 1 line
2.2.0