Skip to contentSkip to conversation

libkms: Add nouveau support.

PATCH New Marcin Kościelnicki 1 participant 1 message Feb 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 3/6 libkms: Add nouveau support.

---

This is a corrected version, the previous one was missing some fixes..

 libkms/Makefile.am |    4 +
 libkms/internal.h  |    2 +
 libkms/linux.c     |    4 +
 libkms/nouveau.c   |  220 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 230 insertions(+), 0 deletions(-)
 create mode 100644 libkms/nouveau.c
libkms/Makefile.am +4 -0
index e84deb1..0375ae4 100644
@@ -21,6 +21,10 @@ if HAVE_VMWGFX
 libkms_la_SOURCES += vmwgfx.c
 endif
 
+if HAVE_NOUVEAU
+libkms_la_SOURCES += nouveau.c
+endif
+
 libkmsincludedir = ${includedir}/libkms
 libkmsinclude_HEADERS = libkms.h
 
libkms/internal.h +2 -0
index 9d1c5f7..63122d1 100644
@@ -68,4 +68,6 @@ int vmwgfx_create(int fd, struct kms_driver **out);
 
 int intel_create(int fd, struct kms_driver **out);
 
+int nouveau_create(int fd, struct kms_driver **out);
+
 #endif
libkms/linux.c +4 -0
index 94e1b52..02182d3 100644
@@ -107,6 +107,10 @@ linux_from_sysfs(int fd, struct kms_driver **out)
 	else if (!strcmp(name, "vmwgfx"))
 		ret = vmwgfx_create(fd, out);
 #endif
+#ifdef HAVE_NOUVEAU
+	else if (!strcmp(name, "nouveau"))
+		ret = nouveau_create(fd, out);
+#endif
 	else
 		ret = -ENOSYS;
 
libkms/nouveau.c new file +220 -0

220 lines not on this page · raw message

Signature · 1 line
1.6.4.4

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel