Hello community,

here is the log from the commit of package libdrm for openSUSE:Factory checked 
in at 2018-03-08 10:56:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libdrm (Old)
 and      /work/SRC/openSUSE:Factory/.libdrm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libdrm"

Thu Mar  8 10:56:04 2018 rev:135 rq:583409 version:2.4.91

Changes:
--------
--- /work/SRC/openSUSE:Factory/libdrm/libdrm.changes    2018-02-22 
14:57:18.765084906 +0100
+++ /work/SRC/openSUSE:Factory/.libdrm.new/libdrm.changes       2018-03-08 
10:56:06.016359350 +0100
@@ -1,0 +2,12 @@
+Tue Mar  6 13:41:52 UTC 2018 - [email protected]
+
+- update to 2.4.91
+  + amdgpu: Fix mistake in initial hole size calculation.
+  + amdgpu: mostly revert "use the high VA range if possible v2"
+  + amdgpu: add AMDGPU_VA_RANGE_HIGH
+  + amdgpu: fix "add AMDGPU_VA_RANGE_HIGH"
+  + freedreno: add interface to get buffer address
+  + drm/fourcc: Fix fourcc_mod_code() definition
+  + drm/tegra: Sanitize format modifiers
+
+-------------------------------------------------------------------

Old:
----
  libdrm-2.4.90.tar.bz2

New:
----
  libdrm-2.4.91.tar.bz2

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

Other differences:
------------------
++++++ libdrm.spec ++++++
--- /var/tmp/diff_new_pack.8dCQud/_old  2018-03-08 10:56:06.608338040 +0100
+++ /var/tmp/diff_new_pack.8dCQud/_new  2018-03-08 10:56:06.612337896 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           libdrm
-Version:        2.4.90
+Version:        2.4.91
 Release:        0
 Summary:        Userspace Interface for Kernel DRM Services
 License:        MIT

++++++ libdrm-2.4.90.tar.bz2 -> libdrm-2.4.91.tar.bz2 ++++++
++++ 4890 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/libdrm-2.4.90/amdgpu/amdgpu-symbol-check 
new/libdrm-2.4.91/amdgpu/amdgpu-symbol-check
--- old/libdrm-2.4.90/amdgpu/amdgpu-symbol-check        2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/amdgpu/amdgpu-symbol-check        2018-03-05 
22:06:45.000000000 +0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available 
Makefile.am/libdrm_amdgpuinclude_HEADERS
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk 
'{print $3}' | while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk 
'{print $3}' | while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/amdgpu/amdgpu.h new/libdrm-2.4.91/amdgpu/amdgpu.h
--- old/libdrm-2.4.90/amdgpu/amdgpu.h   2018-02-17 04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/amdgpu/amdgpu.h   2018-03-05 22:06:45.000000000 +0100
@@ -1162,6 +1162,7 @@
  * Flag to request VA address range in the 32bit address space
 */
 #define AMDGPU_VA_RANGE_32_BIT         0x1
+#define AMDGPU_VA_RANGE_HIGH           0x2
 
 /**
  * Allocate virtual address range
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/libdrm-2.4.90/amdgpu/amdgpu_device.c 
new/libdrm-2.4.91/amdgpu/amdgpu_device.c
--- old/libdrm-2.4.90/amdgpu/amdgpu_device.c    2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/amdgpu/amdgpu_device.c    2018-03-05 22:06:45.000000000 
+0100
@@ -264,27 +264,28 @@
                goto cleanup;
        }
 
-       if (dev->dev_info.high_va_offset && dev->dev_info.high_va_max) {
-               start = dev->dev_info.high_va_offset;
-               max = dev->dev_info.high_va_max;
-       } else {
-               start = dev->dev_info.virtual_address_offset;
-               max = dev->dev_info.virtual_address_max;
-       }
-
-       max = MIN2(max, (start & ~0xffffffffULL) + 0x100000000ULL);
+       start = dev->dev_info.virtual_address_offset;
+       max = MIN2(dev->dev_info.virtual_address_max, 0x100000000ULL);
        amdgpu_vamgr_init(&dev->vamgr_32, start, max,
                          dev->dev_info.virtual_address_alignment);
-       dev->address32_hi = start >> 32;
 
        start = max;
-       if (dev->dev_info.high_va_offset && dev->dev_info.high_va_max)
-               max = dev->dev_info.high_va_max;
-       else
-               max = dev->dev_info.virtual_address_max;
+       max = MAX2(dev->dev_info.virtual_address_max, 0x100000000ULL);
        amdgpu_vamgr_init(&dev->vamgr, start, max,
                          dev->dev_info.virtual_address_alignment);
 
+       start = dev->dev_info.high_va_offset;
+       max = MIN2(dev->dev_info.high_va_max, (start & ~0xffffffffULL) +
+                  0x100000000ULL);
+       amdgpu_vamgr_init(&dev->vamgr_high_32, start, max,
+                         dev->dev_info.virtual_address_alignment);
+
+       start = max;
+       max = MAX2(dev->dev_info.high_va_max, (start & ~0xffffffffULL) +
+                  0x100000000ULL);
+       amdgpu_vamgr_init(&dev->vamgr_high, start, max,
+                         dev->dev_info.virtual_address_alignment);
+
        amdgpu_parse_asic_ids(dev);
 
        *major_version = dev->major_version;
@@ -321,7 +322,10 @@
 
        switch (info) {
        case amdgpu_sw_info_address32_hi:
-               *val32 = dev->address32_hi;
+               if (dev->vamgr_high_32.va_max)
+                       *val32 = (dev->vamgr_high_32.va_max - 1) >> 32;
+               else
+                       *val32 = (dev->vamgr_32.va_max - 1) >> 32;
                return 0;
        }
        return -EINVAL;
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/libdrm-2.4.90/amdgpu/amdgpu_internal.h 
new/libdrm-2.4.91/amdgpu/amdgpu_internal.h
--- old/libdrm-2.4.90/amdgpu/amdgpu_internal.h  2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/amdgpu/amdgpu_internal.h  2018-03-05 22:06:45.000000000 
+0100
@@ -73,7 +73,6 @@
        int flink_fd;
        unsigned major_version;
        unsigned minor_version;
-       uint32_t address32_hi;
 
        char *marketing_name;
        /** List of buffer handles. Protected by bo_table_mutex. */
