摘要 |
A graphics engine includes a setup unit and a rendering unit. The setup unit computes coefficients A, B, and C used for interpolating an attribute W of a triangle to be rendered for a graphics image. The setup unit then derives compressed coefficients, ~B, and ~C based on the coefficients A, B, and C. The compressed coefficients have a fixed-point format with R integer bits left of a binary point and T fractional bits right of the binary point, where R>1 and T>=0. R is selected based on the number of bits used for attribute W, T is selected based on the screen dimension, and R+T is much less than the number of bits used to represent the coefficients A, B, and C. The rendering unit performs interpolation for the attribute v using the compressed coefficients, ~B, and ~C, and may be implemented with a simple (R+T)-bit non-saturating accumulator.
|