https://bugzilla.novell.com/show_bug.cgi?id=828341 https://bugzilla.novell.com/show_bug.cgi?id=828341#c0 Summary: glTexSubImage performance low on optimus laptop (intel/nvidia) Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: mandrav@gmail.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 Using Mesa9 (I have tried with versions up to 9.1.4-245.1), performance of glTexSubImage calls (using the Intel card) is very bad. This affects badly performance when using the primus backend of the bumblebee project (for optimus laptops). I have managed to find a work-around which I hope will help. If I edit the file ~/.drirc and put the following in it (disables texture tiling), performance increases drammatically: <driconf> <device screen="0"> <application name="all"> <option name="texture_tiling" value="false" /> </application> </device> </driconf> Reproducible: Always Steps to Reproduce: 1. Run "vblank_mode=0 /usr/lib64/mesa-demos/tests/subtexrate" Actual Results: ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: option value of option vblank_mode ignored. GL_RENDERER: Mesa DRI Intel(R) Ivybridge Mobile glTexSubImage: 512 x 512, 4 Bpp: 312 calls in 5.01 = 62.28 calls/sec, 62.28 MB/s glTexSubImage: 256 x 256, 4 Bpp: 1244 calls in 5.00 = 248.55 calls/sec, 62.14 MB/s glCopyTexSubImage: 512 x 512, 4 Bpp: 16858 calls in 5.00 = 3371.60 calls/sec, 3371.60 MB/s glCopyTexSubImage: 256 x 256, 4 Bpp: 63608 calls in 5.00 = 12721.60 calls/sec, 3180.40 MB/s Expected Results: (the following are the results after applying the work-around) ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: option value of option vblank_mode ignored. GL_RENDERER: Mesa DRI Intel(R) Ivybridge Mobile glTexSubImage: 512 x 512, 4 Bpp: 5516 calls in 5.00 = 1103.20 calls/sec, 1103.20 MB/s glTexSubImage: 256 x 256, 4 Bpp: 22112 calls in 5.00 = 4422.40 calls/sec, 1105.60 MB/s glCopyTexSubImage: 512 x 512, 4 Bpp: 9012 calls in 5.00 = 1802.40 calls/sec, 1802.40 MB/s glCopyTexSubImage: 256 x 256, 4 Bpp: 36940 calls in 5.00 = 7386.52 calls/sec, 1846.63 MB/s # lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fd4 (rev ff) # glxinfo2 | grep OpenGL OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile OpenGL version string: 3.0 Mesa 9.1.4 OpenGL shading language version string: 1.30 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.