@@ -84,10 +83,14 @@
        pthread_mutex_t bo_table_mutex;
        struct drm_amdgpu_info_device dev_info;
        struct amdgpu_gpu_info info;
-       /** The global VA manager for the whole virtual address space */
+       /** The VA manager for the lower virtual address space */
        struct amdgpu_bo_va_mgr vamgr;
        /** The VA manager for the 32bit address space */
        struct amdgpu_bo_va_mgr vamgr_32;
+       /** The VA manager for the high virtual address space */
+       struct amdgpu_bo_va_mgr vamgr_high;
+       /** The VA manager for the 32bit high address space */
+       struct amdgpu_bo_va_mgr vamgr_high_32;
 };
 
 struct amdgpu_bo {
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/libdrm-2.4.90/amdgpu/amdgpu_vamgr.c new/libdrm-2.4.91/amdgpu/amdgpu_vamgr.c
--- old/libdrm-2.4.90/amdgpu/amdgpu_vamgr.c     2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/amdgpu/amdgpu_vamgr.c     2018-03-05 22:06:45.000000000 
+0100
@@ -57,7 +57,7 @@
        pthread_mutex_init(&mgr->bo_va_mutex, NULL);
        pthread_mutex_lock(&mgr->bo_va_mutex);
        n = calloc(1, sizeof(struct amdgpu_bo_va_hole));
-       n->size = mgr->va_max;
+       n->size = mgr->va_max - start;
        n->offset = start;
        list_add(&n->list, &mgr->va_holes);
        pthread_mutex_unlock(&mgr->bo_va_mutex);
@@ -80,6 +80,7 @@
        struct amdgpu_bo_va_hole *hole, *n;
        uint64_t offset = 0, waste = 0;
 
+
        alignment = MAX2(alignment, mgr->va_alignment);
        size = ALIGN(size, mgr->va_alignment);
 
@@ -200,10 +201,21 @@
 {
        struct amdgpu_bo_va_mgr *vamgr;
 
-       if (flags & AMDGPU_VA_RANGE_32_BIT)
-               vamgr = &dev->vamgr_32;
-       else
-               vamgr = &dev->vamgr;
+       /* Clear the flag when the high VA manager is not initialized */
+       if (flags & AMDGPU_VA_RANGE_HIGH && !dev->vamgr_high_32.va_max)
+               flags &= ~AMDGPU_VA_RANGE_HIGH;
+
+       if (flags & AMDGPU_VA_RANGE_HIGH) {
+               if (flags & AMDGPU_VA_RANGE_32_BIT)
+                       vamgr = &dev->vamgr_high_32;
+               else
+                       vamgr = &dev->vamgr_high;
+       } else {
+               if (flags & AMDGPU_VA_RANGE_32_BIT)
+                       vamgr = &dev->vamgr_32;
+               else
+                       vamgr = &dev->vamgr;
+       }
 
        va_base_alignment = MAX2(va_base_alignment, vamgr->va_alignment);
        size = ALIGN(size, vamgr->va_alignment);
@@ -214,7 +226,10 @@
        if (!(flags & AMDGPU_VA_RANGE_32_BIT) &&
            (*va_base_allocated == AMDGPU_INVALID_VA_ADDRESS)) {
                /* fallback to 32bit address */
-               vamgr = &dev->vamgr_32;
+               if (flags & AMDGPU_VA_RANGE_HIGH)
+                       vamgr = &dev->vamgr_high_32;
+               else
+                       vamgr = &dev->vamgr_32;
                *va_base_allocated = amdgpu_vamgr_find_va(vamgr, size,
                                        va_base_alignment, va_base_required);
        }
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/libdrm-2.4.90/amdgpu/meson.build new/libdrm-2.4.91/amdgpu/meson.build
--- old/libdrm-2.4.90/amdgpu/meson.build        2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/amdgpu/meson.build        2018-03-05 22:06:45.000000000 
+0100
@@ -61,5 +61,6 @@
 test(
   'amdgpu-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('amdgpu-symbol-check'), libdrm_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/libdrm-2.4.90/build-aux/compile new/libdrm-2.4.91/build-aux/compile
--- old/libdrm-2.4.90/build-aux/compile 2018-02-17 04:45:12.000000000 +0100
+++ new/libdrm-2.4.91/build-aux/compile 2018-03-05 22:06:58.000000000 +0100
@@ -1,9 +1,9 @@
 #! /bin/sh
 # Wrapper for compilers which do not understand '-c -o'.
 
-scriptversion=2012-10-14.11; # UTC
+scriptversion=2016-01-11.22; # UTC
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 # Written by Tom Tromey <[email protected]>.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -255,7 +255,8 @@
     echo "compile $scriptversion"
     exit $?
     ;;
-  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
+  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
+  icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
     func_cl_wrapper "$@"      # Doesn't return...
     ;;
 esac
@@ -342,6 +343,6 @@
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
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/libdrm-2.4.90/build-aux/missing new/libdrm-2.4.91/build-aux/missing
--- old/libdrm-2.4.90/build-aux/missing 2018-02-17 04:45:12.000000000 +0100
+++ new/libdrm-2.4.91/build-aux/missing 2018-03-05 22:06:58.000000000 +0100
@@ -1,9 +1,9 @@
 #! /bin/sh
 # Common wrapper for a few potentially missing GNU programs.
 
-scriptversion=2013-10-28.13; # UTC
+scriptversion=2016-01-11.22; # UTC
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 # Originally written by Fran,cois Pinard <[email protected]>, 1996.
 
 # This program is free software; you can redistribute it and/or modify
@@ -210,6 +210,6 @@
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
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/libdrm-2.4.90/build-aux/test-driver new/libdrm-2.4.91/build-aux/test-driver
--- old/libdrm-2.4.90/build-aux/test-driver     2018-02-17 04:45:13.000000000 
+0100
+++ new/libdrm-2.4.91/build-aux/test-driver     2018-03-05 22:06:59.000000000 
+0100
@@ -1,9 +1,9 @@
 #! /bin/sh
 # test-driver - basic testsuite driver script.
 
-scriptversion=2013-07-13.22; # UTC
+scriptversion=2016-01-11.22; # UTC
 
-# Copyright (C) 2011-2014 Free Software Foundation, Inc.
+# Copyright (C) 2011-2017 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -143,6 +143,6 @@
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
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/libdrm-2.4.90/configure.ac new/libdrm-2.4.91/configure.ac
--- old/libdrm-2.4.90/configure.ac      2018-02-17 04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/configure.ac      2018-03-05 22:06:45.000000000 +0100
@@ -20,7 +20,7 @@
 
 AC_PREREQ([2.63])
 AC_INIT([libdrm],
-        [2.4.90],
+        [2.4.91],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=DRI],
         [libdrm])
 
@@ -45,6 +45,7 @@
 # Check for programs
 AC_PROG_CC
 AC_PROG_CC_C99
+AC_PROG_NM
 
 if test "x$ac_cv_prog_cc_c99" = xno; then
        AC_MSG_ERROR([Building libdrm requires C99 enabled compiler])
@@ -65,10 +66,10 @@
 LT_PREREQ([2.2])
 LT_INIT([disable-static])
 
-dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
+dnl pthread-stubs is mandatory on some BSD platforms, due to the nature of the
 dnl project. Even then there's a notable issue as described in the project 
README
 case "$host_os" in
-linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu*)
+linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu* | openbsd*)
     pthread_stubs_possible="no"
     ;;
 * )
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/libdrm-2.4.90/exynos/exynos-symbol-check 
new/libdrm-2.4.91/exynos/exynos-symbol-check
--- old/libdrm-2.4.90/exynos/exynos-symbol-check        2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/exynos/exynos-symbol-check        2018-03-05 
22:06:45.000000000 +0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available Makefile.am/libdrm_exynos*_HEADERS
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | awk 
'{print $3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | awk 
'{print $3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/exynos/meson.build new/libdrm-2.4.91/exynos/meson.build
--- old/libdrm-2.4.90/exynos/meson.build        2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/exynos/meson.build        2018-03-05 22:06:45.000000000 
+0100
@@ -49,5 +49,6 @@
 test(
   'exynos-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('exynos-symbol-check'), libdrm_exynos]
 )
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/libdrm-2.4.90/freedreno/freedreno-symbol-check 
new/libdrm-2.4.91/freedreno/freedreno-symbol-check
--- old/libdrm-2.4.90/freedreno/freedreno-symbol-check  2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/freedreno/freedreno-symbol-check  2018-03-05 
22:06:45.000000000 +0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available 
Makefile.sources/LIBDRM_FREEDRENO_H_FILES
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | awk 
'{print $3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | 
awk '{print $3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/freedreno/freedreno_bo.c 
new/libdrm-2.4.91/freedreno/freedreno_bo.c
--- old/libdrm-2.4.90/freedreno/freedreno_bo.c  2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/freedreno/freedreno_bo.c  2018-03-05 22:06:45.000000000 
+0100
@@ -195,6 +195,16 @@
        return bo;
 }
 
