1. A method for performing a bit block transfer (bitblt), the method comprising: receiving one or more graphics parameters specifying the bitblt; and generating a specialized bitblt function to perform the bitblt, the specialized bitblt function comprising a set of one or more code blocks from a superset of code blocks corresponding to multiple bitblt operations.