Hello community,

here is the log from the commit of package xrandr for openSUSE:Factory checked 
in at 2017-06-04 01:45:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xrandr (Old)
 and      /work/SRC/openSUSE:Factory/.xrandr.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xrandr"

Sun Jun  4 01:45:44 2017 rev:12 rq:499434 version:1.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/xrandr/xrandr.changes    2016-03-01 
09:33:33.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.xrandr.new/xrandr.changes       2017-06-04 
01:45:49.750877744 +0200
@@ -1,0 +2,9 @@
+Mon May 29 15:02:34 UTC 2017 - sndir...@suse.com
+
+- includes everything needed for missing sle issue entries:
+  fate #320388 (bsc#1041382)
+- Add xrandr-print-outputs-per-provider.patch from sle12. This makes
+  the --listproviders option in xrandr(1) also print which outputs are
+  supported by each provider or GPU. (patch by feder...@suse.com)
+
+-------------------------------------------------------------------

New:
----
  xrandr-print-outputs-per-provider.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xrandr.spec ++++++
--- /var/tmp/diff_new_pack.0yXwlO/_old  2017-06-04 01:45:50.290801455 +0200
+++ /var/tmp/diff_new_pack.0yXwlO/_new  2017-06-04 01:45:50.294800891 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xrandr
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 Group:          System/X11/Utilities
 Url:            http://xorg.freedesktop.org/
 Source0:        
http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
+# PATCH-FEATURE-UPSTREAM xrandr-print-outputs-per-provider.patch 
feder...@suse.com - Make the --listproviders option also print which outputs 
are supported by each provider
+Patch1:         xrandr-print-outputs-per-provider.patch
 BuildRequires:  pkg-config
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
@@ -44,6 +46,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %configure

++++++ xrandr-print-outputs-per-provider.patch ++++++
Index: xrandr-1.5.0/xrandr.c
===================================================================
--- xrandr-1.5.0.orig/xrandr.c
+++ xrandr-1.5.0/xrandr.c
@@ -2635,6 +2635,53 @@ get_monitors(Bool get_active)
     monitors->monitors = m;
 }
 
+static void
+print_providers (Bool current)
+{
+    int k;
+
+    if (!has_1_4) {
+       printf ("RandR 1.4 not supported\n");
+       exit (0);
+    }
+
+    get_screen (current);
+    get_crtcs ();
+    get_outputs ();
+    get_providers ();
+
+    if (providers) {
+       int j;
+       int i;
+
+       printf("Providers: number : %d\n", num_providers);
+
+       for (j = 0; j < num_providers; j++) {
+           provider_t *provider = &providers[j];
+           XRRProviderInfo *info = provider->info;
+
+           printf("Provider %d: id: 0x%x; cap: 0x%x (", j, 
(int)provider->provider.xid, info->capabilities);
+           for (k = 0; k < 4; k++)
+               if (info->capabilities & (1 << k)) {
+                   printf("%s", capability_name(1<<k));
+                   if ((info->capabilities & (0xff << (k + 1))) != 0)
+                       printf (", ");
+               }
+           printf (");");
+
+           printf(" crtcs: %d; outputs: %d; associated providers: %d; name: 
%s\n", info->ncrtcs, info->noutputs, info->nassociatedproviders, info->name);
+
+           for (i = 0; i < info->noutputs; i++) {
+               output_t *output = find_output_by_xid (info->outputs[i]);
+               if (output)
+                   printf ("    output %s\n", output->output.string);
+               else
+                   printf ("    output 0x%x\n", (int)info->outputs[i]);
+           }
+       }
+    }
+}
+
 int
 main (int argc, char **argv)
 {
@@ -3924,35 +3971,8 @@ main (int argc, char **argv)
        }
        exit (0);
     }
-    if (list_providers) {
-       int k;
-
-       if (!has_1_4) {
-           printf ("RandR 1.4 not supported\n");
-           exit (0);
-       }
-
-       get_screen (current);
-       get_providers ();
-
-       if (providers) {
-           int j;
-
-           printf("Providers: number : %d\n", num_providers);
-
-           for (j = 0; j < num_providers; j++) {
-               provider_t *provider = &providers[j];
-               XRRProviderInfo *info = provider->info;
-
-               printf("Provider %d: id: 0x%x cap: 0x%x", j, 
(int)provider->provider.xid, info->capabilities);
-               for (k = 0; k < 4; k++)
-                       if (info->capabilities & (1 << k))
-                               printf(", %s", capability_name(1<<k));
-
-               printf(" crtcs: %d outputs: %d associated providers: %d 
name:%s\n", info->ncrtcs, info->noutputs, info->nassociatedproviders, 
info->name);
-           }
-       }
-    }
+    if (list_providers)
+       print_providers (current);
     if (list_monitors || list_active_monitors) {
 
        if (!has_1_5) {

Reply via email to