Advanced Micro Devices, Inc.
Shader merge for reduced divergence

Last updated:

Abstract:

Described herein are techniques for reducing control flow divergence. The method includes identifying two or more shader programs having commonalities, generating a merged shader program that implements functionality of the identified two or more shader programs, wherein the functionality implemented includes a first execution option for a first shader program of the two or more shader programs and a second execution option for a second shader program of the two or more shader programs, modifying shader programs that call the first shader program to instead call the merged shader program and select the first execution option, modifying shader programs that call the second shader program to instead call the merged shader program and select the second execution option.

Status:
Grant
Type:

Utility

Filling date:

29 Aug 2019

Issue date:

6 Jul 2021