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. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
  2. AMD Radeon R9 290 Open-Source Driver Works, But Has A Ways To Go
  3. Trying The Configurable 45 Watt TDP With AMD's A10-7800 / A6-7400K
  4. Sumo's Omni Gets Reloaded
Latest Linux Articles
  1. Preview: OS X 10.10 Yosemite vs. Ubuntu Linux GPU Performance
  2. Radeon Graphics Yield Mixed Results With Linux 3.17 Kernel
  3. AMD's RadeonSI Driver Sped Up A Lot This Summer
  4. Intel's Latest Linux Graphics Code Competes Against OS X 10.9
Latest Linux News
  1. MenuetOS Updated With SMP Threads & Onscreen Keyboard
  2. Mesa Has A New Release Manager
  3. Enlightenment E19 Lands Its New Wayland Compositor Code
  4. Nouveau Turns Into A Mess In Latest Linux 3.17 + Mesa 10.3-dev Tests
  5. New GCC 5.0 Changes, Command-Line Options That Landed So Far
  6. SteamOS Update 133 Has Better Intel Performance, VA-API
  7. DRM Graphics Changes For Linux 3.18 Might End Up Being Smaller
  8. Ioquake3 Works On Finally Switching Over To SDL2
  9. Linux 3.17-rc2 Release Celebrates 23 Years Of Linux
  10. Leadwerks Launches On Steam For Linux
Latest Forum Discussions
  1. AMD Releases UVD Video Decode Support For R600 GPUs
  2. Users defect to Linux as OpenBSD removes Lynx from base system
  3. Chinese People Try To Patent Wine On ARM
  4. American Citizens running AMOK for food stamps
  5. "The World's Most Highly-Assured OS" Kernel Open-Sourced
  6. What Linux Distribution Should Be Benchmarked The Most?
  7. New generation ultra-thin gaming notebook-MSI GS702PE Stealth all around review
  8. Canonical Joined The Khronos Group To Help Mir/Wayland Drivers