View Single Post
Old 12-26-10, 02:36 PM   #12
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Nvidia Driver team will oversleep Web GPU acceleration?

OK. I know why WebGL in chromium is crashing on Nvidia hardware. This is the way chromium try to activate OpenGL:
1) try libEGL / libGLESv2 (if not present display error and crash)
2) try libGL
3) try libosmesa
Because chromium crashes after 1st try there is no chance to use Nvidia's libGL.

Here is workaround which works for me:
Code:
chromium --use-gl=desktop --enable-webgl
chromium run this way does not crash on WebGL content but displays this warning:
Code:
[2323:2323:33120768985:ERROR:app/gfx/gl/gl_context_linux.cc(539)] glXChooseFBConfig failed.
When trying to run experiment on http://www.chromeexperiments.com/webgl
here comes flood of missing GL functions:
Code:
[2323:2323:33631991252:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetProgramiv: unknown program
[2323:2323:33631991390:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetActiveAttrib: unknown program
[2323:2323:33631991485:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetAttribLocation: unknown program
[2323:2323:33631991631:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetProgramiv: unknown program
[2323:2323:33631991771:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetActiveAttrib: unknown program
[2323:2323:33631991866:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetAttribLocation: unknown program
[2323:2323:33631992040:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetProgramiv: unknown program
Here are GL errors when chromium is run with GPU acceleration of several things:
Code:
chromium --use-gl=desktop --enable-accelerated-2d-canvas --enable-accelerated-compositing
Errors on console:
Code:
[2462:2462:34027764084:ERROR:app/gfx/gl/gl_context_linux.cc(539)] glXChooseFBConfig failed.
[2462:2462:34027801765:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glShaderSource: unknown shader
[2462:2462:34027801790:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glCompileShader: unknown shader
[2462:2462:34027801831:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetShaderiv: unknown shader
[2462:2462:34027801948:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glShaderSource: unknown shader
[2462:2462:34027801957:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glCompileShader: unknown shader
[2462:2462:34027801995:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetShaderiv: unknown shader
[2462:2462:34027802113:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glAttachShader: unknown program
[2462:2462:34027802122:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glAttachShader: unknown program
[2462:2462:34027802131:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glLinkProgram: unknown program
[2462:2462:34027802170:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetProgramiv: unknown program
[2462:2462:34027802284:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glDeleteShader: unknown shader
[2462:2462:34027802293:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glDeleteShader: unknown shader
[2462:2462:34027802303:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glUniformLocation: unknown program
[2462:2462:34027802387:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glUniformLocation: unknown program
[2462:2462:34027802473:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetAttribLocation: unknown program
[2462:2462:34027802563:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glShaderSource: unknown shader
[2462:2462:34027802572:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glCompileShader: unknown shader
[2462:2462:34027802610:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetShaderiv: unknown shader
[2462:2462:34027802727:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glShaderSource: unknown shader
[2462:2462:34027802736:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glCompileShader: unknown shader
[2462:2462:34027802776:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetShaderiv: unknown shader
[2462:2462:34027802880:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glAttachShader: unknown program
[2462:2462:34027802889:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glAttachShader: unknown program
[2462:2462:34027802896:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glLinkProgram: unknown program
[2462:2462:34027802937:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetProgramiv: unknown program
[2462:2462:34027803044:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glDeleteShader: unknown shader
[2462:2462:34027803052:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glDeleteShader: unknown shader
[2462:2462:34027803063:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glUniformLocation: unknown program
[2462:2462:34027803140:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glUniformLocation: unknown program
[2462:2462:34027803235:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glUniformLocation: unknown program
[2462:2462:34027803315:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glGetAttribLocation: unknown program
[2462:2462:34027803393:ERROR:gpu/command_buffer/service/gles2_cmd_decoder.cc(3869)] glUniformLocation: unknown program
[2462:2462:34028621510:ERROR:app/gfx/gl/gl_context_linux.cc(539)] glXChooseFBConfig failed.
zbiggy is offline   Reply With Quote