Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on email

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.

Ryzen processor software optimization

Microsoft® Game Stack Live: AMD Ryzen™ Processor Software Optimization

Join AMD on an adventure thru “Zen 2” and “Zen 3” processors which power today’s game consoles and PCs. Dive into instruction sets, cache hierarchies, resource sharing, and simultaneous multi-threading. Journey across the sands of silicon to master microarchitecture and uncover best practices!

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

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