Update xf86-video-mach64 to version 0.9.6
Tested on a Mach64 CT
This commit is contained in:
parent
5e1510c019
commit
b290bc2f31
@ -1,3 +1,94 @@
|
||||
commit a504b15fc74f7725f67866e22407b742d1d435a9
|
||||
Author: Adam Jackson <ajax@redhat.com>
|
||||
Date: Fri May 18 12:49:30 2018 -0400
|
||||
|
||||
mach64 6.9.6
|
||||
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
|
||||
commit eab6848f85d26c824f8096949105bf4894a1d48d
|
||||
Author: Emil Velikov <emil.velikov@collabora.com>
|
||||
Date: Mon Jul 17 13:44:55 2017 +0100
|
||||
|
||||
xf86-video-mach64: remove the GlxSetVisualConfigs stub and friends
|
||||
|
||||
The function was an empty since 2008 at least. Remove it alongside the
|
||||
unused GLX visuals code.
|
||||
|
||||
With this all the GL/GLX dependencies in the driver are gone.
|
||||
|
||||
Cc: Adam Jackson <ajax@redhat.com>
|
||||
Cc: Connor Behan <connor.behan@gmail.com>
|
||||
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
|
||||
|
||||
commit 5ae03dc9f4564de54df6427ed7e6e80e75a4179e
|
||||
Author: Adam Jackson <ajax@redhat.com>
|
||||
Date: Thu Feb 16 11:18:10 2017 -0500
|
||||
|
||||
D'oh, fix the previous commit
|
||||
|
||||
These limits are against mode->[HV]Total, not Display.
|
||||
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
|
||||
commit e27785a3fbabc9f354c361b5058b0359b6d9b5ae
|
||||
Author: Adam Jackson <ajax@redhat.com>
|
||||
Date: Thu Feb 16 11:13:59 2017 -0500
|
||||
|
||||
Move max mode h/v checks into ATIValidMode
|
||||
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
|
||||
commit dec6d18b61a1f8841303572ae5931fe6c937664f
|
||||
Author: Mihail Konev <k.mvc@ya.ru>
|
||||
Date: Thu Jan 26 14:00:22 2017 +1000
|
||||
|
||||
autogen: add default patch prefix
|
||||
|
||||
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
||||
|
||||
commit e67dab498fc7b6b4c73b5c33c550ecfcb814b4b1
|
||||
Author: Emil Velikov <emil.l.velikov@gmail.com>
|
||||
Date: Mon Mar 9 12:00:52 2015 +0000
|
||||
|
||||
autogen.sh: use quoted string variables
|
||||
|
||||
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
|
||||
fall-outs, when they contain space.
|
||||
|
||||
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
||||
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
|
||||
commit 2707a8ea311a2d40e0db8161225241bc360ab61d
|
||||
Author: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Date: Tue Jan 24 10:32:07 2017 +1000
|
||||
|
||||
autogen.sh: use exec instead of waiting for configure to finish
|
||||
|
||||
Syncs the invocation of configure with the one from the server.
|
||||
|
||||
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
|
||||
|
||||
commit 811890e401299f5a80e237fbaa216c9242654119
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sun Jun 1 21:03:14 2014 -0700
|
||||
|
||||
autogen.sh: Honor NOCONFIGURE=1
|
||||
|
||||
See http://people.gnome.org/~walters/docs/build-api.txt
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit de20547a7c31cf576d9b5b9ac607a1bde93542b8
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sun Jun 1 21:03:13 2014 -0700
|
||||
|
||||
configure: Drop AM_MAINTAINER_MODE
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 8f920350a736012ce2a7469d8252f5f5bf72cef3
|
||||
Author: Adam Jackson <ajax@redhat.com>
|
||||
Date: Mon May 4 15:50:09 2015 -0400
|
||||
|
73
driver/xf86-video-mach64/aclocal.m4
vendored
73
driver/xf86-video-mach64/aclocal.m4
vendored
@ -8806,6 +8806,23 @@ m4_popdef([pkg_default])
|
||||
m4_popdef([pkg_description])
|
||||
]) dnl PKG_NOARCH_INSTALLDIR
|
||||
|
||||
|
||||
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
|
||||
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
||||
dnl -------------------------------------------
|
||||
dnl Since: 0.28
|
||||
dnl
|
||||
dnl Retrieves the value of the pkg-config variable for the given module.
|
||||
AC_DEFUN([PKG_CHECK_VAR],
|
||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
||||
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
|
||||
|
||||
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
|
||||
AS_VAR_COPY([$1], [pkg_cv_][$1])
|
||||
|
||||
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
||||
])dnl PKG_CHECK_VAR
|
||||
|
||||
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
@ -9829,7 +9846,7 @@ AC_SUBST([am__untar])
|
||||
|
||||
dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
|
||||
dnl
|
||||
dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
dnl
|
||||
dnl Permission is hereby granted, free of charge, to any person obtaining a
|
||||
dnl copy of this software and associated documentation files (the "Software"),
|
||||
@ -9866,7 +9883,7 @@ dnl DEALINGS IN THE SOFTWARE.
|
||||
# See the "minimum version" comment for each macro you use to see what
|
||||
# version you require.
|
||||
m4_defun([XORG_MACROS_VERSION],[
|
||||
m4_define([vers_have], [1.19.0])
|
||||
m4_define([vers_have], [1.19.2])
|
||||
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
|
||||
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
|
||||
m4_if(m4_cmp(maj_have, maj_needed), 0,,
|
||||
@ -9944,6 +9961,17 @@ AC_DEFUN([XORG_MANPAGE_SECTIONS],[
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_REQUIRE([AC_PROG_SED])
|
||||
|
||||
case $host_os in
|
||||
solaris*)
|
||||
# Solaris 2.0 - 11.3 use SysV man page section numbers, so we
|
||||
# check for a man page file found in later versions that use
|
||||
# traditional section numbers instead
|
||||
AC_CHECK_FILE([/usr/share/man/man7/attributes.7],
|
||||
[SYSV_MAN_SECTIONS=false], [SYSV_MAN_SECTIONS=true])
|
||||
;;
|
||||
*) SYSV_MAN_SECTIONS=false ;;
|
||||
esac
|
||||
|
||||
if test x$APP_MAN_SUFFIX = x ; then
|
||||
APP_MAN_SUFFIX=1
|
||||
fi
|
||||
@ -9959,8 +9987,8 @@ if test x$LIB_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$FILE_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) FILE_MAN_SUFFIX=4 ;;
|
||||
*) FILE_MAN_SUFFIX=5 ;;
|
||||
esac
|
||||
fi
|
||||
@ -9969,8 +9997,8 @@ if test x$FILE_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$MISC_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) MISC_MAN_SUFFIX=5 ;;
|
||||
*) MISC_MAN_SUFFIX=7 ;;
|
||||
esac
|
||||
fi
|
||||
@ -9979,8 +10007,8 @@ if test x$MISC_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) DRIVER_MAN_SUFFIX=7 ;;
|
||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||
esac
|
||||
fi
|
||||
@ -9989,8 +10017,8 @@ if test x$DRIVER_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) ADMIN_MAN_SUFFIX=1m ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) ADMIN_MAN_SUFFIX=1m ;;
|
||||
*) ADMIN_MAN_SUFFIX=8 ;;
|
||||
esac
|
||||
fi
|
||||
@ -10252,13 +10280,24 @@ m4_ifval([$1],
|
||||
fi])
|
||||
|
||||
# Test for the ability of xmlto to generate a text target
|
||||
#
|
||||
# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
|
||||
# following test for empty XML docbook files.
|
||||
# For compatibility reasons use the following empty XML docbook file and if
|
||||
# it fails try it again with a non-empty XML file.
|
||||
have_xmlto_text=no
|
||||
cat > conftest.xml << "EOF"
|
||||
EOF
|
||||
AS_IF([test "$have_xmlto" = yes],
|
||||
[AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
|
||||
[have_xmlto_text=yes],
|
||||
[AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])
|
||||
[# Try it again with a non-empty XML file.
|
||||
cat > conftest.xml << "EOF"
|
||||
<x></x>
|
||||
EOF
|
||||
AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
|
||||
[have_xmlto_text=yes],
|
||||
[AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])])
|
||||
rm -f conftest.xml
|
||||
AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes])
|
||||
AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
|
||||
@ -11654,8 +11693,9 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
|
||||
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
|
||||
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
|
||||
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
|
||||
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
|
||||
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
|
||||
touch \$(top_srcdir)/INSTALL; \
|
||||
echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
|
||||
AC_SUBST([INSTALL_CMD])
|
||||
]) # XORG_INSTALL
|
||||
dnl Copyright 2005 Red Hat, Inc
|
||||
@ -11716,10 +11756,11 @@ AC_DEFUN([XORG_RELEASE_VERSION],[
|
||||
#
|
||||
#
|
||||
AC_DEFUN([XORG_CHANGELOG], [
|
||||
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
|
||||
CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
|
||||
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
|
||||
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
|
||||
echo 'git directory not found: installing possibly empty changelog.' >&2)"
|
||||
|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
|
||||
touch \$(top_srcdir)/ChangeLog; \
|
||||
echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
|
||||
AC_SUBST([CHANGELOG_CMD])
|
||||
]) # XORG_CHANGELOG
|
||||
|
||||
|
@ -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 <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@ -255,7 +255,8 @@ EOF
|
||||
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 @@ exit $ret
|
||||
# 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:
|
||||
|
78
driver/xf86-video-mach64/configure
vendored
78
driver/xf86-video-mach64/configure
vendored
@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.69 for xf86-video-mach64 6.9.5.
|
||||
# Generated by GNU Autoconf 2.69 for xf86-video-mach64 6.9.6.
|
||||
#
|
||||
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
|
||||
#
|
||||
@ -591,8 +591,8 @@ MAKEFLAGS=
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='xf86-video-mach64'
|
||||
PACKAGE_TARNAME='xf86-video-mach64'
|
||||
PACKAGE_VERSION='6.9.5'
|
||||
PACKAGE_STRING='xf86-video-mach64 6.9.5'
|
||||
PACKAGE_VERSION='6.9.6'
|
||||
PACKAGE_STRING='xf86-video-mach64 6.9.6'
|
||||
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
|
||||
PACKAGE_URL=''
|
||||
|
||||
@ -1380,7 +1380,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures xf86-video-mach64 6.9.5 to adapt to many kinds of systems.
|
||||
\`configure' configures xf86-video-mach64 6.9.6 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@ -1451,7 +1451,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of xf86-video-mach64 6.9.5:";;
|
||||
short | recursive ) echo "Configuration of xf86-video-mach64 6.9.6:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@ -1587,7 +1587,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
xf86-video-mach64 configure 6.9.5
|
||||
xf86-video-mach64 configure 6.9.6
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
@ -2002,7 +2002,7 @@ cat >config.log <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by xf86-video-mach64 $as_me 6.9.5, which was
|
||||
It was created by xf86-video-mach64 $as_me 6.9.6, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@ -2831,7 +2831,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='xf86-video-mach64'
|
||||
VERSION='6.9.5'
|
||||
VERSION='6.9.6'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
@ -10498,10 +10498,11 @@ _ACEOF
|
||||
|
||||
|
||||
|
||||
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
|
||||
CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
|
||||
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
|
||||
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
|
||||
echo 'git directory not found: installing possibly empty changelog.' >&2)"
|
||||
|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
|
||||
touch \$(top_srcdir)/ChangeLog; \
|
||||
echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
|
||||
|
||||
|
||||
|
||||
@ -10509,14 +10510,45 @@ echo 'git directory not found: installing possibly empty changelog.' >&2)"
|
||||
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
|
||||
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
|
||||
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
|
||||
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
|
||||
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
|
||||
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
|
||||
touch \$(top_srcdir)/INSTALL; \
|
||||
echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
case $host_os in
|
||||
solaris*)
|
||||
# Solaris 2.0 - 11.3 use SysV man page section numbers, so we
|
||||
# check for a man page file found in later versions that use
|
||||
# traditional section numbers instead
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
|
||||
$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
|
||||
if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
test "$cross_compiling" = yes &&
|
||||
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
||||
if test -r "/usr/share/man/man7/attributes.7"; then
|
||||
ac_cv_file__usr_share_man_man7_attributes_7=yes
|
||||
else
|
||||
ac_cv_file__usr_share_man_man7_attributes_7=no
|
||||
fi
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
|
||||
$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
|
||||
if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
|
||||
SYSV_MAN_SECTIONS=false
|
||||
else
|
||||
SYSV_MAN_SECTIONS=true
|
||||
fi
|
||||
|
||||
;;
|
||||
*) SYSV_MAN_SECTIONS=false ;;
|
||||
esac
|
||||
|
||||
if test x$APP_MAN_SUFFIX = x ; then
|
||||
APP_MAN_SUFFIX=1
|
||||
fi
|
||||
@ -10532,8 +10564,8 @@ if test x$LIB_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$FILE_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) FILE_MAN_SUFFIX=4 ;;
|
||||
*) FILE_MAN_SUFFIX=5 ;;
|
||||
esac
|
||||
fi
|
||||
@ -10542,8 +10574,8 @@ if test x$FILE_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$MISC_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) MISC_MAN_SUFFIX=5 ;;
|
||||
*) MISC_MAN_SUFFIX=7 ;;
|
||||
esac
|
||||
fi
|
||||
@ -10552,8 +10584,8 @@ if test x$MISC_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) DRIVER_MAN_SUFFIX=7 ;;
|
||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||
esac
|
||||
fi
|
||||
@ -10562,8 +10594,8 @@ if test x$DRIVER_MAN_DIR = x ; then
|
||||
fi
|
||||
|
||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||
case $host_os in
|
||||
solaris*) ADMIN_MAN_SUFFIX=1m ;;
|
||||
case $SYSV_MAN_SECTIONS in
|
||||
true) ADMIN_MAN_SUFFIX=1m ;;
|
||||
*) ADMIN_MAN_SUFFIX=8 ;;
|
||||
esac
|
||||
fi
|
||||
@ -19234,7 +19266,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by xf86-video-mach64 $as_me 6.9.5, which was
|
||||
This file was extended by xf86-video-mach64 $as_me 6.9.6, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@ -19300,7 +19332,7 @@ _ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
xf86-video-mach64 config.status 6.9.5
|
||||
xf86-video-mach64 config.status 6.9.6
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
# Initialize Autoconf
|
||||
AC_PREREQ([2.60])
|
||||
AC_INIT([xf86-video-mach64],
|
||||
[6.9.5],
|
||||
[6.9.6],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
[xf86-video-mach64])
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
|
@ -52,220 +52,13 @@
|
||||
#include "xf86.h"
|
||||
#include "windowstr.h"
|
||||
|
||||
/* GLX/DRI/DRM definitions */
|
||||
/* DRI/DRM definitions */
|
||||
#define _XF86DRI_SERVER_
|
||||
#include "GL/glxtokens.h"
|
||||
#include "sarea.h"
|
||||
|
||||
static char ATIKernelDriverName[] = "mach64";
|
||||
static char ATIClientDriverName[] = "mach64";
|
||||
|
||||
/* Initialize the visual configs that are supported by the hardware.
|
||||
* These are combined with the visual configs that the indirect
|
||||
* rendering core supports, and the intersection is exported to the
|
||||
* client.
|
||||
*/
|
||||
static Bool ATIInitVisualConfigs( ScreenPtr pScreen )
|
||||
{
|
||||
ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pScreen);
|
||||
ATIPtr pATI = ATIPTR(pScreenInfo);
|
||||
int numConfigs = 0;
|
||||
__GLXvisualConfig *pConfigs = NULL;
|
||||
ATIConfigPrivPtr pATIConfigs = NULL;
|
||||
ATIConfigPrivPtr *pATIConfigPtrs = NULL;
|
||||
int i, accum, stencil, db;
|
||||
|
||||
switch ( pATI->bitsPerPixel ) {
|
||||
case 8: /* 8bpp mode is not support */
|
||||
case 15: /* FIXME */
|
||||
case 24: /* FIXME */
|
||||
xf86DrvMsg(pScreen->myNum, X_ERROR,
|
||||
"[dri] ATIInitVisualConfigs failed (%d bpp not supported). "
|
||||
"Disabling DRI.\n", pATI->bitsPerPixel);
|
||||
return FALSE;
|
||||
|
||||
#define ATI_USE_ACCUM 1
|
||||
#define ATI_USE_STENCIL 1
|
||||
|
||||
case 16:
|
||||
|
||||
if ( pATI->depth != 16) {
|
||||
xf86DrvMsg(pScreen->myNum, X_ERROR,
|
||||
"[dri] ATIInitVisualConfigs failed (depth %d at 16 bpp not supported). "
|
||||
"Disabling DRI.\n", pATI->depth);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
numConfigs = 1;
|
||||
if ( ATI_USE_ACCUM ) numConfigs *= 2;
|
||||
if ( ATI_USE_STENCIL ) numConfigs *= 2;
|
||||
numConfigs *= 2; /* single- and double-buffered */
|
||||
|
||||
pConfigs = (__GLXvisualConfig*)
|
||||
xnfcalloc( sizeof(__GLXvisualConfig), numConfigs );
|
||||
if ( !pConfigs ) {
|
||||
return FALSE;
|
||||
}
|
||||
pATIConfigs = (ATIConfigPrivPtr)
|
||||
xnfcalloc( sizeof(ATIConfigPrivRec), numConfigs );
|
||||
if ( !pATIConfigs ) {
|
||||
free( pConfigs );
|
||||
return FALSE;
|
||||
}
|
||||
pATIConfigPtrs = (ATIConfigPrivPtr*)
|
||||
xnfcalloc( sizeof(ATIConfigPrivPtr), numConfigs );
|
||||
if ( !pATIConfigPtrs ) {
|
||||
free( pConfigs );
|
||||
free( pATIConfigs );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
for (db = 1; db >= 0; db--) {
|
||||
for ( accum = 0 ; accum <= ATI_USE_ACCUM ; accum++ ) {
|
||||
for ( stencil = 0 ; stencil <= ATI_USE_STENCIL ; stencil++ ) {
|
||||
pATIConfigPtrs[i] = &pATIConfigs[i];
|
||||
|
||||
pConfigs[i].vid = -1;
|
||||
pConfigs[i].class = -1;
|
||||
pConfigs[i].rgba = TRUE;
|
||||
pConfigs[i].redSize = 5;
|
||||
pConfigs[i].greenSize = 6;
|
||||
pConfigs[i].blueSize = 5;
|
||||
pConfigs[i].alphaSize = 0;
|
||||
pConfigs[i].redMask = 0x0000F800;
|
||||
pConfigs[i].greenMask = 0x000007E0;
|
||||
pConfigs[i].blueMask = 0x0000001F;
|
||||
pConfigs[i].alphaMask = 0x00000000;
|
||||
if ( accum ) { /* Simulated in software */
|
||||
pConfigs[i].accumRedSize = 16;
|
||||
pConfigs[i].accumGreenSize = 16;
|
||||
pConfigs[i].accumBlueSize = 16;
|
||||
pConfigs[i].accumAlphaSize = 0;
|
||||
} else {
|
||||
pConfigs[i].accumRedSize = 0;
|
||||
pConfigs[i].accumGreenSize = 0;
|
||||
pConfigs[i].accumBlueSize = 0;
|
||||
pConfigs[i].accumAlphaSize = 0;
|
||||
}
|
||||
pConfigs[i].doubleBuffer = db ? TRUE : FALSE;
|
||||
pConfigs[i].stereo = FALSE;
|
||||
pConfigs[i].bufferSize = 16;
|
||||
pConfigs[i].depthSize = 16;
|
||||
if ( stencil ) { /* Simulated in software */
|
||||
pConfigs[i].stencilSize = 8;
|
||||
} else {
|
||||
pConfigs[i].stencilSize = 0;
|
||||
}
|
||||
pConfigs[i].auxBuffers = 0;
|
||||
pConfigs[i].level = 0;
|
||||
if ( accum || stencil ) {
|
||||
pConfigs[i].visualRating = GLX_SLOW_CONFIG;
|
||||
} else {
|
||||
pConfigs[i].visualRating = GLX_NONE;
|
||||
}
|
||||
pConfigs[i].transparentPixel = GLX_NONE;
|
||||
pConfigs[i].transparentRed = 0;
|
||||
pConfigs[i].transparentGreen = 0;
|
||||
pConfigs[i].transparentBlue = 0;
|
||||
pConfigs[i].transparentAlpha = 0;
|
||||
pConfigs[i].transparentIndex = 0;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 32:
|
||||
numConfigs = 1;
|
||||
if ( ATI_USE_ACCUM ) numConfigs *= 2;
|
||||
if ( ATI_USE_STENCIL ) numConfigs *= 2;
|
||||
numConfigs *= 2; /* single- and double-buffered */
|
||||
|
||||
pConfigs = (__GLXvisualConfig*)
|
||||
xnfcalloc( sizeof(__GLXvisualConfig), numConfigs );
|
||||
if ( !pConfigs ) {
|
||||
return FALSE;
|
||||
}
|
||||
pATIConfigs = (ATIConfigPrivPtr)
|
||||
xnfcalloc( sizeof(ATIConfigPrivRec), numConfigs );
|
||||
if ( !pATIConfigs ) {
|
||||
free( pConfigs );
|
||||
return FALSE;
|
||||
}
|
||||
pATIConfigPtrs = (ATIConfigPrivPtr*)
|
||||
xnfcalloc( sizeof(ATIConfigPrivPtr), numConfigs );
|
||||
if ( !pATIConfigPtrs ) {
|
||||
free( pConfigs );
|
||||
free( pATIConfigs );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
for (db = 1; db >= 0; db--) {
|
||||
for ( accum = 0 ; accum <= ATI_USE_ACCUM ; accum++ ) {
|
||||
for ( stencil = 0 ; stencil <= ATI_USE_STENCIL ; stencil++ ) {
|
||||
pATIConfigPtrs[i] = &pATIConfigs[i];
|
||||
|
||||
pConfigs[i].vid = -1;
|
||||
pConfigs[i].class = -1;
|
||||
pConfigs[i].rgba = TRUE;
|
||||
pConfigs[i].redSize = 8;
|
||||
pConfigs[i].greenSize = 8;
|
||||
pConfigs[i].blueSize = 8;
|
||||
pConfigs[i].alphaSize = 0;
|
||||
pConfigs[i].redMask = 0x00FF0000;
|
||||
pConfigs[i].greenMask = 0x0000FF00;
|
||||
pConfigs[i].blueMask = 0x000000FF;
|
||||
pConfigs[i].alphaMask = 0x00000000;
|
||||
if ( accum ) { /* Simulated in software */
|
||||
pConfigs[i].accumRedSize = 16;
|
||||
pConfigs[i].accumGreenSize = 16;
|
||||
pConfigs[i].accumBlueSize = 16;
|
||||
pConfigs[i].accumAlphaSize = 0;
|
||||
} else {
|
||||
pConfigs[i].accumRedSize = 0;
|
||||
pConfigs[i].accumGreenSize = 0;
|
||||
pConfigs[i].accumBlueSize = 0;
|
||||
pConfigs[i].accumAlphaSize = 0;
|
||||
}
|
||||
pConfigs[i].doubleBuffer = db ? TRUE : FALSE;
|
||||
pConfigs[i].stereo = FALSE;
|
||||
pConfigs[i].bufferSize = 24;
|
||||
if ( stencil ) { /* Simulated in software */
|
||||
pConfigs[i].depthSize = 16;
|
||||
pConfigs[i].stencilSize = 8;
|
||||
} else {
|
||||
pConfigs[i].depthSize = 16;
|
||||
pConfigs[i].stencilSize = 0;
|
||||
}
|
||||
pConfigs[i].auxBuffers = 0;
|
||||
pConfigs[i].level = 0;
|
||||
if ( accum || stencil ) {
|
||||
pConfigs[i].visualRating = GLX_SLOW_CONFIG;
|
||||
} else {
|
||||
pConfigs[i].visualRating = GLX_NONE;
|
||||
}
|
||||
pConfigs[i].transparentPixel = GLX_NONE;
|
||||
pConfigs[i].transparentRed = 0;
|
||||
pConfigs[i].transparentGreen = 0;
|
||||
pConfigs[i].transparentBlue = 0;
|
||||
pConfigs[i].transparentAlpha = 0;
|
||||
pConfigs[i].transparentIndex = 0;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
pATI->numVisualConfigs = numConfigs;
|
||||
pATI->pVisualConfigs = pConfigs;
|
||||
pATI->pVisualConfigsPriv = pATIConfigs;
|
||||
GlxSetVisualConfigs( numConfigs, pConfigs, (void**)pATIConfigPtrs );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Create the ATI-specific context information */
|
||||
static Bool ATICreateContext( ScreenPtr pScreen, VisualPtr visual,
|
||||
drm_context_t hwContext, void *pVisualConfigPriv,
|
||||
@ -1181,10 +974,9 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen )
|
||||
drmVersionPtr version;
|
||||
int major, minor, patch;
|
||||
|
||||
/* Check that the GLX, DRI, and DRM modules have been loaded by testing
|
||||
/* Check that the DRI, and DRM modules have been loaded by testing
|
||||
* for known symbols in each module.
|
||||
*/
|
||||
if ( !xf86LoaderCheckSymbol("GlxSetVisualConfigs") ) return FALSE;
|
||||
if ( !xf86LoaderCheckSymbol("drmAvailable") ) return FALSE;
|
||||
if ( !xf86LoaderCheckSymbol("DRIQueryVersion") ) {
|
||||
xf86DrvMsg( pScreen->myNum, X_ERROR,
|
||||
@ -1426,10 +1218,6 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen )
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ( !ATIInitVisualConfigs( pScreen ) ) {
|
||||
ATIDRICloseScreen( pScreen );
|
||||
return FALSE;
|
||||
}
|
||||
xf86DrvMsg( pScreenInfo->scrnIndex, X_INFO,
|
||||
"[dri] Visual configs initialized\n" );
|
||||
|
||||
@ -1629,12 +1417,4 @@ void ATIDRICloseScreen( ScreenPtr pScreen )
|
||||
free( pATI->pDRIServerInfo );
|
||||
pATI->pDRIServerInfo = NULL;
|
||||
}
|
||||
if ( pATI->pVisualConfigs ) {
|
||||
free( pATI->pVisualConfigs );
|
||||
pATI->pVisualConfigs = NULL;
|
||||
}
|
||||
if ( pATI->pVisualConfigsPriv ) {
|
||||
free( pATI->pVisualConfigsPriv );
|
||||
pATI->pVisualConfigsPriv = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -37,21 +37,11 @@
|
||||
#ifndef __ATIDRIPRIV_H__
|
||||
#define __ATIDRIPRIV_H__ 1
|
||||
|
||||
#include "GL/glxint.h"
|
||||
#include "GL/glxtokens.h"
|
||||
|
||||
#define ATI_MAX_DRAWABLES 256
|
||||
|
||||
typedef struct {
|
||||
/* Nothing here yet */
|
||||
int dummy;
|
||||
} ATIConfigPrivRec, *ATIConfigPrivPtr;
|
||||
|
||||
typedef struct {
|
||||
/* Nothing here yet */
|
||||
int dummy;
|
||||
} ATIDRIContextRec, *ATIDRIContextPtr;
|
||||
|
||||
extern void GlxSetVisualConfigs(int, __GLXvisualConfig *, void **);
|
||||
|
||||
#endif /* __ATIDRIPRIV_H__ */
|
||||
|
@ -2256,8 +2256,6 @@ ATIPreInit
|
||||
|
||||
pitchInc = minPitch * pATI->bitsPerPixel;
|
||||
|
||||
pScreenInfo->maxHValue = (MaxBits(CRTC_H_TOTAL) + 1) << 3;
|
||||
|
||||
if (pATI->Chip < ATI_CHIP_264VT)
|
||||
{
|
||||
/*
|
||||
@ -2268,12 +2266,8 @@ ATIPreInit
|
||||
*/
|
||||
ATIClockRange.doubleScanAllowed = FALSE;
|
||||
|
||||
/* CRTC_H_TOTAL is one bit narrower */
|
||||
pScreenInfo->maxHValue >>= 1;
|
||||
}
|
||||
|
||||
pScreenInfo->maxVValue = MaxBits(CRTC_V_TOTAL) + 1;
|
||||
|
||||
maxPitch = minPitch * MaxBits(CRTC_PITCH);
|
||||
|
||||
if (pATI->OptionAccel)
|
||||
|
@ -395,8 +395,7 @@ ATIScreenInit(SCREEN_INIT_ARGS_DECL)
|
||||
#ifdef XF86DRI_DEVEL
|
||||
|
||||
/* Setup DRI after visuals have been established, but before
|
||||
* fbScreenInit is called. fbScreenInit will eventually call the
|
||||
* driver's InitGLXVisuals call back.
|
||||
* fbScreenInit is called.
|
||||
*/
|
||||
|
||||
/* According to atiregs.h, GTPro (3D Rage Pro) is the first chip type with
|
||||
|
@ -497,9 +497,6 @@ typedef struct _ATIRec
|
||||
DRIInfoPtr pDRIInfo;
|
||||
int drmFD;
|
||||
int irq;
|
||||
int numVisualConfigs;
|
||||
__GLXvisualConfig *pVisualConfigs;
|
||||
ATIConfigPrivPtr pVisualConfigsPriv;
|
||||
ATIDRIServerInfoPtr pDRIServerInfo;
|
||||
Bool NeedDRISync;
|
||||
Bool have3DWindows;
|
||||
|
@ -53,6 +53,23 @@ ATIValidMode
|
||||
return MODE_OK;
|
||||
}
|
||||
|
||||
{
|
||||
int maxHValue, maxVValue;
|
||||
|
||||
maxHValue = (MaxBits(CRTC_H_TOTAL) + 1) << 3;
|
||||
if (pATI->Chip < ATI_CHIP_264VT)
|
||||
{
|
||||
/* CRTC_H_TOTAL is one bit narrower */
|
||||
maxHValue >>= 1;
|
||||
}
|
||||
if (pMode->HTotal > maxHValue)
|
||||
return MODE_BAD_HVALUE;
|
||||
|
||||
maxVValue = MaxBits(CRTC_V_TOTAL) + 1;
|
||||
if (pMode->VTotal > maxVValue)
|
||||
return MODE_BAD_VVALUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* The following is done for every mode in the monitor section that
|
||||
* survives the common layer's basic checks.
|
||||
|
Loading…
Reference in New Issue
Block a user