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.

Latest Linux Hardware Reviews
  1. Mini-Box M350: A Simple, Affordable Mini-ITX Case
  2. Overclocking The AMD AM1 Athlon & Sempron APUs
  3. AMD Athlon 5350 / 5150 & Sempron 3850 / 2650
  4. Upgraded Kernel & Mesa Yield A Big Boost For Athlon R3 Graphics
Latest Linux Articles
  1. A Quick Look At GCC 4.9 vs. LLVM Clang 3.5
  2. Are AMD Athlon/Sempron APUs Fast Enough For Steam On Linux?
  3. AMD Athlon's R3 Graphics: RadeonSI Gallium3D vs. Catalyst
  4. GCC 4.9 Compiler Optimization Benchmarks For Faster Binaries
Latest Linux News
  1. R600 Gallium3D Disables LLVM Back-End By Default
  2. Fedora 21 Gets GNOME 3.12, PHP 5.6, Mono 3.4
  3. Fedora Workstation Is Making Me Quite Excited
  4. Maynard: A Lightweight Wayland Desktop
  5. Chromium Browser Going Through Growing Pains In Ubuntu 14.04
  6. KDE 4.13 Is Being Released Today With New Features
  7. Trying Out Radeon R9 290 Graphics On Open-Source
  8. Intel Broadwell GT3 Graphics Have Dual BSD Rings
  9. Early Linux 3.15 Benchmarks Of Intel Core i7 + Radeon
  10. Red Hat Releases Its RHEL 7 Release Candidate
  11. New Features Coming To Xubuntu 14.04 LTS
  12. NVIDIA Officially Releases CUDA 6
Latest Forum Discussions
  1. Updated and Optimized Ubuntu Free Graphics Drivers
  2. The GNOME Foundation Is Running Short On Money
  3. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  4. Change installation destination from home directory
  5. After Jack Keane, RuseSoft will briing Ankh 3 to Linux through Desura
  6. Bye bye BSD, Hello Linux: A Sys Admin's Story
  7. New tool for undervolt/overclock AMD K8L and K10 processors
  8. How to enable opengl 3.3 on r9 270?