+uint64_t fd_bo_get_iova(struct fd_bo *bo)
+{
+       return bo->funcs->iova(bo);
+}
+
+void fd_bo_put_iova(struct fd_bo *bo)
+{
+       /* currently a no-op */
+}
+
 struct fd_bo * fd_bo_ref(struct fd_bo *bo)
 {
        atomic_inc(&bo->refcnt);
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/libdrm-2.4.90/freedreno/freedreno_drmif.h 
new/libdrm-2.4.91/freedreno/freedreno_drmif.h
--- old/libdrm-2.4.90/freedreno/freedreno_drmif.h       2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/freedreno/freedreno_drmif.h       2018-03-05 
22:06:45.000000000 +0100
@@ -95,6 +95,7 @@
        FD_VERSION_UNLIMITED_CMDS = 1,     /* submits w/ >4 cmd buffers 
(growable ringbuffer) */
        FD_VERSION_FENCE_FD = 2,           /* submit command supports in/out 
fences */
        FD_VERSION_SUBMIT_QUEUES = 3,      /* submit queues and multiple 
priority levels */
+       FD_VERSION_BO_IOVA = 3,            /* supports fd_bo_get/put_iova() */
 };
 enum fd_version fd_device_version(struct fd_device *dev);
 
@@ -123,6 +124,8 @@
                uint32_t handle, uint32_t size);
 struct fd_bo * fd_bo_from_name(struct fd_device *dev, uint32_t name);
 struct fd_bo * fd_bo_from_dmabuf(struct fd_device *dev, int fd);
+uint64_t fd_bo_get_iova(struct fd_bo *bo);
+void fd_bo_put_iova(struct fd_bo *bo);
 struct fd_bo * fd_bo_ref(struct fd_bo *bo);
 void fd_bo_del(struct fd_bo *bo);
 int fd_bo_get_name(struct fd_bo *bo, uint32_t *name);
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/libdrm-2.4.90/freedreno/freedreno_priv.h 
new/libdrm-2.4.91/freedreno/freedreno_priv.h
--- old/libdrm-2.4.90/freedreno/freedreno_priv.h        2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/freedreno/freedreno_priv.h        2018-03-05 
22:06:45.000000000 +0100
@@ -157,6 +157,7 @@
        int (*cpu_prep)(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op);
        void (*cpu_fini)(struct fd_bo *bo);
        int (*madvise)(struct fd_bo *bo, int willneed);
