Hello community, here is the log from the commit of package xf86-video-amdgpu for openSUSE:Factory checked in at 2016-02-24 18:42:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xf86-video-amdgpu (Old) and /work/SRC/openSUSE:Factory/.xf86-video-amdgpu.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xf86-video-amdgpu" Changes: -------- --- /work/SRC/openSUSE:Factory/xf86-video-amdgpu/xf86-video-amdgpu.changes 2015-11-24 22:33:57.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.xf86-video-amdgpu.new/xf86-video-amdgpu.changes 2016-02-24 18:43:00.000000000 +0100 @@ -1,0 +2,11 @@ +Tue Feb 23 18:19:10 UTC 2016 - [email protected] + +- update to 1.0.1 +* sync: Check if miSyncShmScreenInit symbol is resolved at runtime +* Only map front buffer if glamor acceleration is disabled (v2) +* Don't advertise any PRIME offloading capabilities without acceleration +* Load fb module before glamoregl/shadow modules +* HAS_DIRTYTRACKING_ROTATION also supports multiple CRTCs +* Check for NULL koutput in drmmode_output_dpms + +------------------------------------------------------------------- Old: ---- xf86-video-amdgpu-1.0.0.tar.bz2 New: ---- xf86-video-amdgpu-1.0.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xf86-video-amdgpu.spec ++++++ --- /var/tmp/diff_new_pack.KvI0wv/_old 2016-02-24 18:43:01.000000000 +0100 +++ /var/tmp/diff_new_pack.KvI0wv/_new 2016-02-24 18:43:01.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package xf86-video-amdgpu # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,7 +17,7 @@ Name: xf86-video-amdgpu -Version: 1.0.0 +Version: 1.0.1 Release: 0 Summary: AMDGPU video driver for the Xorg X server License: MIT ++++++ xf86-video-amdgpu-1.0.0.tar.bz2 -> xf86-video-amdgpu-1.0.1.tar.bz2 ++++++ ++++ 20457 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xf86-video-amdgpu-1.0.0/ChangeLog new/xf86-video-amdgpu-1.0.1/ChangeLog --- old/xf86-video-amdgpu-1.0.0/ChangeLog 2015-11-19 09:32:40.000000000 +0100 +++ new/xf86-video-amdgpu-1.0.1/ChangeLog 2016-02-19 09:35:58.000000000 +0100 @@ -1,3 +1,100 @@ +commit d68b3073a9627a81b047e9bdd4b5569359df898d +Author: Michel Dänzer <[email protected]> +Date: Fri Feb 19 11:53:02 2016 +0900 + + Bump version for 1.0.1 release + +commit c25a48b68695af71dddbdb6d239b2d0ec386db9c +Author: Michel Dänzer <[email protected]> +Date: Mon Feb 15 18:41:51 2016 +0900 + + HAS_DIRTYTRACKING_ROTATION also supports multiple CRTCs + + (ported from radeon commit ff9a6b6f079a8419f4e6fadfee778060618bf735) + + Reviewed-by: Alex Deucher <[email protected]> + (cherry picked from commit a36bbfd98b96426bbe0be3923c64da7ec0e565d0) + +commit a05ea868f940b9649ead2333108d69619b9003bf +Author: Michel Dänzer <[email protected]> +Date: Mon Feb 15 18:35:54 2016 +0900 + + Load fb module before glamoregl/shadow modules + + Fixes unresolved symbols on some systems. + + Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93105 + (ported from radeon commit 78fbca095ae9887a2d3de48bb07975e2d1126e68) + + Reviewed-by: Alex Deucher <[email protected]> + (cherry picked from commit a37746ffceaed83e48e48fb05439be7e020dd2ea) + +commit 7729b29b0a76c3e2eacfcb02abcbe115948b2937 +Author: Michel Dänzer <[email protected]> +Date: Mon Feb 15 18:28:13 2016 +0900 + + Don't advertise any PRIME offloading capabilities without acceleration + + Acceleration is required even for display offloading. Trying to enable + display offloading without acceleration resulted in a crash. + + (ported from radeon commit b19417e2fddf4df725951aea5ad5e9558338f59e) + Reviewed-by: Alex Deucher <[email protected]> + + (cherry picked from commit 59c0a6807110eca829c6708e16585a38f39a5c17) + +commit 65ee496c0567ea6aaf947a6098fbf925d2f6b14b +Author: Michel Dänzer <[email protected]> +Date: Tue Jan 26 16:12:28 2016 +0900 + + Only map front buffer if glamor acceleration is disabled (v2) + + Otherwise the front buffer may not be accessible by the CPU, because Mesa + sets the AMDGPU_GEM_CREATE_NO_CPU_ACCESS flag for tiled buffers, because + accessing tiled buffers with the CPU makes little sense. + + v2: Also handle Option "AccelMethod" "none" + + Reviewed-by: Alex Deucher <[email protected]> + (cherry picked from commit a3eac85d812ecc605436e6bd5b9ee7ebf307e3d3) + +commit 076c7b60f2b3700dfc7d94af78b368c00d216532 +Author: Mykola Lysenko <[email protected]> +Date: Wed Jan 13 14:03:55 2016 +0800 + + Initialize drmmode_crtc dpms_mode to DPMSModeOff + + This disables query of disabled pipes for drmWaitVBlank on X start + + Signed-off-by: Mykola Lysenko <[email protected]> + Reviewed-by: Michel Dänzer <[email protected]> + (cherry picked from commit 4eb9cedca080b30c57ded349a397620ee7d0cd46) + +commit a17aca22ef308a58b1759179677b78846da6f4a5 +Author: Michel Dänzer <[email protected]> +Date: Thu Dec 10 18:08:12 2015 +0900 + + sync: Check if miSyncShmScreenInit symbol is resolved at runtime + + It may be disabled in the Xorg build, either explicitly or because the + xshmfence library isn't available. + + Reviewed-by: Alex Deucher <[email protected]> + (cherry picked from commit 1d0b0c1794e65e581a48aa9fb19679d928d82a5d) + +commit ff99645f7ea09fbf3ebe8ae68b8f0d5d2d9b29c9 +Author: Mykola Lysenko <[email protected]> +Date: Wed Dec 23 11:58:47 2015 -0500 + + Check for NULL koutput in drmmode_output_dpms + + This situation happens whit start of usage of DRM DP MST framework, + when connectors created and destroyed dynamically. + + Signed-off-by: Mykola Lysenko <[email protected]> + Reviewed-by: Michel Dänzer <[email protected]> + (cherry picked from commit f4107f67f147e2500582fc36cf0f0f76bc1ef098) + commit 755e6ff2337cf615e3ba0854ccd533baec7144db Author: Michel Dänzer <[email protected]> Date: Thu Nov 19 17:28:19 2015 +0900 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xf86-video-amdgpu-1.0.0/config.h.in new/xf86-video-amdgpu-1.0.1/config.h.in --- old/xf86-video-amdgpu-1.0.0/config.h.in 2015-11-19 09:28:04.000000000 +0100 +++ new/xf86-video-amdgpu-1.0.1/config.h.in 2016-02-19 04:09:56.000000000 +0100 @@ -65,8 +65,7 @@ /* Have xorg_list API */ #undef HAVE_XORG_LIST -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ +/* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xf86-video-amdgpu-1.0.0/configure.ac new/xf86-video-amdgpu-1.0.1/configure.ac --- old/xf86-video-amdgpu-1.0.0/configure.ac 2015-11-19 09:27:40.000000000 +0100 +++ new/xf86-video-amdgpu-1.0.1/configure.ac 2016-02-19 04:09:37.000000000 +0100 @@ -23,7 +23,7 @@ # Initialize Autoconf AC_PREREQ([2.60]) AC_INIT([xf86-video-amdgpu], - [1.0.0], + [1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xf86-video-amdgpu]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xf86-video-amdgpu-1.0.0/src/amdgpu_kms.c new/xf86-video-amdgpu-1.0.1/src/amdgpu_kms.c --- old/xf86-video-amdgpu-1.0.0/src/amdgpu_kms.c 2015-11-19 09:24:14.000000000 +0100 +++ new/xf86-video-amdgpu-1.0.1/src/amdgpu_kms.c 2016-02-19 03:55:06.000000000 +0100 @@ -663,25 +663,23 @@ static void AMDGPUSetupCapabilities(ScrnInfoPtr pScrn) { #ifdef AMDGPU_PIXMAP_SHARING + AMDGPUInfoPtr info = AMDGPUPTR(pScrn); AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(pScrn); uint64_t value; int ret; pScrn->capabilities = 0; + + /* PRIME offloading requires acceleration */ + if (!info->use_glamor) + return; + ret = drmGetCap(pAMDGPUEnt->fd, DRM_CAP_PRIME, &value); if (ret == 0) { - AMDGPUInfoPtr info = AMDGPUPTR(pScrn); - - if (value & DRM_PRIME_CAP_EXPORT) { - pScrn->capabilities |= RR_Capability_SourceOutput; - if (info->use_glamor && info->dri2.available) - pScrn->capabilities |= RR_Capability_SinkOffload; - } - if (value & DRM_PRIME_CAP_IMPORT) { - pScrn->capabilities |= RR_Capability_SinkOutput; - if (info->use_glamor && info->dri2.available) - pScrn->capabilities |= RR_Capability_SourceOffload; - } + if (value & DRM_PRIME_CAP_EXPORT) + pScrn->capabilities |= RR_Capability_SourceOutput | RR_Capability_SinkOffload; + if (value & DRM_PRIME_CAP_IMPORT) + pScrn->capabilities |= RR_Capability_SinkOutput | RR_Capability_SourceOffload; } #endif } @@ -785,6 +783,10 @@ goto fail; } + /* Get ScreenInit function */ + if (!xf86LoadSubModule(pScrn, "fb")) + return FALSE; + if (!AMDGPUPreInitAccel_KMS(pScrn)) goto fail; @@ -870,10 +872,6 @@ /* Set display resolution */ xf86SetDpi(pScrn, 0, 0); - /* Get ScreenInit function */ - if (!xf86LoadSubModule(pScrn, "fb")) - return FALSE; - if (!xf86SetGamma(pScrn, zeros)) return FALSE; @@ -1415,7 +1413,8 @@ return FALSE; } - if (amdgpu_bo_map(pScrn, info->front_buffer)) { + if (!info->use_glamor && + amdgpu_bo_map(pScrn, info->front_buffer) != 0) { ErrorF("Failed to map front buffer memory\n"); return FALSE; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xf86-video-amdgpu-1.0.0/src/amdgpu_sync.c new/xf86-video-amdgpu-1.0.1/src/amdgpu_sync.c --- old/xf86-video-amdgpu-1.0.0/src/amdgpu_sync.c 2015-11-19 09:24:14.000000000 +0100 +++ new/xf86-video-amdgpu-1.0.1/src/amdgpu_sync.c 2016-02-19 03:55:06.000000000 +0100 @@ -87,6 +87,13 @@ AMDGPUInfoPtr info = AMDGPUPTR(scrn); SyncScreenFuncsPtr screen_funcs; + if (!xf86LoaderCheckSymbol("miSyncShmScreenInit")) { + xf86DrvMsg(scrn->scrnIndex, X_WARNING, + "SYNC extension fences disabled because " + "miSyncShmScreenInit symbol unresolved\n"); + return FALSE; + } + if (!miSyncShmScreenInit(screen)) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, "SYNC extension fences disabled because " diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xf86-video-amdgpu-1.0.0/src/drmmode_display.c new/xf86-video-amdgpu-1.0.1/src/drmmode_display.c --- old/xf86-video-amdgpu-1.0.0/src/drmmode_display.c 2015-11-19 09:24:14.000000000 +0100 +++ new/xf86-video-amdgpu-1.0.1/src/drmmode_display.c 2016-02-19 03:55:06.000000000 +0100 @@ -905,7 +905,7 @@ if (max_height < iter->mode.VDisplay) max_height = iter->mode.VDisplay; } -#ifndef HAS_DIRTYTRACKING2 +#if !defined(HAS_DIRTYTRACKING_ROTATION) && !defined(HAS_DIRTYTRACKING2) if (iter != crtc) { ErrorF ("Cannot do multiple crtcs without X server dirty tracking 2 interface\n"); @@ -993,6 +993,7 @@ drmmode_crtc->mode_crtc = drmModeGetCrtc(pAMDGPUEnt->fd, mode_res->crtcs[num]); drmmode_crtc->drmmode = drmmode; + drmmode_crtc->dpms_mode = DPMSModeOff; crtc->driver_private = drmmode_crtc; drmmode_crtc_hw_id(crtc); @@ -1117,6 +1118,9 @@ drmModeConnectorPtr koutput = drmmode_output->mode_output; AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(output->scrn); + if (!koutput) + return; + if (mode != DPMSModeOn && crtc) drmmode_do_crtc_dpms(crtc, mode); @@ -1737,7 +1741,7 @@ goto fail; } - if (amdgpu_bo_map(scrn, info->front_buffer)) { + if (!info->use_glamor && amdgpu_bo_map(scrn, info->front_buffer) != 0) { xf86DrvMsg(scrn->scrnIndex, X_ERROR, "Failed to map front buffer memory\n"); goto fail;
