发明名称 Apparatus and method for tracing activities of a shader program executed on shader circuitry of a data processing apparatus
摘要 A data processing apparatus and method are provided for tracing activities of a shader program executed on shader circuitry of a data processing apparatus. The data processing apparatus comprises shader circuitry which is responsive to input data for a pixel to execute a shader program to generate a colour value for the pixel. The shader program has multiple execution paths via which the colour value may be generated, and which execution path is taken is dependent on the input data. An image buffer having a plurality of storage locations is provided, with each storage location being used to store the colour value generated by the shader circuitry for an associated pixel. In a trace mode of operation, execution of the shader program by the shader circuitry causes a trace vector to be generated containing a plurality of items of execution path information indicative of the execution path taken, the trace vector comprising a plurality of fields, each field being used to store one item of execution path information. The trace vector as output is constrained to be of the same size as the colour value, and in the trace mode of operation the trace vector is stored in one of the storage locations of the image buffer in place of the colour value generated by the shader program. This has been found to provide an efficient mechanism for obtaining execution path data useful when performing a variety of debugging activities in respect of a shader program.
申请公布号 US2010149185(A1) 申请公布日期 2010.06.17
申请号 US20090591895 申请日期 2009.12.03
申请人 ARM LIMITED 发明人 CAPEWELL MARTYN;BUTCHER DAVID JOHN;CATHERALL ROBERT JAMES;HORSMAN PETER JAMES
分类号 G06T1/00;G06T15/00;G06T15/60 主分类号 G06T1/00
代理机构 代理人
主权项
地址