* [ptxdist] [PATCH] libdrm: version bump 2.4.46 -> 2.4.52
@ 2014-01-24 10:18 Lucas Stach
0 siblings, 0 replies; only message in thread
From: Lucas Stach @ 2014-01-24 10:18 UTC (permalink / raw)
To: ptxdist
- some freedreno updates
- extented modetest capabilities
- also add a patch to make modeprint output look nicer
(on it's way to upstream)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
...01-modeprint-pretty-print-connector-names.patch | 64 ++++++++++++++++++++++
patches/libdrm-2.4.52/series | 4 ++
rules/libdrm.make | 4 +-
3 files changed, 70 insertions(+), 2 deletions(-)
create mode 100644 patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch
create mode 100644 patches/libdrm-2.4.52/series
diff --git a/patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch b/patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch
new file mode 100644
index 000000000000..52bc03c3b281
--- /dev/null
+++ b/patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch
@@ -0,0 +1,64 @@
+From: Lucas Stach <l.stach@pengutronix.de>
+Date: Fri, 17 Jan 2014 11:43:06 +0100
+Subject: [PATCH] modeprint: pretty print connector names
+
+Use same names as the kernel, makes it easier to identify
+connectors in the common case.
+
+Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
+---
+ tests/modeprint/modeprint.c | 28 +++++++++++++++++++++++++++-
+ 1 file changed, 27 insertions(+), 1 deletion(-)
+
+diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
+index 545ff40a98d4..6f0d03905a46 100644
+--- a/tests/modeprint/modeprint.c
++++ b/tests/modeprint/modeprint.c
+@@ -41,6 +41,8 @@
+ #include "xf86drm.h"
+ #include "xf86drmMode.h"
+
++#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
++
+ int connectors;
+ int full_props;
+ int edid;
+@@ -140,13 +142,37 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
+ return 0;
+ }
+
++static const char * const output_names[] = { "None",
++ "VGA",
++ "DVI-I",
++ "DVI-D",
++ "DVI-A",
++ "Composite",
++ "SVIDEO",
++ "LVDS",
++ "Component",
++ "DIN",
++ "DP",
++ "HDMI-A",
++ "HDMI-B",
++ "TV",
++ "eDP",
++ "Virtual",
++ "DSI",
++};
++
+ int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uint32_t id)
+ {
+ int i = 0;
+ struct drm_mode_modeinfo *mode = NULL;
+ drmModePropertyPtr props;
+
+- printf("Connector: %d-%d\n", connector->connector_type, connector->connector_type_id);
++ if (connector->connector_type < ARRAY_SIZE(output_names))
++ printf("Connector: %s-%d\n", output_names[connector->connector_type],
++ connector->connector_type_id);
++ else
++ printf("Connector: %d-%d\n", connector->connector_type,
++ connector->connector_type_id);
+ printf("\tid : %i\n", id);
+ printf("\tencoder id : %i\n", connector->encoder_id);
+ printf("\tconn : %s\n", getConnectionText(connector->connection));
diff --git a/patches/libdrm-2.4.52/series b/patches/libdrm-2.4.52/series
new file mode 100644
index 000000000000..9940729949d5
--- /dev/null
+++ b/patches/libdrm-2.4.52/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-modeprint-pretty-print-connector-names.patch
+# 4f0e0cdf8cef84484a8d5999594ce6e9 - git-ptx-patches magic
diff --git a/rules/libdrm.make b/rules/libdrm.make
index e6e7820007d4..4245be3a4714 100644
--- a/rules/libdrm.make
+++ b/rules/libdrm.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBDRM) += libdrm
#
# Paths and names
#
-LIBDRM_VERSION := 2.4.46
-LIBDRM_MD5 := b454a43366eb386294f87a5cd16699e6
+LIBDRM_VERSION := 2.4.52
+LIBDRM_MD5 := cb3547ccb435be6d80df68840da6b2ee
LIBDRM := libdrm-$(LIBDRM_VERSION)
LIBDRM_SUFFIX := tar.gz
LIBDRM_URL := http://dri.freedesktop.org/libdrm/$(LIBDRM).$(LIBDRM_SUFFIX)
--
1.8.5.2
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-24 10:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-24 10:18 [ptxdist] [PATCH] libdrm: version bump 2.4.46 -> 2.4.52 Lucas Stach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox