Intel i86W Manual page 189

Table of Contents

Advertisement

63
RED COLOR
(0-63)
PROGRAMMING EXAMPLES
(r
= 20, g, b,
x,
y,
z)
rnR
=
27 - 30
12 PIXELS
(r"
=
40,
g",
b", x", y",
z" )
Figure 9-3. Pixel Interpolation for Gouraud Shading
ACCUMULATOR
INTERPOLANT
31
Figure 9-4. faddp Operands
9.13.3 Boundary Conditions
240329i
INITIAL
SRC1
SRC2
240329i
The i860 microprocessor operates on 64-bit quantities that are aligned on 8-byte bound-
aries. The code in this example takes full advantage of this design, handling four 16-bit
pixels in each loop. However, if the first or last pixel of a line segment is not on an 8-byte
boundary, two kinds of special considerations are required:
1. Masking of Z values near the end points.
2. Initialization of the accumulators.
9-27

Advertisement

Table of Contents
loading

Table of Contents