Patent ID: 8111260

Claim:
A method for assigning resources used by a plurality of shaders of a graphics pipeline to particular slots of a processing unit, comprising: identifying a particular resource/slot arrangement of a first shader; identifying a particular resource/slot arrangement of a second shader; identifying a particular resource/slot arrangement of a third shader; determining a common resource/slot arrangement for at least the first, second and third shaders as an arrangement having a cost lower than a predetermined cost metric, the common resource/slot arrangement based upon the first shader associating a first resource with a first slot, the second shader associating the first resource with the first slot, and the third shader associating the first resource with a second slot different than the first slot; and binding the first resource to the first slot for the plurality of shaders based upon the determined common resource/slot arrangement, such that the third shader is modified to associate the first resource with the first slot instead of the second slot, at least some of at least one of the identifying a particular resource/slot arrangement of a first shader, identifying a particular resource/slot arrangement of a second shader, identifying a particular resource/slot arrangement of a third shader, determining, binding, and modifying implemented at least in part via a microprocessor.