+       uint64_t (*iova)(struct fd_bo *bo);
        void (*destroy)(struct fd_bo *bo);
 };
 
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/libdrm-2.4.90/freedreno/meson.build new/libdrm-2.4.91/freedreno/meson.build
--- old/libdrm-2.4.90/freedreno/meson.build     2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/freedreno/meson.build     2018-03-05 22:06:45.000000000 
+0100
@@ -72,5 +72,6 @@
 test(
   'freedreno-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('freedreno-symbol-check'), libdrm_freedreno]
 )
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/libdrm-2.4.90/freedreno/msm/msm_bo.c 
new/libdrm-2.4.91/freedreno/msm/msm_bo.c
--- old/libdrm-2.4.90/freedreno/msm/msm_bo.c    2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/freedreno/msm/msm_bo.c    2018-03-05 22:06:45.000000000 
+0100
@@ -108,6 +108,18 @@
        return req.retained;
 }
 
+static uint64_t msm_bo_iova(struct fd_bo *bo)
+{
+       struct drm_msm_gem_info req = {
+                       .handle = bo->handle,
+                       .flags = MSM_INFO_IOVA,
+       };
+
+       drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO, &req, sizeof(req));
+
+       return req.offset;
+}
+
 static void msm_bo_destroy(struct fd_bo *bo)
 {
        struct msm_bo *msm_bo = to_msm_bo(bo);
@@ -120,6 +132,7 @@
                .cpu_prep = msm_bo_cpu_prep,
                .cpu_fini = msm_bo_cpu_fini,
                .madvise = msm_bo_madvise,
+               .iova = msm_bo_iova,
                .destroy = msm_bo_destroy,
 };
 
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/libdrm-2.4.90/include/drm/drm_fourcc.h 
new/libdrm-2.4.91/include/drm/drm_fourcc.h
--- old/libdrm-2.4.90/include/drm/drm_fourcc.h  2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/include/drm/drm_fourcc.h  2018-03-05 22:06:45.000000000 
+0100
@@ -178,7 +178,7 @@
 #define DRM_FORMAT_MOD_VENDOR_NONE    0
 #define DRM_FORMAT_MOD_VENDOR_INTEL   0x01
 #define DRM_FORMAT_MOD_VENDOR_AMD     0x02
-#define DRM_FORMAT_MOD_VENDOR_NV      0x03
+#define DRM_FORMAT_MOD_VENDOR_NVIDIA  0x03
 #define DRM_FORMAT_MOD_VENDOR_SAMSUNG 0x04
 #define DRM_FORMAT_MOD_VENDOR_QCOM    0x05
 #define DRM_FORMAT_MOD_VENDOR_VIVANTE 0x06
@@ -188,7 +188,7 @@
 #define DRM_FORMAT_RESERVED          ((1ULL << 56) - 1)
 
 #define fourcc_mod_code(vendor, val) \
-       ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 
0x00ffffffffffffffULL))
+       ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | ((val) & 
0x00ffffffffffffffULL))
 
 /*
  * Format Modifier tokens:
@@ -338,29 +338,17 @@
  */
 #define DRM_FORMAT_MOD_VIVANTE_SPLIT_SUPER_TILED fourcc_mod_code(VIVANTE, 4)
 
-/* NVIDIA Tegra frame buffer modifiers */
-
-/*
- * Some modifiers take parameters, for example the number of vertical GOBs in
- * a block. Reserve the lower 32 bits for parameters
- */
-#define __fourcc_mod_tegra_mode_shift 32
-#define fourcc_mod_tegra_code(val, params) \
-       fourcc_mod_code(NV, ((((__u64)val) << __fourcc_mod_tegra_mode_shift) | 
params))
-#define fourcc_mod_tegra_mod(m) \
-       (m & ~((1ULL << __fourcc_mod_tegra_mode_shift) - 1))
-#define fourcc_mod_tegra_param(m) \
-       (m & ((1ULL << __fourcc_mod_tegra_mode_shift) - 1))
+/* NVIDIA frame buffer modifiers */
 
 /*
  * Tegra Tiled Layout, used by Tegra 2, 3 and 4.
  *
  * Pixels are arranged in simple tiles of 16 x 16 bytes.
  */
-#define NV_FORMAT_MOD_TEGRA_TILED fourcc_mod_tegra_code(1, 0)
+#define DRM_FORMAT_MOD_NVIDIA_TEGRA_TILED fourcc_mod_code(NVIDIA, 1)
 
 /*
- * Tegra 16Bx2 Block Linear layout, used by TK1/TX1
+ * 16Bx2 Block Linear layout, used by desktop GPUs, and Tegra K1 and later
  *
  * Pixels are arranged in 64x8 Groups Of Bytes (GOBs). GOBs are then stacked
  * vertically by a power of 2 (1 to 32 GOBs) to form a block.
@@ -380,7 +368,21 @@
  * Chapter 20 "Pixel Memory Formats" of the Tegra X1 TRM describes this format
  * in full detail.
  */
