1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Turning Mesa Into JavaScript For The Web?

Mesa

Published on 06 March 2012 08:19 AM EST
Written by Michael Larabel in Mesa
13 Comments

Besides the recent talk about using Gallium3D's LLVMpipe for Mozilla Firefox, there's another interesting technical discussion happening now about using Mesa on the web to emulate the full OpenGL API using the WebGL API.

Alon Zakai is one of the developers behind Emscripten and started the latest Mesa-for-the-web talk. Emscripten is the interesting project I talked about last year for generating JavaScript from LLVM bit-code. If the code can be lowered-down via LLVM, it can be converted to JavaScript that can be executed in the browser. C/C++ can be easily lowered-down via LLVM and then executed in the browser. Emscripten developers have already used this means of translation to bring Python, Poppler, and other large projects into becoming large JavaScript projects on the web.

The Emscripten developers latest effort has been "to be able to compile OpenGL games from desktop so that they work on WebGL on the web." Quite interesting. The problem that the open-source developers are facing at the moment is the lack of the full OpenGL API on the web, but rather they have just the WebGL API to poke. The Emscripten developers therefore hope using Mesa in some manner may come to their rescue for being able to expose the full OpenGL API while internally it's using the WebGL interfaces. Mesa is largely written in C (and can be built under LLVM/Clang already) so in theory it might possibly work to use Emscripten to convert portions of the code-base into JavaScript.

The developers working on this so far have been able to implement a portion of the OpenGL ES 2.0 API and then brought the es2gears demo to the web. WebGL effectively provides a sub-set of OpenGL ES 2.0 functionality so right now that much isn't a huge challenge.

The discussion about the possibilities for Mesa and Emscripten can be explored further via this mailing list thread, but at the moment there isn't any definitive outcome.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
  2. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  3. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  4. MSAA RadeonSI Gallium3D Performance Preview
Latest Linux News
  1. X.Org Server Shatter Project Fails
  2. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  3. Fedora 21 Alpha Finally Coming Next Week
  4. Ubuntu Touch/Phone Reaches Its First RTM Image
  5. The KMS Mode-Setting Driver Was Imported For X.Org Server 1.17
  6. SNA & UXA Intel Benchmarks With X.Org Server 1.16
  7. Graphics Driver Changes Coming In The Linux 3.18 Kernel
  8. Tropico 5 Being Released For Linux Gamers This Week
  9. Eclipse IDE Starts Firing Up On Wayland's Weston
  10. OpenSUSE Announcement On SUSE's Recent Merger
Latest Forum Discussions
  1. Can Linux kill a motherboard?
  2. Stop grabbing my keyboard :(
  3. New Group Calls For Boycotting Systemd
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. Best Radeon for a Power Mac G5?
  6. New stress testing utility for GPU's
  7. Hd 6850
  8. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)