Question about SwiftShader on Chrome

809 views
Skip to first unread message

Fernando Carvalho

unread,
Feb 9, 2012, 5:35:06 PM2/9/12
to native-cli...@googlegroups.com
I've just read, on the chromium blog, that on Chrome 18, we will find SwiftShader software rasterizer.
So I have some questions:

Is NaCl OpenGL taking advantage of that?
Is this technology available to Linux users?
Can users that run Linux with GPUs that don't have 3D acceleration, use 3D content?
Is the SwiftShader source code available on the Chromium repository?

--
Fernando

Nick Bray

unread,
Feb 9, 2012, 5:53:11 PM2/9/12
to native-cli...@googlegroups.com
Is NaCl OpenGL taking advantage of that?

Any OpenGL call made in NaCl is sent to Chrome, and Chrome deals with the call as it sees fit.  If Chrome supports SwiftShader, NaCl will automatically use it.  Ultimately, SwiftShader is entirely transparent to NaCl and people working on GPU acceleration for Chrome are the ones who have the answers you want.  That being said, I walked over and asked them for you.

Is this technology available to Linux users?

No. 

Can users that run Linux with GPUs that don't have 3D acceleration, use 3D content?

No.
 
Is the SwiftShader source code available on the Chromium repository?

No.  Code that is licensed for is typically not available.  This is the case for the PDF viewer, for example.

Rickard Eneqvist

unread,
Feb 9, 2012, 6:06:01 PM2/9/12
to native-cli...@googlegroups.com

From when I was working on Chrome on ChromeOS for tablets I built and worked a lot with the 3D acceleration components (for WebGL) and at that time at least there was a build option to build against MESA as a OpenGL backend and the command pipeline is the same as for NaCl afaik.

 

My point is that there should be support for running NaCl 3D (as well as WebGL) on Linux machines lacking a dedicated GPU (but I assume its SwiftShader specifically that's interesting here).

 

/Rickard Eneqvist

--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To post to this group, send email to native-cli...@googlegroups.com.
To unsubscribe from this group, send email to native-client-di...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/native-client-discuss?hl=en.

John Bauman

unread,
Feb 9, 2012, 6:15:53 PM2/9/12
to native-cli...@googlegroups.com
Yes, you can try --use-gl=osmesa on the command line if you don't have a gpu, but the performance will be terrible.

Fernando Carvalho

unread,
Feb 9, 2012, 6:44:07 PM2/9/12
to native-cli...@googlegroups.com
When I read that SwiftShader was bundled with Chrome 18, I thought that it would help users with poor GPUs even on Linux.
That would be great if we could see that.
Fernando
Reply all
Reply to author
Forward
0 new messages