Permalink
Browse files

NV50: Some basic code to get kernel modesetting going.

- This will get a cleanup later on.
  • Loading branch information...
madman2003 committed Jun 22, 2008
1 parent df52dc4 commit 75d8947d40e19c5fc039caf4289cf94fd1570eda
Showing with 783 additions and 47 deletions.
  1. +11 −2 configure.ac
  2. +2 −0 src/Makefile.am
  3. +585 −0 src/drmmode_display.c
  4. +65 −0 src/drmmode_display.h
  5. +1 −0 src/nouveau_bo.c
  6. +1 −0 src/nouveau_bo.h
  7. +3 −1 src/nv_const.h
  8. +24 −5 src/nv_dri.c
  9. +82 −39 src/nv_driver.c
  10. +2 −0 src/nv_include.h
  11. +7 −0 src/nv_type.h
View
@@ -91,9 +91,18 @@ CFLAGS="$CFLAGS -minline-all-stringops"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> ]], [[ ]])],
[ CFLAGS="$OLD_CFLAGS -minline-all-stringops"],[CFLAGS="$OLD_CFLAGS"])
-AC_SUBST([CFLAGS])
+# needed for the next test
+CFLAGS="$CFLAGS $XORG_CFLAGS"
+
+AC_CHECK_HEADER([xf86drmMode.h],[DRM_MODE=yes],[DRM_MODE=no],
+ [#include "stdint.h" ]
+)
-AC_SUBST([XORG_CFLAGS])
+if test "x$DRM_MODE" = xyes; then
+ AC_DEFINE(XF86DRM_MODE,1,[DRM kernel modesetting])
+fi
+
+AC_SUBST([CFLAGS])
AC_SUBST([moduledir])
DRIVER_NAME=nouveau
View
@@ -86,5 +86,7 @@ nouveau_drv_la_SOURCES = \
nouveau_output.h \
nouveau_connector.h \
nouveau_modeset.h \
+ drmmode_display.c \
+ drmmode_display.h \
nv_pcicompat.h
Oops, something went wrong.

0 comments on commit 75d8947

Please sign in to comment.