1. A computer-implemented method for generating work to be processed by a graphics pipeline residing within a graphics processor, the method comprising: receiving an indication that a first graphics workload is to be submitted to a command queue associated with the graphics processor; allocating, via a first shader thread, a first portion of shader accessible memory for one or more units of state information that are related to processing the first graphics workload; populating, via the first shader thread, the first portion of memory with the one or more units of state information; sorting the first graphics workload and a second graphics workload in an order of execution based on the one or more units of state information and on state information related to processing the second graphics workload; and transmitting to the command queue of the graphics processor the one or more units of state information stored within the first portion of memory and the state information related to processing the second graphics workload, wherein the first graphics workload and the second graphics workload are processed within the graphics pipeline in the order of execution.