发明名称 Graphics processing
摘要 In a graphics processing system that includes one or more programmable shading stages, the shader compiler receives a shader program to be compiled (step 40), identifies any run time constant expressions in the shader program (step 41), and removes such expressions from the original shader program, and substitutes them in the original main shader program with appropriate load instructions pointing to where the output results from a pilot shader program will be stored (step 42). The shader compiler then creates a separate pilot shader program for the identified run-time constant expressions (step 43). The pilot shader program is then executed on the graphics processing pipeline (step 44), before the modified main shader program (step 45).
申请公布号 US9189881(B2) 申请公布日期 2015.11.17
申请号 US201313906132 申请日期 2013.05.30
申请人 ARM LIMITED 发明人 Galazin Alexander;Pearson Brian;Nilsen Andreas Danner;Wagner Joerg
分类号 G06T1/20;G06T15/00;G09G5/00;G06K9/54;G06F9/45;G06T11/00;G09G5/393 主分类号 G06T1/20
代理机构 Vierra Magen Marcus LLP 代理人 Vierra Magen Marcus LLP
主权项 1. A method of operating a graphics processing system which includes a graphics processing pipeline that includes one or more programmable shading stages which execute graphics shader programs to perform graphics processing operations, the method comprising: identifying in an original shader program to be executed on the graphics processing pipeline program expressions that operate on run time constant inputs; creating a new shader program containing instructions for executing the identified program expressions; creating a modified version of the original shader program, the creating the modified version of the original shader program including removing the instructions for executing the identified program expressions from the original shader program and replacing the instructions for executing the identified program expressions with load instructions pointing to output values generated and stored for the identified program expressions by executing the new shader program; executing the new shader program containing the instructions for executing the identified program expressions on the graphics processing pipeline, the executing the new shader program including generating and storing the output values for the identified program expressions; and subsequently executing the modified version of the original shader program on the graphics processing pipeline, the subsequently executing the modified version of the original shader program including, in response to the load instructions of the modified version of the original shader program, loading the output values generated and stored by executing the new shader program for processing by the modified version of the original shader program.
地址 Cambridge GB