1. A computer-implemented method for transmitting packets of work to a graphics processing pipeline, the method comprising: receiving from a driver a first packet of work that includes a first header and a first input parameter, wherein the first header indicates a macro stored in an instruction memory that is to be loaded, and the first input parameter specifies an address associated with a first instruction of the macro; identifying one or more additional input parameters for generating a second packet of work to be supplied to the graphics processing pipeline; processing a first of the one or more additional input parameters via the first instruction of the macro to generate the second packet of work; and transmitting the second packet of work to the graphics processing pipeline for execution.