amonakov / primus

Low-overhead client-side GPU offloading
ISC License
217 stars 20 forks source link

primusrun just black screen except set PRIMUS_UPLOAD=1 #136

Closed kkndyu closed 10 years ago

kkndyu commented 10 years ago

Hi amonakov, thanks for the great job, I can play game under Arch

I use thinkpad t440p

the kernel [yu@thestars ~]$ uname -a Linux thestars 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64 GNU/Linux

the video card: [yu@thestars ~]$ lspci|grep VGA 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) 02:00.0 VGA compatible controller: NVIDIA Corporation GK208M [GeForce GT 730M](rev ff)

packages: intel-dri xf86-video-intel bumblebee nvidia primus lib32-primus lib32-nvidia-utils lib32-intel-dri lib32-virtualgl

no special xorg.conf

optirun works ok both 32 and 64 applications, when use primusrun glxgears, no errors occur, but the window is jus black, and the fps is low, and maximize and minmize the window, there are one frame of static image show in this window, use optirun -b primus failed too, act the same. but when set PRIMUS_UPLOAD=1 , primusrun glxgears works fine.

here is the result of run LIBGL_DEBUG=verbose primusrun glxgears

[yu@thestars ~]$ LIBGL_DEBUG=verbose primusrun glxgears libGL: screen 0 does not appear to be DRI3 capable libGL: pci id for fd 6: 8086:0416, driver i965 libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/i965_dri.so libGL: Can't open configuration file /home/yu/.drirc: No such file or directory. libGL: screen 0 does not appear to be DRI3 capable libGL: pci id for fd 8: 8086:0416, driver i965 libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/i965_dri.so libGL: Can't open configuration file /home/yu/.drirc: No such file or directory. libGL: screen 0 does not appear to be DRI3 capable libGL: pci id for fd 16: 8086:0416, driver i965 libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/i965_dri.so libGL: Can't open configuration file /home/yu/.drirc: No such file or directory. libGL: Can't open configuration file /home/yu/.drirc: No such file or directory.

BTW: nouveau just can't work with the GT 730M on my test, so I skip its report.

kkndyu commented 10 years ago

oh , the version

community/bumblebee 3.2.1-3 [installed] NVIDIA Optimus support for Linux through VirtualGL community/primus 20131226-1 [installed] Faster OpenGL offloading for Bumblebee multilib/lib32-primus 20131226-1 [installed] Faster OpenGL offloading for Bumblebee (32-bit) multilib/lib32-mesa-libgl 10.1.0-2 [installed] Mesa 3-D graphics library (32-bit) multilib/lib32-mesa 10.1.0-2 [installed] an open-source implementation of the OpenGL specification (32-bit) multilib/lib32-nvidia-utils 334.21-3 [installed] NVIDIA drivers utilities (32-bit) extra/nvidia 334.21-2 [installed] NVIDIA drivers for linux

if need more log or conf files, plz tell me, I'll post it

amonakov commented 10 years ago

Can you try with mesa-git package from AUR? As I understand, it's a regression caused by glx update in xorg-1.15, same as #133 and #134.

kkndyu commented 10 years ago

Hi, sorry for late, I'm new to Arch.

I tried the mesa-git, There are two packages: mesa-git-10.2.0_devel.61918-1-x86_64.pkg.tar.xz, mesa-libgl-git-10.2.0_devel.61918-1-x86_64.pkg.tar.xz.

[yu@thestars ~]$ pacman -Qo /usr/lib/libGL.so /usr/lib/libGL.so is owned by mesa-libgl-git 10.2.0_devel.61918-1

But it seems no effect, the window is still black.

Should I try other packages? I can do more tests. It's a hard time to me to let the nvidia cards runing , I have spent so many days on it, and It's OK to using a little more time .......

BTW: the result of optirun glxspheres64 or PRIMUS_UPLOAD=1 primusrun glxspheres64 is low, only about 130-160 , my intel card can run 180-200, is that normal? What can I do to improve its performents?

amonakov commented 10 years ago

Let's gather all related reports in one place. Please follow the call for testing at https://github.com/amonakov/primus/issues/138