-#define NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(v) fourcc_mod_tegra_code(2, v)
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) \
+       fourcc_mod_code(NVIDIA, 0x10 | ((v) & 0xf))
+
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK_ONE_GOB \
+       fourcc_mod_code(NVIDIA, 0x10)
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK_TWO_GOB \
+       fourcc_mod_code(NVIDIA, 0x11)
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK_FOUR_GOB \
+       fourcc_mod_code(NVIDIA, 0x12)
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK_EIGHT_GOB \
+       fourcc_mod_code(NVIDIA, 0x13)
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK_SIXTEEN_GOB \
+       fourcc_mod_code(NVIDIA, 0x14)
+#define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK_THIRTYTWO_GOB \
+       fourcc_mod_code(NVIDIA, 0x15)
 
 /*
  * Broadcom VC4 "T" format
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/libdrm-2.4.90/intel/intel-symbol-check 
new/libdrm-2.4.91/intel/intel-symbol-check
--- old/libdrm-2.4.90/intel/intel-symbol-check  2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/intel/intel-symbol-check  2018-03-05 22:06:45.000000000 
+0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available 
Makefile.sources/LIBDRM_INTEL_H_FILES
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | awk 
'{print $3}' | while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | awk 
'{print $3}' | while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/intel/meson.build new/libdrm-2.4.91/intel/meson.build
--- old/libdrm-2.4.90/intel/meson.build 2018-02-17 04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/intel/meson.build 2018-03-05 22:06:45.000000000 +0100
@@ -101,5 +101,6 @@
 test(
   'intel-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('intel-symbol-check'), libdrm_intel]
 )
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/libdrm-2.4.90/libkms/kms-symbol-check 
new/libdrm-2.4.91/libkms/kms-symbol-check
--- old/libdrm-2.4.90/libkms/kms-symbol-check   2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/libkms/kms-symbol-check   2018-03-05 22:06:45.000000000 
+0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available Makefile.sources/LIBKMS_H_FILES
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libkms.so} | awk '{print 
$3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libkms.so} | awk '{print 
$3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/libkms/meson.build new/libdrm-2.4.91/libkms/meson.build
--- old/libdrm-2.4.90/libkms/meson.build        2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/libkms/meson.build        2018-03-05 22:06:45.000000000 
+0100
@@ -70,5 +70,6 @@
 test(
   'kms-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('kms-symbol-check'), libkms]
 )
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/libdrm-2.4.90/m4/libtool.m4 new/libdrm-2.4.91/m4/libtool.m4
--- old/libdrm-2.4.90/m4/libtool.m4     2018-02-17 04:45:09.000000000 +0100
+++ new/libdrm-2.4.91/m4/libtool.m4     2018-03-05 22:06:51.000000000 +0100
@@ -1,6 +1,6 @@
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 #
-#   Copyright (C) 1996-2001, 2003-2017 Free Software Foundation, Inc.
+#   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
 #   Written by Gordon Matzigkeit, 1996
 #
 # This file is free software; the Free Software Foundation gives
@@ -1042,8 +1042,8 @@
 _LT_EOF
       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
-      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
-      $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
+      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
+      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
       cat > conftest.c << _LT_EOF
@@ -1493,22 +1493,9 @@
 m4_defun([_LT_PROG_AR],
 [AC_CHECK_TOOLS(AR, [ar], false)
 : ${AR=ar}
+: ${AR_FLAGS=cru}
 _LT_DECL([], [AR], [1], [The archiver])
-
-# Use ARFLAGS variable as AR's operation code to sync the variable naming with
-# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
-# higher priority because thats what people were doing historically (setting
-# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
-# variable obsoleted/removed.
-
-test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
-lt_ar_flags=$AR_FLAGS
-_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
-
-# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
-# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
-_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
-         [Flags to create an archive])
+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   [lt_cv_ar_at_file=no
@@ -2220,35 +2207,26 @@
 striplib=
 old_striplib=
 AC_MSG_CHECKING([whether stripping libraries is possible])
-if test -z "$STRIP"; then
-  AC_MSG_RESULT([no])
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+  AC_MSG_RESULT([yes])
 else
-  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
-    old_striplib="$STRIP --strip-debug"
-    striplib="$STRIP --strip-unneeded"
-    AC_MSG_RESULT([yes])
-  else
-    case $host_os in
-    darwin*)
-      # FIXME - insert some real tests, host_os isn't really good enough
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+  darwin*)
+    if test -n "$STRIP"; then
       striplib="$STRIP -x"
       old_striplib="$STRIP -S"
       AC_MSG_RESULT([yes])
-      ;;
-    freebsd*)
-      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
-        old_striplib="$STRIP --strip-debug"
-        striplib="$STRIP --strip-unneeded"
-        AC_MSG_RESULT([yes])
-      else
-        AC_MSG_RESULT([no])
-      fi
-      ;;
-    *)
+    else
       AC_MSG_RESULT([no])
-      ;;
-    esac
-  fi
+    fi
+    ;;
+  *)
+    AC_MSG_RESULT([no])
+    ;;
+  esac
 fi
 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 _LT_DECL([], [striplib], [1])
@@ -2889,6 +2867,9 @@
   # before this can be enabled.
   hardcode_into_libs=yes
 
+  # Add ABI-specific directories to the system library path.
+  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
+
   # Ideally, we could use ldconfig to report *all* directores which are
   # searched for libraries, however this is still not possible.  Aside from not
   # being certain /sbin/ldconfig is available, command
@@ -2897,7 +2878,7 @@
   # appending ld.so.conf contents (and includes) to the search path.
   if test -f /etc/ld.so.conf; then
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 
2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < 
/etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,      ]/ 
/g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
   fi
 
   # We used to test for /lib/ld.so.1 and disable shared libraries on
@@ -4941,7 +4922,7 @@
     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | 
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == 
"W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } 
else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
     else
-      _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e 
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") 
|| (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 
== "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print 
\$ 1 } } }'\'' | sort -u > $export_symbols'
+      _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e 
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") 
|| (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 
== "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | 
sort -u > $export_symbols'
     fi
     ;;
   pw32*)
@@ -5178,7 +5159,6 @@
        emximp -o $lib $output_objdir/$libname.def'
       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o 
$output_objdir/${libname}_dll.a $output_objdir/$libname.def'
       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-      _LT_TAGVAR(file_list_spec, $1)='@'
       ;;
 
     interix[[3-9]]*)
@@ -5396,7 +5376,7 @@
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | 
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == 
"W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } 
else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
        else
-         _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e 
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") 
|| (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 
== "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print 
\$ 1 } } }'\'' | sort -u > $export_symbols'
+         _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e 
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") 
|| (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 
== "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | 
sort -u > $export_symbols'
        fi
        aix_use_runtimelinking=no
 
@@ -5884,7 +5864,6 @@
        emximp -o $lib $output_objdir/$libname.def'
       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o 
$output_objdir/${libname}_dll.a $output_objdir/$libname.def'
       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-      _LT_TAGVAR(file_list_spec, $1)='@'
       ;;
 
     osf3*)
@@ -6754,7 +6733,6 @@
          emximp -o $lib $output_objdir/$libname.def'
        _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o 
$output_objdir/${libname}_dll.a $output_objdir/$libname.def'
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-       _LT_TAGVAR(file_list_spec, $1)='@'
        ;;
 
       dgux*)
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/libdrm-2.4.90/m4/ltoptions.m4 new/libdrm-2.4.91/m4/ltoptions.m4
--- old/libdrm-2.4.90/m4/ltoptions.m4   2018-02-17 04:45:09.000000000 +0100
+++ new/libdrm-2.4.91/m4/ltoptions.m4   2018-03-05 22:06:51.000000000 +0100
@@ -1,6 +1,6 @@
 # Helper functions for option handling.                    -*- Autoconf -*-
 #
-#   Copyright (C) 2004-2005, 2007-2009, 2011-2017 Free Software
+#   Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
 #   Foundation, Inc.
 #   Written by Gary V. Vaughan, 2004
 #
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/libdrm-2.4.90/m4/ltsugar.m4 new/libdrm-2.4.91/m4/ltsugar.m4
--- old/libdrm-2.4.90/m4/ltsugar.m4     2018-02-17 04:45:09.000000000 +0100
+++ new/libdrm-2.4.91/m4/ltsugar.m4     2018-03-05 22:06:51.000000000 +0100
@@ -1,6 +1,6 @@
 # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 #
-# Copyright (C) 2004-2005, 2007-2008, 2011-2017 Free Software
+# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
 # Foundation, Inc.
 # Written by Gary V. Vaughan, 2004
 #
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/libdrm-2.4.90/m4/ltversion.m4 new/libdrm-2.4.91/m4/ltversion.m4
--- old/libdrm-2.4.90/m4/ltversion.m4   2018-02-17 04:45:09.000000000 +0100
+++ new/libdrm-2.4.91/m4/ltversion.m4   2018-03-05 22:06:51.000000000 +0100
@@ -1,6 +1,6 @@
 # ltversion.m4 -- version numbers                      -*- Autoconf -*-
 #
-#   Copyright (C) 2004, 2011-2017 Free Software Foundation, Inc.
+#   Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
 #   Written by Scott James Remnant, 2004
 #
 # This file is free software; the Free Software Foundation gives
@@ -9,15 +9,15 @@
 
 # @configure_input@
 
-# serial 4219 ltversion.m4
+# serial 4179 ltversion.m4
 # This file is part of GNU Libtool
 
-m4_define([LT_PACKAGE_VERSION], [2.4.6.40-6ca5])
-m4_define([LT_PACKAGE_REVISION], [2.4.6.40])
+m4_define([LT_PACKAGE_VERSION], [2.4.6])
+m4_define([LT_PACKAGE_REVISION], [2.4.6])
 
 AC_DEFUN([LTVERSION_VERSION],
-[macro_version='2.4.6.40-6ca5'
-macro_revision='2.4.6.40'
+[macro_version='2.4.6'
+macro_revision='2.4.6'
 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 _LT_DECL(, macro_revision, 0)
 ])
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/libdrm-2.4.90/m4/lt~obsolete.m4 new/libdrm-2.4.91/m4/lt~obsolete.m4
--- old/libdrm-2.4.90/m4/lt~obsolete.m4 2018-02-17 04:45:09.000000000 +0100
+++ new/libdrm-2.4.91/m4/lt~obsolete.m4 2018-03-05 22:06:51.000000000 +0100
@@ -1,6 +1,6 @@
 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 #
-#   Copyright (C) 2004-2005, 2007, 2009, 2011-2017 Free Software
+#   Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
 #   Foundation, Inc.
 #   Written by Scott James Remnant, 2004.
 #
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/libdrm-2.4.90/meson.build new/libdrm-2.4.91/meson.build
--- old/libdrm-2.4.90/meson.build       2018-02-17 04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/meson.build       2018-03-05 22:06:45.000000000 +0100
@@ -21,7 +21,7 @@
 project(
   'libdrm',
   ['c'],
-  version : '2.4.89',
+  version : '2.4.91',
   license : 'MIT',
   meson_version : '>= 0.43',
   default_options : ['buildtype=debugoptimized', 'c_std=gnu99'],
@@ -32,13 +32,10 @@
 with_udev = get_option('udev')
 with_freedreno_kgsl = get_option('freedreno-kgsl')
 with_install_tests = get_option('install-test-programs')
-with_cairo_tests = get_option('cairo-tests')
-with_valgrind = get_option('valgrind')
 
 config = configuration_data()
 
-# TODO: openbsd is guess, the others are correct
-if ['freebsd', 'dragonfly', 'netbsd', 
'openbsd'].contains(host_machine.system())
+if ['freebsd', 'dragonfly', 'netbsd'].contains(host_machine.system())
   dep_pthread_stubs = dependency('pthread-stubs', version : '>= 0.4')
 else
   dep_pthread_stubs = []
@@ -226,8 +223,22 @@
 
 dep_pciaccess = dependency('pciaccess', version : '>= 0.10', required : 
with_intel)
 dep_cunit = dependency('cunit', version : '>= 2.1', required : false)
-dep_cairo = dependency('cairo', required : with_cairo_tests == 'true')
-dep_valgrind = dependency('valgrind', required : with_valgrind == 'true')
+_cairo_tests = get_option('cairo-tests')
+if _cairo_tests != 'false'
+  dep_cairo = dependency('cairo', required : _cairo_tests == 'true')
+  with_cairo_tests = dep_cairo.found()
+else
+  dep_cairo = []
+  with_cairo_tests = false
+endif
+_valgrind = get_option('valgrind')
+if _valgrind != 'false'
+  dep_valgrind = dependency('valgrind', required : _valgrind == 'true')
+  with_valgrind = dep_valgrind.found()
+else
+  dep_valgrind = []
+  with_valgrind = false
+endif
 
 with_man_pages = get_option('man-pages')
 prog_xslt = find_program('xsltproc', required : with_man_pages == 'true')
@@ -259,8 +270,8 @@
              [with_radeon, 'RADEON'],
              [with_vc4, 'VC4'],
              [with_vmwgfx, 'VMWGFX'],
-             [dep_cairo.found(), 'CAIRO'],
-             [dep_valgrind.found(), 'VALGRIND'],
+             [with_cairo_tests, 'CAIRO'],
+             [with_valgrind, 'VALGRIND'],
             ]
   config.set10('HAVE_@0@'.format(t[1]), t[0])
 endforeach
@@ -321,6 +332,9 @@
   description : 'Userspace interface to kernel DRM services',
 )
 
+env_test = environment()
+env_test.set('NM', find_program('nm').path())
+
 if with_libkms
   subdir('libkms')
 endif
@@ -359,3 +373,20 @@
 endif
 subdir('data')
 subdir('tests')
+
+message('')
+message('@0@ will be compiled with:'.format(meson.project_name()))
+message('')
+message('  libkms         @0@'.format(with_libkms))
+message('  Intel API      @0@'.format(with_intel))
+message('  vmwgfx API     @0@'.format(with_vmwgfx))
+message('  Radeon API     @0@'.format(with_radeon))
+message('  AMDGPU API     @0@'.format(with_amdgpu))
+message('  Nouveau API    @0@'.format(with_nouveau))
+message('  OMAP API       @0@'.format(with_omap))
+message('  EXYNOS API     @0@'.format(with_exynos))
+message('  Freedreno API  @0@ (kgsl: @1@)'.format(with_freedreno, 
with_freedreno_kgsl))
+message('  Tegra API      @0@'.format(with_tegra))
+message('  VC4 API        @0@'.format(with_vc4))
+message('  Etnaviv API    @0@'.format(with_etnaviv))
+message('')
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/libdrm-2.4.90/nouveau/meson.build new/libdrm-2.4.91/nouveau/meson.build
--- old/libdrm-2.4.90/nouveau/meson.build       2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/nouveau/meson.build       2018-03-05 22:06:45.000000000 
+0100
@@ -54,5 +54,6 @@
 test(
   'nouveau-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('nouveau-symbol-check'), libdrm_nouveau]
 )
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/libdrm-2.4.90/nouveau/nouveau-symbol-check 
new/libdrm-2.4.91/nouveau/nouveau-symbol-check
--- old/libdrm-2.4.90/nouveau/nouveau-symbol-check      2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/nouveau/nouveau-symbol-check      2018-03-05 
22:06:45.000000000 +0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available 
Makefile.sources/LIBDRM_NOUVEAU_H_FILES
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk 
'{print $3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk 
'{print $3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/omap/meson.build new/libdrm-2.4.91/omap/meson.build
--- old/libdrm-2.4.90/omap/meson.build  2018-02-17 04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/omap/meson.build  2018-03-05 22:06:45.000000000 +0100
@@ -49,5 +49,6 @@
 test(
   'omap-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('omap-symbol-check'), libdrm_omap]
 )
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/libdrm-2.4.90/omap/omap-symbol-check 
new/libdrm-2.4.91/omap/omap-symbol-check
--- old/libdrm-2.4.90/omap/omap-symbol-check    2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/omap/omap-symbol-check    2018-03-05 22:06:45.000000000 
+0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available Makefile.am/libdrm_omap*HEADERS
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk 
'{print $3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk 
'{print $3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/radeon/meson.build new/libdrm-2.4.91/radeon/meson.build
--- old/libdrm-2.4.90/radeon/meson.build        2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/radeon/meson.build        2018-03-05 22:06:45.000000000 
+0100
@@ -59,5 +59,6 @@
 test(
   'radeon-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('radeon-symbol-check'), libdrm_radeon]
 )
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/libdrm-2.4.90/radeon/radeon-symbol-check 
new/libdrm-2.4.91/radeon/radeon-symbol-check
--- old/libdrm-2.4.90/radeon/radeon-symbol-check        2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/radeon/radeon-symbol-check        2018-03-05 
22:06:45.000000000 +0100
@@ -3,7 +3,7 @@
 # The following symbols (past the first five) are taken from the public 
headers.
 # A list of the latter should be available 
Makefile.sources/LIBDRM_RADEON_H_FILES
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk 
'{print $3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk 
'{print $3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_start
 _edata
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/libdrm-2.4.90/tegra/meson.build new/libdrm-2.4.91/tegra/meson.build
--- old/libdrm-2.4.90/tegra/meson.build 2018-02-17 04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/tegra/meson.build 2018-03-05 22:06:45.000000000 +0100
@@ -48,5 +48,6 @@
 test(
   'tegra-symbol-check',
   prog_bash,
+  env : env_test,
   args : [files('tegra-symbol-check'), libdrm_tegra]
 )
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/libdrm-2.4.90/tegra/tegra-symbol-check 
new/libdrm-2.4.91/tegra/tegra-symbol-check
--- old/libdrm-2.4.90/tegra/tegra-symbol-check  2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/tegra/tegra-symbol-check  2018-03-05 22:06:45.000000000 
+0100
@@ -2,7 +2,7 @@
 
 # The following symbols (past the first nine) are taken from tegra.h.
 
-FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk 
'{print $3}'| while read func; do
+FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk 
'{print $3}'| while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 __bss_end__
 __bss_start__
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/libdrm-2.4.90/tests/amdgpu/amdgpu_test.c 
new/libdrm-2.4.91/tests/amdgpu/amdgpu_test.c
--- old/libdrm-2.4.90/tests/amdgpu/amdgpu_test.c        2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/tests/amdgpu/amdgpu_test.c        2018-03-05 
22:06:45.000000000 +0100
@@ -51,7 +51,7 @@
 #include "amdgpu_test.h"
 #include "amdgpu_internal.h"
 
-/* Test suit names */
+/* Test suite names */
 #define BASIC_TESTS_STR "Basic Tests"
 #define BO_TESTS_STR "BO Tests"
 #define CS_TESTS_STR "CS Tests"
