請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/8998
標題: | 應用於行動繪圖處理器的著色語言編譯器後端之暫存器配置與指令調度研究探討 Shading Language Compiler Backend for a Mobile GPU: Case Study on Register Allocation and Code Scheduling |
作者: | Jian-Hao Su 蘇建豪 |
指導教授: | 廖世偉(Shin-Wei Liao) |
關鍵字: | 著色語言,編譯器,繪圖處理器, shading language,compiler,GPU, |
出版年 : | 2009 |
學位: | 碩士 |
摘要: | 今日3D電腦繪圖越來越顯得重要,電腦遊戲、虛擬實境等廣泛的使用3D電腦繪圖。對於電腦及行動裝置上,3D繪圖加速已經是一個必備的功能。
繪圖處理器的產生代表者GPU接管了幾乎所有3D繪圖相關的工作,在新一代的繪圖處理器中, 甚至提供了可程式性以應付更複雜的效果需求。著色語言便是提供繪圖處理器可程式化的關鍵,它抽象化了硬體同時提供更多彈性 程式設計師因此不必使用組合語言來對繪圖處理器寫作程式 著色語言編譯器將著色語言轉成硬體的執行格式。我們開發了一個針對OpenGL ES著色語言與Media IC & System and DSP IC 實驗室開發的行動繪圖處理器的著色語言編譯器。 此論文中,我們敘述了該著色語言編譯器的實作,並對相關硬體的後端作了探討,我們針對該繪圖處理器的架構提出了最佳化方法-在指令調度方面,編譯器實作了資料前饋的偵測與程式碼的產生,另外針對著色語言與硬體特性亦提出了一個暫存器配置方法,目前實驗結果顯示最高可以省下28%的使用量 3D computer graphic has become more and more important today, applications like games, virtual reality and so on prevail the way for 3D computer graphic. Accelerator for 3D Graphic has become a necessary component in computer and mobile device. GPU is the new name of graphic hardware since it has taken nearly all workload of 3D graphic processing form CPU. As the evolution of GPU, programmability is now provided for more complex computation. Shading language is the key to release the power of GPU programmability. It provides the high hardware abstraction and more flexibility programmability rather than programming GPU in low-level hardware related assembly. Shading language compiler translates shader codes to low level instructions. We have developed an OpenGL ES shading language compiler for a mobile GPU developed by Media IC & System and DSP IC Lab at NTU. In this thesis, we describe the compiler we have done and study the backend of shading compiler for the mobile GPU hardware. Optimization methods are proposed to improve the performance of current hardware. Code scheduling in compiler detects data forwarding and generates code to use hardware forwarding path. Register allocation supports packing to use remain part of vector type in shading language. In current experiment, at most 28% register usage can therefore shrink. |
URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/8998 |
全文授權: | 同意授權(全球公開) |
顯示於系所單位: | 資訊網路與多媒體研究所 |
文件中的檔案:
檔案 | 大小 | 格式 | |
---|---|---|---|
ntu-98-1.pdf | 704.58 kB | Adobe PDF | 檢視/開啟 |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。