
TVP4020
Programmers Reference Manual
Graphics Register Reference
243
Name:
Stencil Mode
Unit:
Stencil/Depth
Region: 0
Offset:
0x0000.8988
Tag:
0x0131
Reset Value:
Undefined
Read/write
0
8
16
24
31
Unit enable
Reserved
func
dppass
Update Method
Stencil source
dpfail
sfail
src
Unsigned compare function
Controls the stencil test, which conditionally rejects fragments based on the outcome of a
comparison between the value in the stencil buffer and a reference value in the
StencilData register. If the test is LESS and the result is true then the fragment value is
less than the source value.
Bit0
Unit Enable:
0 = Disable
1 = Enable
Bit1-3
Update Method if Depth test passes and Stencil test passes:
(see table below)
Bit4-6
Update Method if Depth test fails and Stencil test passes:
(see table below)
Bit7-9
Update Method if Stencil test fails:
Mode
Method
Result
0
Keep
Source stencil
1
Zero
0
2
Replace
Reference stencil
3
Increment
Clamp (Source s 1) to 2
stencil width
- 1
4
Decrement
Clamp (Source stencil -1) to 0
5
Invert
~Source stencil
Bit10-12
Unsigned Comparison Function:
Mode = Comparison Function
0 = NEVER
1 = LESS
2 = EQUAL
3 = LESS OR EQUAL
StencilMode
Summary of Contents for TVP4020 PERMEDIA 2
Page 1: ...Texas Instruments TVP4020 PERMEDIA 2 Programmer s Reference Manual Issue 4 ...
Page 284: ...TVP4020 Programmers Reference Manual A Gouraud Shaded Triangle 275 ...
Page 292: ...TVP4020 Programmers Reference Manual Register Tables 283 ...
Page 314: ...TVP4020 Programmers Reference Manual Index 305 ...
Page 315: ...Index TVP4020 Programmers Reference Manual 306 Index ...
Page 323: ...Index TVP4020 Programmers Reference Manual 314 ...