@@ -399,7 +399,7 @@
        return -1;
 }
 
-static void amdgpu_disable_suits()
+static void amdgpu_disable_suites()
 {
        amdgpu_device_handle device_handle;
        uint32_t major_version, minor_version, family_id;
@@ -415,11 +415,11 @@
        if (amdgpu_device_deinitialize(device_handle))
                return;
 
-       /* Set active status for suits based on their policies */
+       /* Set active status for suites based on their policies */
        for (i = 0; i < size; ++i)
                if (amdgpu_set_suite_active(suites_active_stat[i].pName,
                                suites_active_stat[i].pActive()))
-                       fprintf(stderr, "suit deactivation failed - %s\n", 
CU_get_error_msg());
+                       fprintf(stderr, "suite deactivation failed - %s\n", 
CU_get_error_msg());
 
        /* Explicitly disable specific tests due to known bugs or preferences */
        /*
@@ -432,6 +432,8 @@
        if (amdgpu_set_test_active(BO_TESTS_STR, "Metadata", CU_FALSE))
                fprintf(stderr, "test deactivation failed - %s\n", 
CU_get_error_msg());
 
+       if (amdgpu_set_test_active(BASIC_TESTS_STR, "bo eviction Test", 
CU_FALSE))
+               fprintf(stderr, "test deactivation failed - %s\n", 
CU_get_error_msg());
 
        /* This test was ran on GFX8 and GFX9 only */
        if (family_id < AMDGPU_FAMILY_VI || family_id > AMDGPU_FAMILY_RV)
@@ -555,8 +557,8 @@
        /* Run tests using the CUnit Basic interface */
        CU_basic_set_mode(CU_BRM_VERBOSE);
 
-       /* Disable suits and individual tests based on misc. conditions */
-       amdgpu_disable_suits();
+       /* Disable suites and individual tests based on misc. conditions */
+       amdgpu_disable_suites();
 
        if (display_list) {
                display_test_suites();
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/libdrm-2.4.90/tests/amdgpu/amdgpu_test.h 
new/libdrm-2.4.91/tests/amdgpu/amdgpu_test.h
--- old/libdrm-2.4.90/tests/amdgpu/amdgpu_test.h        2018-02-17 
04:45:06.000000000 +0100
+++ new/libdrm-2.4.91/tests/amdgpu/amdgpu_test.h        2018-03-05 
22:06:45.000000000 +0100
@@ -350,26 +350,26 @@
 }
 
 
-static inline CU_ErrorCode amdgpu_set_suite_active(const char *suit_name,
+static inline CU_ErrorCode amdgpu_set_suite_active(const char *suite_name,
                                                          CU_BOOL active)
 {
-       CU_ErrorCode r = CU_set_suite_active(CU_get_suite(suit_name), active);
+       CU_ErrorCode r = CU_set_suite_active(CU_get_suite(suite_name), active);
 
        if (r != CUE_SUCCESS)
-               fprintf(stderr, "Failed to obtain suite %s\n", suit_name);
+               fprintf(stderr, "Failed to obtain suite %s\n", suite_name);
 
        return r;
 }
 
-static inline CU_ErrorCode amdgpu_set_test_active(const char *suit_name,
+static inline CU_ErrorCode amdgpu_set_test_active(const char *suite_name,
                                  const char *test_name, CU_BOOL active)
 {
        CU_ErrorCode r;
-       CU_pSuite pSuite = CU_get_suite(suit_name);
+       CU_pSuite pSuite = CU_get_suite(suite_name);
 
        if (!pSuite) {
                fprintf(stderr, "Failed to obtain suite %s\n",
-                               suit_name);
+                               suite_name);
                return CUE_NOSUITE;
        }
 
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/libdrm-2.4.90/tests/modetest/modetest.c 
new/libdrm-2.4.91/tests/modetest/modetest.c
--- old/libdrm-2.4.90/tests/modetest/modetest.c 2018-02-17 04:45:06.000000000 
+0100
+++ new/libdrm-2.4.91/tests/modetest/modetest.c 2018-03-05 22:06:45.000000000 
+0100
@@ -278,20 +278,20 @@
                return "VIVANTE_SPLIT_TILED";
        case DRM_FORMAT_MOD_VIVANTE_SPLIT_SUPER_TILED:
                return "VIVANTE_SPLIT_SUPER_TILED";
-       case NV_FORMAT_MOD_TEGRA_TILED:
-               return "MOD_TEGRA_TILED";
-       case NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(0):
-               return "MOD_TEGRA_16BX2_BLOCK(0)";
-       case NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(1):
-               return "MOD_TEGRA_16BX2_BLOCK(1)";
-       case NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(2):
-               return "MOD_TEGRA_16BX2_BLOCK(2)";
-       case NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(3):
-               return "MOD_TEGRA_16BX2_BLOCK(3)";
-       case NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(4):
-               return "MOD_TEGRA_16BX2_BLOCK(4)";
-       case NV_FORMAT_MOD_TEGRA_16BX2_BLOCK(5):
-               return "MOD_TEGRA_16BX2_BLOCK(5)";
+       case DRM_FORMAT_MOD_NVIDIA_TEGRA_TILED:
+               return "NVIDIA_TEGRA_TILED";
+       case DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(0):
+               return "NVIDIA_16BX2_BLOCK(0)";
+       case DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(1):
+               return "NVIDIA_16BX2_BLOCK(1)";
+       case DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(2):
+               return "NVIDIA_16BX2_BLOCK(2)";
+       case DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(3):
+               return "NVIDIA_16BX2_BLOCK(3)";
+       case DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(4):
+               return "NVIDIA_16BX2_BLOCK(4)";
+       case DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(5):
+               return "NVIDIA_16BX2_BLOCK(5)";
        case DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED:
                return "MOD_BROADCOM_VC4_T_TILED";
        default:


Reply via email to