Multi-version shaders
AssigneeAdvanced Micro Devices, Inc.
InventorSumesh Udayakumaran
Life of this patent
Estimating the term…
Loading patent…
AssigneeAdvanced Micro Devices, Inc.
InventorSumesh Udayakumaran
Estimating the term…
Described herein are techniques for generating a stitched shader program. The techniques include identifying a set of shader programs to include in the stitched shader program, wherein the set includes at least one multiversion shader program that includes a first version of instructions and a second version of instructions, wherein the first version of instructions uses a first number of resources that is different than a second number of resources used by the second version of instructions. The techniques also include combining the set of shader programs to form the stitched shader program. The techniques further include determining a number of resources for the stitched shader program. The techniques also include based on the determined number of resources, modifying the instructions corresponding to the multiversion shader program to, when executed, execute either the first version of instructions, or the second version of instructions.
A method for generating a stitched shader program, the method comprising:
A computing device configured to generate a stitched shader program, the computing device comprising:
A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to generate a stitched shader program, by:
Dependencies are inferred from the claim text.