摘要 |
Techniques for implementing blending equations for various blending modes with a base set of operations are described. Each blending equation may be decomposed into a sequence of operations. In one design, a device includes a processing unit that implements a set of operations for multiple blending m odes and a storage unit that stores operands and results. The processing uni t receives a sequence of instructions for a sequence of operations for a ble nding mode selected from the plurality of blending modes and executes each i nstruction in the sequence to perform blending in accordance with the select ed blending mode. The processing unit may include (a) an ALU that performs a t least one operation in the base set, e.g., a dot product, (b) a pre-format ting unit that performs gamma correction and alpha scaling of inbound color values, and (c) a post-formatting unit that performs gamma compression and a lpha scaling of outbound color values.
|