Patent ID: 7950003

Claim:
A system for analysis of graphics software, comprising a central processing unit (CPU); a graphics processing (GPU) unit coupled to the CPU; a memory coupled to the GPU and CPU, the memory having therein a command buffer and a push buffer; a graphics program configured to run on the CPU, wherein the graphics program places commands in the command buffer for a graphics processor unit (GPU) a graphics program analysis program running on the CPU, wherein the graphics analysis (HUD) program includes one or more instructions comprising: a) one or more instructions that when executed by the CPU copies a program chunk from the command buffer to a push buffer, wherein the program chunk is configured to be executed by the GPU from the push buffer; and b) one or more instructions that when executed by the CPU modify the program chunk before the program chunk is executed by the GPU from the push buffer through command buffer and/or push buffer manipulation that is transparent to the graphics program; and c) one or more instructions that, when executed by the CPU, implement a function on a source of the program chunk, wherein the function facilitates analysis of the graphics program.