首页> 外文会议>IEEE International Conference on Parallel and Distributed Systems >The design of LLVM-based shader compiler for embedded architecture
【24h】

The design of LLVM-based shader compiler for embedded architecture

机译:基于LLVM的嵌入式架构的着色器编译器设计

获取原文

摘要

The increasing hand-held devices has resulted in widespread use of Apps. To sustain the Apps performance, most developers use Graphic Processing Units (GPUs) as hardware accelerator recently. As a result, GPUs become the basic system requirement in the smart hand-held devices. With the improvement of GPUs techniques, the rendering pipeline has become programmable by using the shading language proposed from DirectX and OpenGL. A shader compiler is essential to compile the shading language into GPU assembly in order to run on programmable rendering pipelines. In this thesis, we describe a case study for the process to implement an OpenGL-ES 2.0 shader compiler for new GPU designed by an ITRI team. The compiler is based on LLVM and OpenGL framework Mesa. We use the front-end from Mesa that translates the OpenGL-ES shading language (GLSL ES) 2.0 to TGSI intermediate form and the Gallium3D device driver framework in Mesa will translate the TGSI to LLVM bitcode. Finally, we use the LLVM as backend to compile the bitcode to assembly NV gpu program4. In our preliminary experimental results, we use the gpu simulator provided from ITRI and GLES benchmark to show that our LLVM based shader compiler is able to generate reliable codes for basic OpenGL-ES programs.
机译:增加的手持设备导致应用程序广泛使用。为了维持应用程序性能,大多数开发人员最近使用图形处理单元(GPU)作为硬件加速器。因此,GPU成为智能手持设备中的基本系统要求。随着GPU技术的改进,通过使用DirectX和OpenGL所提出的着色语言,渲染管道已经成为可编程。着色器编译器对于将着色语言编译为GPU程序集是必不可少的,以便在可编程渲染管道上运行。在本文中,我们介绍了为ITRI团队设计的新GPU实现OpenGL-ES 2.0着色器编译器的过程的案例研究。编译器基于LLVM和OpenGL Framework Mesa。我们使用MESA的前端,将OpenGL-ES着色语言(GLSL ES)2.0转换为TGSI中间形式,MESA中的Gallium3D设备驱动程序框架将TGSI转换为LLVM位代码。最后,我们使用LLVM作为后端编译位码到装配NV GPU程序4。在我们的初步实验结果中,我们使用ITRI提供的GPU模拟器并引入基准测试,以表明我们的LLVM的着色器编译器能够为基本OpenGL-es程序生成可靠的代码。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号