From Source to ISA: A Trip Down the Shader Compiler Pipeline

Matthaeus Chajdas, Developer Technology Architect and Nicolai Hähnle, Senior Member of Technical Staff, AMD
Let’s build… 2020

Shader compilers can be easily confused for dragons — they devour innocent developers, and instead of optimal code, they spew fire. Only the toughest adventurers well versed in the arcane knowledge of how to tame them used to stand a chance.

Until today! Together, we will uncover the dark secrets of the shader compiler and tame this fiery beast. Our journey will take us from the original source code down to the RDNA ISA. We’ll leave no stone unturned when it comes to giving you a deep understanding of compilers. We will arm you with knowledge about control-flow, bindless resource access and scalarization which is directly applicable to problems you’re facing daily at work. At the frontend, we will look at DXC and how it produces intermediate representations. At the backend, we will discuss the arts of instruction selection, scheduling, and register allocation for the RDNA instruction set.

Throughout the whole trip, we will provide you with practical examples from real-world applications and look at them through the compiler’s eyes. At the end, you will have a solid understanding of your shader compiler and write performant shaders with ease.

Looking for more?

We have many more videos and presentations for you to explore.

Optimizing for the Radeon™ RDNA Architecture

This video will help you to learn about the details of RDNA and how it differs from the previous GCN architecture. We will also be presenting examples of optimizations based on the case study of implementing an efficient downsampler covering topics such as characteristics of workload distribution, shader optimizations, and efficient texture access.

AMD Ryzen™ Processor Software Optimization

Join AMD Game Engineering team members for an introduction to the AMD Ryzen™ family of processors followed by advanced optimization topics.

Learn about the high-performance AMD “Zen 2” microarchitecture and profiling tools. Gain insight into code optimization opportunities and lessons learned.

A Review of GPUOpen Effects

This presentation will provide a technical overview of existing and new graphics effects available in GPUOpen and detail integration procedures for them.

Videos

Words not enough? How about pictures? How about moving pictures? We have some amazing videos to share with you!

Events

Come see us in person! Or the next best thing… Enjoy our large library of presentations from various developer events.