Study note

How to read shader assembly

Properties

Type
Blogs
Status
待读
Domain
Systems
Category
汇编、链接与可执行文件
Source
interplayoflight.wordpress.com
Vault note
library/articles/systems/How-to-read-shader-assembly-b2538e261c3db55f.md

Summary

Kostas Anagnostou 以 DirectX/HLSL pixel shader 为例,对照高层代码、编译器中间语言和 AMD GCN ISA,逐段解释 scalar/vector 指令与寄存器、wavefront、execution mask、属性插值、纹理采样、内存等待、条件分支、线程发散和 render-target export。

Highlights

提供一种实用的 GPU 汇编阅读方法:先把 ISA 分块映射回高层 shader,再沿数据来源、寄存器、等待与控制流解释硬件行为。可借助 Shader Playground 在没有 AMD GPU 时复现实验,也适合作为 CUDA PTX/SASS 学习之外的 GPU ISA 对照材料。

Notes

从 HLSL 理解 AMD GCN shader ISA 与 GPU 执行模型。

Comments

Loading comments...