xf86-video-intel: Branch 'modesetting-gem' - 4 commits - configure.ac src/bios_reader/.gitignore src/i830.h src/i830_lvds.c src/i830_quirks.c
Jesse Barnes
jbarnes at kemper.freedesktop.org
Wed Aug 20 12:11:06 PDT 2008
configure.ac | 6 ++++--
src/bios_reader/.gitignore | 1 +
src/i830.h | 1 +
src/i830_lvds.c | 4 ++--
src/i830_quirks.c | 11 +++++++++++
5 files changed, 19 insertions(+), 4 deletions(-)
New commits:
commit 0de8ca36306c506356e82d500134b4eeb96a6080
Merge: f26bcb9... 5eccb5e...
Author: Jesse Barnes <jbarnes at virtuousgeek.org>
Date: Wed Aug 20 12:11:00 2008 -0700
Merge branch 'master' into modesetting-gem
Conflicts:
configure.ac
diff --cc configure.ac
index 87dad69,47f7fe2..e6a2f6f
--- a/configure.ac
+++ b/configure.ac
@@@ -92,11 -91,7 +92,11 @@@ drm_cflags=$(pkg-config --cflags libdrm
# Checks for header files.
AC_HEADER_STDC
+save_CFLAGS="$CFLAGS"
+CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
+CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
+AC_MSG_CHECKING([whether to include DRI support])
- if test x$DRI = xauto; then
+ if test x$DRI != xno; then
AC_CHECK_FILE([${sdkdir}/dri.h],
[have_dri_h="yes"], [have_dri_h="no"])
AC_CHECK_FILE([${sdkdir}/sarea.h],
@@@ -105,13 -100,9 +105,15 @@@
[have_dristruct_h="yes"], [have_dristruct_h="no"])
AC_CHECK_FILE([${sdkdir}/damage.h],
[have_damage_h="yes"], [have_damage_h="no"])
+ AC_CHECK_HEADER(xf86drmMode.h,
+ [DRM_MODE=yes],[DRM_MODE=no]
+ [#include "stdint.h"])
+ if test "x$DRM_MODE" = xyes; then
+ AC_DEFINE(XF86DRM_MODE,1,[DRM kernel modesetting])
+ fi
-
+ fi
+ AC_MSG_CHECKING([whether to include DRI support])
+ if test x$DRI = xauto; then
if test "$have_dri_h" = yes -a \
"$have_sarea_h" = yes -a \
"$have_dristruct_h" = yes; then
commit 5eccb5ec7ea78b5800f98decd4216d39b9ebe5ec
Author: Julien Cristau <jcristau at debian.org>
Date: Wed Aug 20 15:33:59 2008 +0800
Don't skip the checks for DRI headers with --enable-dri
diff --git a/configure.ac b/configure.ac
index b24a154..47f7fe2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,8 +91,7 @@ sdkdir=$(pkg-config --variable=sdkdir xorg-server)
# Checks for header files.
AC_HEADER_STDC
-AC_MSG_CHECKING([whether to include DRI support])
-if test x$DRI = xauto; then
+if test x$DRI != xno; then
AC_CHECK_FILE([${sdkdir}/dri.h],
[have_dri_h="yes"], [have_dri_h="no"])
AC_CHECK_FILE([${sdkdir}/sarea.h],
@@ -101,7 +100,9 @@ if test x$DRI = xauto; then
[have_dristruct_h="yes"], [have_dristruct_h="no"])
AC_CHECK_FILE([${sdkdir}/damage.h],
[have_damage_h="yes"], [have_damage_h="no"])
-
+fi
+AC_MSG_CHECKING([whether to include DRI support])
+if test x$DRI = xauto; then
if test "$have_dri_h" = yes -a \
"$have_sarea_h" = yes -a \
"$have_dristruct_h" = yes; then
commit 1baebabc3af9f21a5b8084788ecd88dc66ce78de
Author: Jesse Barnes <jbarnes at virtuousgeek.org>
Date: Tue Aug 19 16:02:55 2008 -0700
Add swf_dumper to .gitignore
diff --git a/src/bios_reader/.gitignore b/src/bios_reader/.gitignore
index 49312f2..5055aa5 100644
--- a/src/bios_reader/.gitignore
+++ b/src/bios_reader/.gitignore
@@ -1,2 +1,3 @@
bios_dumper
+swf_dumper
bios_reader
commit 646bbdc4b6a7b887ee8f0e51fdff5d07c4586329
Author: Jesse Barnes <jbarnes at virtuousgeek.org>
Date: Tue Aug 19 15:05:00 2008 -0700
Add quirk for pre-915s with working PFIT regs
The regs are undocumented, but on some machines they work fine, so add this
quirk to indicate it.
diff --git a/src/i830.h b/src/i830.h
index e2b4885..73fb2ad 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -970,6 +970,7 @@ extern const int I830CopyROP[16];
#define QUIRK_PIPEA_FORCE 0x00000008
#define QUIRK_IVCH_NEED_DVOB 0x00000010
#define QUIRK_RESET_MODES 0x00000020
+#define QUIRK_PFIT_SAFE 0x00000040
extern void i830_fixup_devices(ScrnInfoPtr);
#endif /* _I830_H_ */
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index e5feab0..801261a 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -999,8 +999,8 @@ i830_lvds_create_resources(xf86OutputPtr output)
* Panel fitting control
*/
- /* XXX Disable panel fitting setting on pre-915. */
- if (!IS_I9XX(pI830))
+ /* Disable panel fitting setting on untested pre-915 chips */
+ if (!IS_I9XX(pI830) && !(pI830->quirk_flag & QUIRK_PFIT_SAFE))
return;
panel_fitting_atom = MakeAtom(PANEL_FITTING_NAME,
diff --git a/src/i830_quirks.c b/src/i830_quirks.c
index a3ed044..038676e 100644
--- a/src/i830_quirks.c
+++ b/src/i830_quirks.c
@@ -162,6 +162,15 @@ static void i830_dmi_dump(void)
}
/*
+ * Old chips have undocumented panel fitting registers. Some of them actually
+ * work; this quirk indicates that.
+ */
+static void quirk_pfit_safe (I830Ptr pI830)
+{
+ pI830->quirk_flag |= QUIRK_PFIT_SAFE;
+}
+
+/*
* Some machines hose the display regs regardless of the ACPI DOS
* setting, so we need to reset modes at ACPI event time.
*/
@@ -293,6 +302,8 @@ static i830_quirk i830_quirk_list[] = {
/* HP Pavilion ze4944ea needs pipe A force quirk (See LP: #242389) */
{ PCI_CHIP_I855_GM, 0x103c, 0x3084, quirk_pipea_force },
+ { PCI_CHIP_I855_GM, 0x161f, 0x2030, quirk_pfit_safe },
+
/* ThinkPad X40 needs pipe A force quirk */
{ PCI_CHIP_I855_GM, 0x1014, 0x0557, quirk_pipea_force },
More information about the xorg-commit
mailing list