<br><br><br>Hi,<br><br>I have a geforce 4mx 440 agp 8x, and I'm trying to use the GBM library, <br>(as jbarnes in: <a href="http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/" target="_blank">http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/</a><br>
and David Hermann in KMSCON: <a href="https://github.com/dvdhrm/kmscon" target="_blank">https://github.com/dvdhrm/kmscon</a>), <br>without success.<br><br>when I try to create a gbm_device, I get: (below the code.)<br><br>
nouveau_drm_screen_create: unknown chipset nv18<br>
dri_init_screen_helper: failed to create pipe_screen<br>loaded /usr/lib/gbm/pipe_nouveau.so<br>nouveau_drm_screen_create: unknown chipset nv18<br>failed to load driver: nouveau<br><br><br>My question is:<br>Is this not supported by the driver?,<br>
It's a GBM problem? or am I doing something wrong?<br><br><br><br>when I run the following code:<br><br>#include <errno.h><br>#include <fcntl.h><br>
#include <gbm.h><br><br>#include <stdlib.h><br>#include <stdio.h><br><br>#include <xf86drmMode.h><br>#include <xf86drm.h><br>#include <libdrm/drm.h><br><br>int main(int argc, char* argv[])<br>
{<br> int fd;<br> struct gbm_device *gbm = NULL;<br><br> fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC);<br> if (fd < 0) {<br> perror("====> open error /dev/dri/card0..."); <br>
exit(-1);<br> }<br> printf("..... open /dev/dri/card0, fd = %d\n\n", fd);<br> <br> gbm = gbm_create_device(fd);<br> if (!gbm) {<br> perror("\n====> cannot create gbm device..."); <br>
fprintf(stderr, "====> errno = %d\n", errno);<br> exit(-1);<br> }<br><br> exit(0);<br>}<br><br><br>I get:<br><br>..... open /dev/dri/card0, fd = 3<br><br>nouveau_drm_screen_create: unknown chipset nv18<br>
dri_init_screen_helper: failed to create pipe_screen<br>loaded /usr/lib/gbm/pipe_nouveau.so<br>nouveau_drm_screen_create: unknown chipset nv18<br>failed to load driver: nouveau<br><br>====> cannot create gbm device...: No such file or directory<br>
====> errno = 2 <br><br><br>some details:<br>distro: Archlinux<br>kernel: 3.3.3<br>Mesa 8.0 from git: ./autogen.sh --prefix=/usr --with-dri-driverdir=/usr/lib/xorg/modules/dri \<br>
--with-dri-drivers=i915,i965,nouveau,radeon,r200 \<br> --with-gallium-drivers=r300,r600,nouveau,svga,swrast \<br> --with-egl-platforms=drm,x11 \<br> --enable-gallium-llvm \<br>
--enable-gallium-egl \<br> --enable-shared-dricore \<br> --enable-shared-glapi \<br> --enable-egl \<br> --enable-gles1 \<br> --enable-gles2 \<br>
--enable-openvg \<br> --enable-glx-tls \<br> --enable-xcb \<br> --enable-gbm \<br> --enable-dri \<br> --enable-xa \<br> --enable-gallium-gbm \<br>
--enable-osmesa \<br> --enable-texture-float \<br> --enable-debug<br><br>libdrm 2.4.33 from git.<br>xf86-video-nouveau from git.<br><br><br>If necessary I will provide any other relevant information.<br>
<br>Thanks,<br>Gabriel Muguerza.<br><br>(English is not my native language, please excuse the typos.)<br><br><br><br><br><br>