Translation of register-combiner state into shader microcode
First Claim
Patent Images
1. A method for generating shader program instructions to control a fragment shader within a programmable graphics processing pipeline, the method comprising:
- receiving, at a combiner instruction processing unit, a fixed function state that represents one or more combiner operations, wherein, to generate the fixed function state, a fixed function application programming interface (API) call to perform the one or more combiner operations on pixel data is converted into one or more state bundles that include the fixed function state;
translating the fixed function state into at least one shader program instruction that, when executed by a fragment shader within the programmable graphics processing pipeline, performs the one or more combiner operations; and
after translating the fixed function state into at least one shader program instruction, providing the at least one shader program instruction to the fragment shader within the programmable graphics processing pipeline for execution.
0 Assignments
0 Petitions
Accused Products
Abstract
An apparatus and method for translating fixed function state into a shader program. Fixed function state is received and stored and when a new shader program is detected the fixed function state is translated into shader program instructions. Registers specified by the program instructions are allocated for processing in the shader program. The registers may be remapped for more efficient use of the register storage space.
21 Citations
20 Claims
-
1. A method for generating shader program instructions to control a fragment shader within a programmable graphics processing pipeline, the method comprising:
-
receiving, at a combiner instruction processing unit, a fixed function state that represents one or more combiner operations, wherein, to generate the fixed function state, a fixed function application programming interface (API) call to perform the one or more combiner operations on pixel data is converted into one or more state bundles that include the fixed function state; translating the fixed function state into at least one shader program instruction that, when executed by a fragment shader within the programmable graphics processing pipeline, performs the one or more combiner operations; and after translating the fixed function state into at least one shader program instruction, providing the at least one shader program instruction to the fragment shader within the programmable graphics processing pipeline for execution. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system configured to generate shader program instructions to control a fragment shader within a programmable graphics processing pipeline, the system comprising:
-
a combiner instruction processing unit configured to; receive a fixed function state that represents one or more combiner operations, wherein, to generate the fixed function state, a fixed function application programming interface (API) call to perform the one or more combiner operations on pixel data is converted into one or more state bundles that include the fixed function state; translate the fixed function state into at least one shader program instruction that, when executed by a fragment shader within the programmable graphics processing pipeline, performs the one or more combiner operations; and provide the at least one shader program instruction to the fragment shader within the programmable graphics processing pipeline for execution after translating the fixed function state into at least one shader program instruction. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A computing device, comprising:
a subsystem configured to generate shader program instructions to control a fragment shader within a programmable graphics processing pipeline, the subsystem including a combiner instruction processing unit that is configured to; receive a fixed function state that represents one or more combiner operations, wherein, to generate the fixed function state, a fixed function application programming interface (API) call to perform the one or more combiner operations on pixel data is converted into one or more state bundles that include the fixed function state; translate the fixed function state into at least one shader program instruction that, when executed by a fragment shader within the programmable graphics processing pipeline, performs the one or more combiner operations; and provide the at least one shader program instruction to the fragment shader within the programmable graphics processing pipeline for execution after translating the fixed function state into at least one shader program instruction. - View Dependent Claims (19, 20)
Specification