View Full Version : Unsolved Enable direct rendering to redirected windows
josch
May 9th, 2008, 08:31 AM
Hi!
Can this be used yet:
http://hoegsberg.blogspot.com/2008/03/i-just-committed-last-bit-of-dri2-work.html
and how?
I'm using intel X3000 and ubuntu hardy.
adamk
May 9th, 2008, 10:06 AM
That can be used, but it requires updating your xserver, 2D drivers, and 3D drivers from source from the Xorg development tree. If you've have to ask how, it's probalby not something you should attempt (no offense). In addition, running code from the Xorg development tree might cause more problems than it will fix.
Adam
josch
May 9th, 2008, 11:09 AM
okay, thanks for the warning
if its more than checking out some git tree, doing configure && make && make install and editing some configs then it really could be too much for me.
i dont know about the stable-ness of the things that are required but i read about fedora 9 having included this feature so i assumed that it is ready to use.
so how is it done? i have a fresh new install here so there is nothing to loose.
some-guy
May 9th, 2008, 03:44 PM
dri2 is only in the intel-batchbuffer branch, and the braches of that, there was already a discussion on this, and the batchbuffer branch has many other improvement, but afaik, no xvmc
You can compile it to your home, or /opt, so that it doesn't interfere with your normal server :)
follow kristian's guide: http://hoegsberg.blogspot.com/2008/02/building-and-installing-drmdrix-stack.html
after that you also need to compile your input devices in a similar fashion, look at freedesktop's cgit (http://cgit.freedesktop.org/)
josch
May 9th, 2008, 03:56 PM
wow, kristian's guide really covers all my questions! :D
and it's even written by Kristian Høgsberg himself! great! I will try that at home!
josch
May 9th, 2008, 07:22 PM
i cloned drm, dri2proto, mesa and xserver successfully and also changed xf86-video-intel to the intel-batchbuffer branch.
i could compile drm and dri2proto but when it comes to mesa i get:
glcontextmodes.c:42:23: error: GL/glxint.h: No such file or directory
:-(
adamk
May 9th, 2008, 07:28 PM
That's in the glproto repository, which you will have to clone and build... Your distro *might* provide it in a package, but I don't know if you need a git version of glproto to build a git version of mesa.
Adam
josch
May 9th, 2008, 08:40 PM
great, this worked:
sudo apt-get install x11proto-xcmisc-dev x11proto-gl-dev x11proto-xf86dri-dev x11proto-bigreqs-dev x11proto-resource-dev x11proto-fonts-dev x11proto-trap-dev x11proto-evie-dev libxfont-dev libfontenc-dev x11proto-scrnsaver-dev libpciaccess-dev
now mesa compiles and xserver configures correctly
but xserver fails to compile:
In file included from getselev.c:59:
/usr/include/X11/extensions/XI.h:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XEventClass’
In file included from getselev.c:66:
getprop.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
getselev.c: In function ‘ProcXGetSelectedExtensionEvents’:
getselev.c:100: error: ‘XEventClass’ undeclared (first use in this function)
what to do now?
(dont worry i will write a comprehensive tutorial if i get this working ;) )
adamk
May 9th, 2008, 09:09 PM
That's part of the inputproto git repo.
Adam
josch
May 9th, 2008, 09:47 PM
dpkg -S XI.h
x11proto-input-dev: /usr/include/X11/extensions/XI.h
grml... could have found this out myself - sry if i look like the noob i am :P
will clone the inputproto tree from git and edit this post with my findings
EDIT: oh and great thanks for all your help adam!!
EDIT2: installing xorg/proto/inputproto from git worked! wohoo! \o/
EDIT3: i also had to get xorg/lib/libpciaccess from git and insert a space into the aclocal export line
export ACLOCAL="aclocal -I $HOME/install/share/aclocal"
now xf86-video-intel compiled and i think i'm ready to test now
josch
May 10th, 2008, 08:06 AM
Okay, I also had to get some input modules from git to purge some error messages but now when i run Xorg after inserting the correct drm and i915 kernel modules I get this error:
symbol lookup error: /home/josch/dri2/lib/xorg/modules/drivers/intel_drv.so: undefined symbol: pci_device_map_range
the xorg log looks quite okay though: http://phpfi.com/315738
adamk
May 10th, 2008, 01:25 PM
The log file you posted is truncated :-) Is Xorg actually working for you now?
Adam
josch
May 10th, 2008, 01:28 PM
no it's not. :(
thats the reason why the log file is truncated.
xorg dies with the error i stated above - how do i solve that?
symbol lookup error: /home/josch/dri2/lib/xorg/modules/drivers/intel_drv.so: undefined symbol: pci_device_map_range
adamk
May 10th, 2008, 01:40 PM
No idea :-) Remember, when you are running git code, it is all quite experimental and can be broken at any give time. So while you're installation may not be complete, it's also possible that it's simply not working at the moment. If you want to run git Xorg and DRI code, you should probably subscribe to the Xorg and dri-devel mailing lists. If it remains broken after a few days of pulling updates and rebuilding everything, you could ask on the Xorg mailing list (since intel_drv.so is the 2D driver, so this is probably not a DRI related issue).
Adam
josch
May 10th, 2008, 02:08 PM
hrm... okay - would be too awesome to get dri2 working ;)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.