Hello community,

here is the log from the commit of package libpciaccess for openSUSE:Factory 
checked in at 2013-08-04 16:55:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libpciaccess (Old)
 and      /work/SRC/openSUSE:Factory/.libpciaccess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libpciaccess"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libpciaccess/libpciaccess.changes        
2013-03-22 11:29:10.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libpciaccess.new/libpciaccess.changes   
2013-08-04 16:55:21.000000000 +0200
@@ -1,0 +2,7 @@
+Fri Aug  2 12:38:30 UTC 2013 - sndir...@suse.com
+
+- u_libpciaccess-vgaarb-add-function-to-get-default-vga-device-and-it.patch:
+  Reenable default device when shutting down VGA arbitration.
+  (bnc#714677, bnc#832973).
+
+-------------------------------------------------------------------

New:
----
  u_libpciaccess-vgaarb-add-function-to-get-default-vga-device-and-it.patch

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

Other differences:
------------------
++++++ libpciaccess.spec ++++++
--- /var/tmp/diff_new_pack.yR8YSG/_old  2013-08-04 16:55:21.000000000 +0200
+++ /var/tmp/diff_new_pack.yR8YSG/_new  2013-08-04 16:55:21.000000000 +0200
@@ -28,6 +28,7 @@
 #Git-Clone:    git://anongit.freedesktop.org/xorg/lib/libpciaccess
 #Git-Web:      http://cgit.freedesktop.org/xorg/lib/libpciaccess/
 Source:         
http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
+Patch0:         
u_libpciaccess-vgaarb-add-function-to-get-default-vga-device-and-it.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 #git#BuildRequires:    autoconf >= 2.60, automake, libtool
 BuildRequires:  pkgconfig
@@ -62,6 +63,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure --with-pciids-path=%_datadir --disable-static

++++++ 
u_libpciaccess-vgaarb-add-function-to-get-default-vga-device-and-it.patch ++++++
From: Egbert Eich <e...@freedesktop.org>
Author: Egbert Eich <e...@suse.de>
Date: Sun, 28 Aug 2011 19:53:02 +0200
Patch-Mainline: "To be upstreamed."
Subject: [PATCH] vgaarb: add function to get default vga device and it's 
decodes.

Signed-off-by: Egbert Eich <e...@freedesktop.org>
---
 src/common_vgaarb.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

Index: libpciaccess-0.13.1/src/common_vgaarb.c
===================================================================
--- libpciaccess-0.13.1.orig/src/common_vgaarb.c
+++ libpciaccess-0.13.1/src/common_vgaarb.c
@@ -153,7 +153,11 @@ pci_device_vgaarb_fini(void)
 {
     if (!pci_sys)
         return;
-
+    if (pci_device_vgaarb_set_target(NULL) < 0 ||
+       pci_device_vgaarb_lock() < 0 ||
+       pci_device_vgaarb_unlock() < 0) {
+       fprintf(stderr, "VGA Arbitration: Cannot restore default device.\n");
+    }
     close(pci_sys->vgaarb_fd);
 }
 
@@ -331,6 +335,11 @@ pci_device_vgaarb_unlock(void)
 int pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count, int 
*rsrc_decodes)
 {
     *vga_count = pci_sys->vga_count;
+    
+    if (!rsrc_decodes)
+        return 0;
+    if (!dev)
+        dev = pci_sys->vga_default_dev;
     if (!dev)
         return 0;
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to