aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez2009-12-28 11:01:42 -0600
committerFrancisco Jerez2009-12-28 11:01:42 -0600
commitcb1caaaa05ba96b98bf9af1190f6830d8b0608bc (patch)
treec0db2f741e9e9d25ea48d408b2d0a5035343d0ff /nouveau
parent5fd00ddc9f35ac99c93a40d34a5d5019b91e8750 (diff)
downloadlibdrm-cb1caaaa05ba96b98bf9af1190f6830d8b0608bc.tar.gz
libdrm-cb1caaaa05ba96b98bf9af1190f6830d8b0608bc.tar.xz
libdrm-cb1caaaa05ba96b98bf9af1190f6830d8b0608bc.zip
nouveau: Update some object definitions from renouveau.xml.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/nouveau_class.h3365
1 files changed, 1699 insertions, 1666 deletions
diff --git a/nouveau/nouveau_class.h b/nouveau/nouveau_class.h
index 4342d5f9..91d692a3 100644
--- a/nouveau/nouveau_class.h
+++ b/nouveau/nouveau_class.h
@@ -852,99 +852,99 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
852#define NV03_VIDEO_LUT_CURSOR_DAC_SET_PIXEL_CLOCK 0x000003a0 852#define NV03_VIDEO_LUT_CURSOR_DAC_SET_PIXEL_CLOCK 0x000003a0
853 853
854 854
855#define NV03_DX3_TEXTURED_TRIANGLE 0x00000048 855#define NV03_TEXTURED_TRIANGLE 0x00000048
856 856
857#define NV03_DX3_TEXTURED_TRIANGLE_NOP 0x00000100 857#define NV03_TEXTURED_TRIANGLE_NOP 0x00000100
858#define NV03_DX3_TEXTURED_TRIANGLE_NOTIFY 0x00000104 858#define NV03_TEXTURED_TRIANGLE_NOTIFY 0x00000104
859#define NV03_DX3_TEXTURED_TRIANGLE_PATCH 0x0000010c 859#define NV03_TEXTURED_TRIANGLE_PATCH 0x0000010c
860#define NV03_DX3_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180 860#define NV03_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180
861#define NV03_DX3_TEXTURED_TRIANGLE_DMA_TEXTURE 0x00000184 861#define NV03_TEXTURED_TRIANGLE_DMA_TEXTURE 0x00000184
862#define NV03_DX3_TEXTURED_TRIANGLE_CLIP_RECTANGLE 0x00000188 862#define NV03_TEXTURED_TRIANGLE_CLIP_RECTANGLE 0x00000188
863#define NV03_DX3_TEXTURED_TRIANGLE_SURFACE 0x0000018c 863#define NV03_TEXTURED_TRIANGLE_SURFACE 0x0000018c
864#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_OFFSET 0x00000304 864#define NV03_TEXTURED_TRIANGLE_TEXTURE_OFFSET 0x00000304
865#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT 0x00000308 865#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT 0x00000308
866#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_SHIFT 0 866#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_SHIFT 0
867#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_MASK 0x0000ffff 867#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_MASK_MASK 0x0000ffff
868#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_SHIFT 16 868#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_SHIFT 16
869#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_MASK 0x000f0000 869#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_KEY_ENABLE_MASK 0x000f0000
870#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_SHIFT 20 870#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_SHIFT 20
871#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_MASK 0x00f00000 871#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_COLOR_MASK 0x00f00000
872#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_SHIFT 24 872#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_SHIFT 24
873#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_MASK 0x0f000000 873#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MIN_MASK 0x0f000000
874#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_SHIFT 28 874#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_SHIFT 28
875#define NV03_DX3_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_MASK 0xf0000000 875#define NV03_TEXTURED_TRIANGLE_TEXTURE_FORMAT_SIZE_MAX_MASK 0xf0000000
876#define NV03_DX3_TEXTURED_TRIANGLE_FILTER 0x0000030c 876#define NV03_TEXTURED_TRIANGLE_FILTER 0x0000030c
877#define NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_X_SHIFT 0 877#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_X_SHIFT 0
878#define NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_X_MASK 0x0000001f 878#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_X_MASK 0x0000001f
879#define NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_SHIFT 8 879#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_SHIFT 8
880#define NV03_DX3_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_MASK 0x00001f00 880#define NV03_TEXTURED_TRIANGLE_FILTER_SPREAD_Y_MASK 0x00001f00
881#define NV03_DX3_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_SHIFT 16 881#define NV03_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_SHIFT 16
882#define NV03_DX3_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_MASK 0x00ff0000 882#define NV03_TEXTURED_TRIANGLE_FILTER_SIZE_ADJUST_MASK 0x00ff0000
883#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR 0x00000310 883#define NV03_TEXTURED_TRIANGLE_FOG_COLOR 0x00000310
884#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_B_SHIFT 0 884#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_B_SHIFT 0
885#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_B_MASK 0x000000ff 885#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_B_MASK 0x000000ff
886#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_G_SHIFT 8 886#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_G_SHIFT 8
887#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_G_MASK 0x0000ff00 887#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_G_MASK 0x0000ff00
888#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_R_SHIFT 16 888#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_R_SHIFT 16
889#define NV03_DX3_TEXTURED_TRIANGLE_FOG_COLOR_R_MASK 0x00ff0000 889#define NV03_TEXTURED_TRIANGLE_FOG_COLOR_R_MASK 0x00ff0000
890#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT 0x00000314 890#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT 0x00000314
891#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_SHIFT 0 891#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_SHIFT 0
892#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_MASK 0x0000000f 892#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_INTERPOLATOR_MASK 0x0000000f
893#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_SHIFT 4 893#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_SHIFT 4
894#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_MASK 0x00000030 894#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_U_MASK 0x00000030
895#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_SHIFT 6 895#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_SHIFT 6
896#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_MASK 0x000000c0 896#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_WRAP_V_MASK 0x000000c0
897#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_SHIFT 8 897#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_SHIFT 8
898#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_MASK 0x00000f00 898#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SOURCE_COLOR_MASK 0x00000f00
899#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_SHIFT 12 899#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_SHIFT 12
900#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_MASK 0x00007000 900#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_CULLING_MASK 0x00007000
901#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_PERSPECTIVE_ENABLE (1 << 15) 901#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_PERSPECTIVE_ENABLE (1 << 15)
902#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_SHIFT 16 902#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_SHIFT 16
903#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_MASK 0x000f0000 903#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_FUNC_MASK 0x000f0000
904#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_SHIFT 20 904#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_SHIFT 20
905#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_MASK 0x00f00000 905#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_Z_WRITE_ENABLE_MASK 0x00f00000
906#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_SHIFT 24 906#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_SHIFT 24
907#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_MASK 0x07000000 907#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_COLOR_WRITE_ENABLE_MASK 0x07000000
908#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_SHIFT 27 908#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_SHIFT 27
909#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_MASK 0x18000000 909#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_ROP_MASK 0x18000000
910#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_BETA (1 << 29) 910#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_BETA (1 << 29)
911#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_DST_BLEND (1 << 30) 911#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_DST_BLEND (1 << 30)
912#define NV03_DX3_TEXTURED_TRIANGLE_CONTROL_OUT_SRC_BLEND (1 << 31) 912#define NV03_TEXTURED_TRIANGLE_CONTROL_OUT_SRC_BLEND (1 << 31)
913#define NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL 0x00000318 913#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL 0x00000318
914#define NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_SHIFT 0 914#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_SHIFT 0
915#define NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_MASK 0x000000ff 915#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_REF_MASK 0x000000ff
916#define NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_SHIFT 8 916#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_SHIFT 8
917#define NV03_DX3_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_MASK 0xffffff00 917#define NV03_TEXTURED_TRIANGLE_ALPHA_CONTROL_ALPHA_FUNC_MASK 0xffffff00
918#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00001000+((x)*32)) 918#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00001000+((x)*32))
919#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000080 919#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000080
920#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_SHIFT 0 920#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_SHIFT 0
921#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_MASK 0x0000000f 921#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I0_MASK 0x0000000f
922#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_SHIFT 4 922#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_SHIFT 4
923#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_MASK 0x000000f0 923#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I1_MASK 0x000000f0
924#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_SHIFT 8 924#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_SHIFT 8
925#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_MASK 0x00000f00 925#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I2_MASK 0x00000f00
926#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_SHIFT 12 926#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_SHIFT 12
927#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_MASK 0x0000f000 927#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I3_MASK 0x0000f000
928#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_SHIFT 16 928#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_SHIFT 16
929#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_MASK 0x000f0000 929#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I4_MASK 0x000f0000
930#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_SHIFT 20 930#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_SHIFT 20
931#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_MASK 0x00f00000 931#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_I5_MASK 0x00f00000
932#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24 932#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24
933#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000 933#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000
934#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00001004+((x)*32)) 934#define NV03_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00001004+((x)*32))
935#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000080 935#define NV03_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000080
936#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00001008+((x)*32)) 936#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00001008+((x)*32))
937#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000080 937#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000080
938#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x0000100c+((x)*32)) 938#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x0000100c+((x)*32))
939#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000080 939#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000080
940#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00001010+((x)*32)) 940#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00001010+((x)*32))
941#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000080 941#define NV03_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000080
942#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x00001014+((x)*32)) 942#define NV03_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x00001014+((x)*32))
943#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000080 943#define NV03_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000080
944#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00001018+((x)*32)) 944#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00001018+((x)*32))
945#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000080 945#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000080
946#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000101c+((x)*32)) 946#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000101c+((x)*32))
947#define NV03_DX3_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000080 947#define NV03_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000080
948 948
949 949
950#define NV04_GDI_RECTANGLE_TEXT 0x0000004a 950#define NV04_GDI_RECTANGLE_TEXT 0x0000004a
@@ -1315,429 +1315,450 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1315#define NV04_CONTEXT_SURFACES_3D_OFFSET_ZETA 0x00000310 1315#define NV04_CONTEXT_SURFACES_3D_OFFSET_ZETA 0x00000310
1316 1316
1317 1317
1318#define NV04_DX5_TEXTURED_TRIANGLE 0x00000054 1318#define NV04_TEXTURED_TRIANGLE 0x00000054
1319 1319
1320#define NV04_DX5_TEXTURED_TRIANGLE_NOP 0x00000100 1320#define NV04_TEXTURED_TRIANGLE_NOP 0x00000100
1321#define NV04_DX5_TEXTURED_TRIANGLE_NOTIFY 0x00000104 1321#define NV04_TEXTURED_TRIANGLE_NOTIFY 0x00000104
1322#define NV04_DX5_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180 1322#define NV04_TEXTURED_TRIANGLE_DMA_NOTIFY 0x00000180
1323#define NV04_DX5_TEXTURED_TRIANGLE_DMA_A 0x00000184 1323#define NV04_TEXTURED_TRIANGLE_DMA_A 0x00000184
1324#define NV04_DX5_TEXTURED_TRIANGLE_DMA_B 0x00000188 1324#define NV04_TEXTURED_TRIANGLE_DMA_B 0x00000188
1325#define NV04_DX5_TEXTURED_TRIANGLE_SURFACE 0x0000018c 1325#define NV04_TEXTURED_TRIANGLE_SURFACE 0x0000018c
1326#define NV04_DX5_TEXTURED_TRIANGLE_COLORKEY 0x00000300 1326#define NV04_TEXTURED_TRIANGLE_COLORKEY 0x00000300
1327#define NV04_DX5_TEXTURED_TRIANGLE_OFFSET 0x00000304 1327#define NV04_TEXTURED_TRIANGLE_OFFSET 0x00000304
1328#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT 0x00000308 1328#define NV04_TEXTURED_TRIANGLE_FORMAT 0x00000308
1329#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_DMA_SHIFT 0 1329#define NV04_TEXTURED_TRIANGLE_FORMAT_DMA_A (1 << 0)
1330#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_DMA_MASK 0x00000003 1330#define NV04_TEXTURED_TRIANGLE_FORMAT_DMA_B (1 << 1)
1331#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_SHIFT 2 1331#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_SHIFT 2
1332#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_MASK 0x0000000c 1332#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_KEY_MATCH_MASK 0x0000000c
1333#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4 1333#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4
1334#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030 1334#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030
1335#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CENTER 0x00000010 1335#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CENTER 0x00000010
1336#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CORNER 0x00000020 1336#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_ZOH_CORNER 0x00000020
1337#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6 1337#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6
1338#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0 1338#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0
1339#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CENTER 0x00000040 1339#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CENTER 0x00000040
1340#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CORNER 0x00000080 1340#define NV04_TEXTURED_TRIANGLE_FORMAT_ORIGIN_FOH_CORNER 0x00000080
1341#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_SHIFT 8 1341#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_SHIFT 8
1342#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00 1342#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00
1343#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_Y8 0x00000100 1343#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_Y8 0x00000100
1344#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_A1R5G5B5 0x00000200 1344#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A1R5G5B5 0x00000200
1345#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_X1R5G5B5 0x00000300 1345#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_X1R5G5B5 0x00000300
1346#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_A4R4G4B4 0x00000400 1346#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A4R4G4B4 0x00000400
1347#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_R5G6B5 0x00000500 1347#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_R5G6B5 0x00000500
1348#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_A8R8G8B8 0x00000600 1348#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_A8R8G8B8 0x00000600
1349#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_COLOR_X8R8G8B8 0x00000700 1349#define NV04_TEXTURED_TRIANGLE_FORMAT_COLOR_X8R8G8B8 0x00000700
1350#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12 1350#define NV04_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12
1351#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000 1351#define NV04_TEXTURED_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000
1352#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16 1352#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16
1353#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000 1353#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1354#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20 1354#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20
1355#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000 1355#define NV04_TEXTURED_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1356#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24 1356#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24
1357#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000 1357#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000
1358#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_REPEAT 0x01000000 1358#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_REPEAT 0x01000000
1359#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MIRRORED_REPEAT 0x02000000 1359#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_MIRRORED_REPEAT 0x02000000
1360#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_EDGE 0x03000000 1360#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_EDGE 0x03000000
1361#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_BORDER 0x04000000 1361#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP_TO_BORDER 0x04000000
1362#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP 0x05000000 1362#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSU_CLAMP 0x05000000
1363#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_WRAPU (1 << 27) 1363#define NV04_TEXTURED_TRIANGLE_FORMAT_WRAPU (1 << 27)
1364#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28 1364#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28
1365#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000 1365#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000
1366#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_REPEAT 0x10000000 1366#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_REPEAT 0x10000000
1367#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MIRRORED_REPEAT 0x20000000 1367#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_MIRRORED_REPEAT 0x20000000
1368#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_EDGE 0x30000000 1368#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_EDGE 0x30000000
1369#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_BORDER 0x40000000 1369#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP_TO_BORDER 0x40000000
1370#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP 0x50000000 1370#define NV04_TEXTURED_TRIANGLE_FORMAT_ADDRESSV_CLAMP 0x50000000
1371#define NV04_DX5_TEXTURED_TRIANGLE_FORMAT_WRAPV (1 << 31) 1371#define NV04_TEXTURED_TRIANGLE_FORMAT_WRAPV (1 << 31)
1372#define NV04_DX5_TEXTURED_TRIANGLE_FILTER 0x0000030c 1372#define NV04_TEXTURED_TRIANGLE_FILTER 0x0000030c
1373#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0 1373#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0
1374#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff 1374#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff
1375#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8 1375#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8
1376#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00 1376#define NV04_TEXTURED_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00
1377#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15) 1377#define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15)
1378#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16 1378#define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16
1379#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000 1379#define NV04_TEXTURED_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000
1380#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_SHIFT 24 1380#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_SHIFT 24
1381#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_MASK 0x07000000 1381#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_MASK 0x07000000
1382#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST 0x01000000 1382#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST 0x01000000
1383#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR 0x02000000 1383#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR 0x02000000
1384#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST 0x03000000 1384#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_NEAREST 0x03000000
1385#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST 0x04000000 1385#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_NEAREST 0x04000000
1386#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR 0x05000000 1386#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_NEAREST_MIPMAP_LINEAR 0x05000000
1387#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR 0x06000000 1387#define NV04_TEXTURED_TRIANGLE_FILTER_MINIFY_LINEAR_MIPMAP_LINEAR 0x06000000
1388#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27) 1388#define NV04_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27)
1389#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_SHIFT 28 1389#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_SHIFT 28
1390#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000 1390#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000
1391#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_NEAREST 0x10000000 1391#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_NEAREST 0x10000000
1392#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_MAGNIFY_LINEAR 0x20000000 1392#define NV04_TEXTURED_TRIANGLE_FILTER_MAGNIFY_LINEAR 0x20000000
1393#define NV04_DX5_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31) 1393#define NV04_TEXTURED_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31)
1394#define NV04_DX5_TEXTURED_TRIANGLE_BLEND 0x00000310 1394#define NV04_TEXTURED_TRIANGLE_BLEND 0x00000310
1395#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_SHIFT 0 1395#define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_SHIFT 0
1396#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_MASK 0x0000000f 1396#define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP_MASK 0x0000000f
1397#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_MASK_BIT_SHIFT 4 1397#define NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_SHIFT 4
1398#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030 1398#define NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030
1399#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6 1399#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6
1400#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0 1400#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0
1401#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040 1401#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040
1402#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080 1402#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080
1403#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0 1403#define NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0
1404#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_SHIFT 8 1404#define NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE (1 << 8)
1405#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_MASK 0x00000f00 1405#define NV04_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE_SHIFT 12
1406#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE_SHIFT 12 1406#define NV04_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE_MASK 0x0000f000
1407#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE_MASK 0x0000f000 1407#define NV04_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE_SHIFT 16
1408#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE_SHIFT 16 1408#define NV04_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE_MASK 0x000f0000
1409#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_FOG_ENABLE_MASK 0x000f0000 1409#define NV04_TEXTURED_TRIANGLE_BLEND_BLEND_ENABLE (1 << 20)
1410#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_ALPHA_ENABLE_SHIFT 20 1410#define NV04_TEXTURED_TRIANGLE_BLEND_SRC_SHIFT 24
1411#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_ALPHA_ENABLE_MASK 0x00f00000 1411#define NV04_TEXTURED_TRIANGLE_BLEND_SRC_MASK 0x0f000000
1412#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SRC_SHIFT 24 1412#define NV04_TEXTURED_TRIANGLE_BLEND_DST_SHIFT 28
1413#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_SRC_MASK 0x0f000000 1413#define NV04_TEXTURED_TRIANGLE_BLEND_DST_MASK 0xf0000000
1414#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_DST_SHIFT 28 1414#define NV04_TEXTURED_TRIANGLE_CONTROL 0x00000314
1415#define NV04_DX5_TEXTURED_TRIANGLE_BLEND_DST_MASK 0xf0000000 1415#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_SHIFT 0
1416#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL 0x00000314 1416#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_MASK 0x000000ff
1417#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_SHIFT 0 1417#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_SHIFT 8
1418#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_REF_MASK 0x000000ff 1418#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_MASK 0x00000f00
1419#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_SHIFT 8 1419#define NV04_TEXTURED_TRIANGLE_CONTROL_ALPHA_ENABLE (1 << 12)
1420#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_FUNC_MASK 0x00000f00 1420#define NV04_TEXTURED_TRIANGLE_CONTROL_ORIGIN (1 << 13)
1421#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ALPHA_TEST_ENABLE (1 << 12) 1421#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE (1 << 14)
1422#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_ORIGIN (1 << 13) 1422#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_SHIFT 16
1423#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE_SHIFT 14 1423#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_MASK 0x000f0000
1424#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_ENABLE_MASK 0x0000c000 1424#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_SHIFT 20
1425#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_SHIFT 16 1425#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_MASK 0x00300000
1426#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FUNC_MASK 0x000f0000 1426#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_BOTH 0x00000000
1427#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_SHIFT 20 1427#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_NONE 0x00100000
1428#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_MASK 0x00300000 1428#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_CW 0x00200000
1429#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_DITHER_ENABLE (1 << 22) 1429#define NV04_TEXTURED_TRIANGLE_CONTROL_CULL_MODE_CCW 0x00300000
1430#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_PERSPECTIVE_ENABLE (1 << 23) 1430#define NV04_TEXTURED_TRIANGLE_CONTROL_DITHER_ENABLE (1 << 22)
1431#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_WRITE_ENABLE_SHIFT 24 1431#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_PERSPECTIVE_ENABLE (1 << 23)
1432#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_WRITE_ENABLE_MASK 0x3f000000 1432#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_WRITE (1 << 24)
1433#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_SHIFT 30 1433#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_SHIFT 30
1434#define NV04_DX5_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_MASK 0xc0000000 1434#define NV04_TEXTURED_TRIANGLE_CONTROL_Z_FORMAT_MASK 0xc0000000
1435#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR 0x00000318 1435#define NV04_TEXTURED_TRIANGLE_FOGCOLOR 0x00000318
1436#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_B_SHIFT 0 1436#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_B_SHIFT 0
1437#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff 1437#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff
1438#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_G_SHIFT 8 1438#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_G_SHIFT 8
1439#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00 1439#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00
1440#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_R_SHIFT 16 1440#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_R_SHIFT 16
1441#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000 1441#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000
1442#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_A_SHIFT 24 1442#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_A_SHIFT 24
1443#define NV04_DX5_TEXTURED_TRIANGLE_FOGCOLOR_A_MASK 0xff000000 1443#define NV04_TEXTURED_TRIANGLE_FOGCOLOR_A_MASK 0xff000000
1444#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00000400+((x)*32)) 1444#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SX(x) (0x00000400+((x)*32))
1445#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000010 1445#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SX__SIZE 0x00000010
1446#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x00000404+((x)*32)) 1446#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SY(x) (0x00000404+((x)*32))
1447#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000010 1447#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SY__SIZE 0x00000010
1448#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00000408+((x)*32)) 1448#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SZ(x) (0x00000408+((x)*32))
1449#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000010 1449#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SZ__SIZE 0x00000010
1450#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x0000040c+((x)*32)) 1450#define NV04_TEXTURED_TRIANGLE_TLVERTEX_RHW(x) (0x0000040c+((x)*32))
1451#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000010 1451#define NV04_TEXTURED_TRIANGLE_TLVERTEX_RHW__SIZE 0x00000010
1452#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00000410+((x)*32)) 1452#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR(x) (0x00000410+((x)*32))
1453#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000010 1453#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR__SIZE 0x00000010
1454#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_SHIFT 0 1454#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_SHIFT 0
1455#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_MASK 0x000000ff 1455#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_B_MASK 0x000000ff
1456#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_SHIFT 8 1456#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_SHIFT 8
1457#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_MASK 0x0000ff00 1457#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_G_MASK 0x0000ff00
1458#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_SHIFT 16 1458#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_SHIFT 16
1459#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_MASK 0x00ff0000 1459#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_R_MASK 0x00ff0000
1460#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_SHIFT 24 1460#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_SHIFT 24
1461#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_MASK 0xff000000 1461#define NV04_TEXTURED_TRIANGLE_TLVERTEX_COLOR_A_MASK 0xff000000
1462#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00000414+((x)*32)) 1462#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR(x) (0x00000414+((x)*32))
1463#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000010 1463#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR__SIZE 0x00000010
1464#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_SHIFT 0 1464#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_SHIFT 0
1465#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_MASK 0x000000ff 1465#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_B_MASK 0x000000ff
1466#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_SHIFT 8 1466#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_SHIFT 8
1467#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_MASK 0x0000ff00 1467#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_G_MASK 0x0000ff00
1468#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_SHIFT 16 1468#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_SHIFT 16
1469#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_MASK 0x00ff0000 1469#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_R_MASK 0x00ff0000
1470#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24 1470#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_SHIFT 24
1471#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000 1471#define NV04_TEXTURED_TRIANGLE_TLVERTEX_SPECULAR_FOG_MASK 0xff000000
1472#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00000418+((x)*32)) 1472#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TU(x) (0x00000418+((x)*32))
1473#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000010 1473#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TU__SIZE 0x00000010
1474#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000041c+((x)*32)) 1474#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TV(x) (0x0000041c+((x)*32))
1475#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000010 1475#define NV04_TEXTURED_TRIANGLE_TLVERTEX_TV__SIZE 0x00000010
1476#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE(x) (0x00000600+((x)*4)) 1476#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE(x) (0x00000600+((x)*4))
1477#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE__SIZE 0x00000040 1477#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE__SIZE 0x00000040
1478#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I0_SHIFT 0 1478#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I0_SHIFT 0
1479#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I0_MASK 0x0000000f 1479#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I0_MASK 0x0000000f
1480#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I1_SHIFT 4 1480#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I1_SHIFT 4
1481#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I1_MASK 0x000000f0 1481#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I1_MASK 0x000000f0
1482#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I2_SHIFT 8 1482#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I2_SHIFT 8
1483#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I2_MASK 0x00000f00 1483#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I2_MASK 0x00000f00
1484#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I3_SHIFT 12 1484#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I3_SHIFT 12
1485#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I3_MASK 0x0000f000 1485#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I3_MASK 0x0000f000
1486#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I4_SHIFT 16 1486#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I4_SHIFT 16
1487#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I4_MASK 0x000f0000 1487#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I4_MASK 0x000f0000
1488#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I5_SHIFT 20 1488#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I5_SHIFT 20
1489#define NV04_DX5_TEXTURED_TRIANGLE_TLVERTEX_DRAWPRIMITIVE_I5_MASK 0x00f00000 1489#define NV04_TEXTURED_TRIANGLE_DRAWPRIMITIVE_I5_MASK 0x00f00000
1490 1490
1491 1491
1492#define NV04_DX6_MULTITEX_TRIANGLE 0x00000055 1492#define NV04_MULTITEX_TRIANGLE 0x00000055
1493 1493
1494#define NV04_DX6_MULTITEX_TRIANGLE_NOP 0x00000100 1494#define NV04_MULTITEX_TRIANGLE_NOP 0x00000100
1495#define NV04_DX6_MULTITEX_TRIANGLE_NOTIFY 0x00000104 1495#define NV04_MULTITEX_TRIANGLE_NOTIFY 0x00000104
1496#define NV04_DX6_MULTITEX_TRIANGLE_DMA_NOTIFY 0x00000180 1496#define NV04_MULTITEX_TRIANGLE_DMA_NOTIFY 0x00000180
1497#define NV04_DX6_MULTITEX_TRIANGLE_DMA_A 0x00000184 1497#define NV04_MULTITEX_TRIANGLE_DMA_A 0x00000184
1498#define NV04_DX6_MULTITEX_TRIANGLE_DMA_B 0x00000188 1498#define NV04_MULTITEX_TRIANGLE_DMA_B 0x00000188
1499#define NV04_DX6_MULTITEX_TRIANGLE_SURFACE 0x0000018c 1499#define NV04_MULTITEX_TRIANGLE_SURFACE 0x0000018c
1500#define NV04_DX6_MULTITEX_TRIANGLE_OFFSET(x) (0x00000308+((x)*4)) 1500#define NV04_MULTITEX_TRIANGLE_OFFSET(x) (0x00000308+((x)*4))
1501#define NV04_DX6_MULTITEX_TRIANGLE_OFFSET__SIZE 0x00000002 1501#define NV04_MULTITEX_TRIANGLE_OFFSET__SIZE 0x00000002
1502#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT(x) (0x00000310+((x)*4)) 1502#define NV04_MULTITEX_TRIANGLE_FORMAT(x) (0x00000310+((x)*4))
1503#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT__SIZE 0x00000002 1503#define NV04_MULTITEX_TRIANGLE_FORMAT__SIZE 0x00000002
1504#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_DMA_SHIFT 0 1504#define NV04_MULTITEX_TRIANGLE_FORMAT_DMA_A (1 << 0)
1505#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_DMA_MASK 0x0000000f 1505#define NV04_MULTITEX_TRIANGLE_FORMAT_DMA_B (1 << 1)
1506#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4 1506#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_SHIFT 4
1507#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030 1507#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_ZOH_MASK 0x00000030
1508#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6 1508#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_SHIFT 6
1509#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0 1509#define NV04_MULTITEX_TRIANGLE_FORMAT_ORIGIN_FOH_MASK 0x000000c0
1510#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_COLOR_SHIFT 8 1510#define NV04_MULTITEX_TRIANGLE_FORMAT_COLOR_SHIFT 8
1511#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00 1511#define NV04_MULTITEX_TRIANGLE_FORMAT_COLOR_MASK 0x00000f00
1512#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12 1512#define NV04_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_SHIFT 12
1513#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000 1513#define NV04_MULTITEX_TRIANGLE_FORMAT_MIPMAP_LEVELS_MASK 0x0000f000
1514#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16 1514#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_SHIFT 16
1515#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000 1515#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_U_MASK 0x000f0000
1516#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20 1516#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_SHIFT 20
1517#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000 1517#define NV04_MULTITEX_TRIANGLE_FORMAT_BASE_SIZE_V_MASK 0x00f00000
1518#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24 1518#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_SHIFT 24
1519#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000 1519#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSU_MASK 0x07000000
1520#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_WRAPU (1 << 27) 1520#define NV04_MULTITEX_TRIANGLE_FORMAT_WRAPU (1 << 27)
1521#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28 1521#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_SHIFT 28
1522#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000 1522#define NV04_MULTITEX_TRIANGLE_FORMAT_ADDRESSV_MASK 0x70000000
1523#define NV04_DX6_MULTITEX_TRIANGLE_FORMAT_WRAPV (1 << 31) 1523#define NV04_MULTITEX_TRIANGLE_FORMAT_WRAPV (1 << 31)
1524#define NV04_DX6_MULTITEX_TRIANGLE_FILTER(x) (0x00000318+((x)*4)) 1524#define NV04_MULTITEX_TRIANGLE_FILTER(x) (0x00000318+((x)*4))
1525#define NV04_DX6_MULTITEX_TRIANGLE_FILTER__SIZE 0x00000002 1525#define NV04_MULTITEX_TRIANGLE_FILTER__SIZE 0x00000002
1526#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0 1526#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_SHIFT 0
1527#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff 1527#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_X_MASK 0x000000ff
1528#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8 1528#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_SHIFT 8
1529#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00 1529#define NV04_MULTITEX_TRIANGLE_FILTER_KERNEL_SIZE_Y_MASK 0x00007f00
1530#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15) 1530#define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_DITHER_ENABLE (1 << 15)
1531#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16 1531#define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_SHIFT 16
1532#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000 1532#define NV04_MULTITEX_TRIANGLE_FILTER_MIPMAP_LODBIAS_MASK 0x00ff0000
1533#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MINIFY_SHIFT 24 1533#define NV04_MULTITEX_TRIANGLE_FILTER_MINIFY_SHIFT 24
1534#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MINIFY_MASK 0x07000000 1534#define NV04_MULTITEX_TRIANGLE_FILTER_MINIFY_MASK 0x07000000
1535#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27) 1535#define NV04_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MINIFY_ENABLE (1 << 27)
1536#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MAGNIFY_SHIFT 28 1536#define NV04_MULTITEX_TRIANGLE_FILTER_MAGNIFY_SHIFT 28
1537#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000 1537#define NV04_MULTITEX_TRIANGLE_FILTER_MAGNIFY_MASK 0x70000000
1538#define NV04_DX6_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31) 1538#define NV04_MULTITEX_TRIANGLE_FILTER_ANISOTROPIC_MAGNIFY_ENABLE (1 << 31)
1539#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA 0x00000320 1539#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA(x) (0x00000320+((x)*12))
1540#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE0 (1 << 0) 1540#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA__SIZE 0x00000002
1541#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA0 (1 << 1) 1541#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE0 (1 << 0)
1542#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT0_SHIFT 2 1542#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_SHIFT 2
1543#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT0_MASK 0x000000fc 1543#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_MASK 0x000000fc
1544#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE1 (1 << 8) 1544#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_ZERO 0x00000004
1545#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA1 (1 << 9) 1545#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_CONSTANT 0x00000008
1546#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT1_SHIFT 10 1546#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_PRIMARY_COLOR 0x0000000c
1547#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT1_MASK 0x0000fc00 1547#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_PREVIOUS 0x00000010
1548#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE2 (1 << 16) 1548#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_TEXTURE0 0x00000014
1549#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA2 (1 << 17) 1549#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT0_TEXTURE1 0x00000018
1550#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT2_SHIFT 18 1550#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE1 (1 << 8)
1551#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT2_MASK 0x00fc0000 1551#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_SHIFT 10
1552#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_INVERSE3 (1 << 24) 1552#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_MASK 0x0000fc00
1553#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ALPHA3 (1 << 25) 1553#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_ZERO 0x00000400
1554#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT3_SHIFT 26 1554#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_CONSTANT 0x00000800
1555#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_ARGUMENT3_MASK 0x1c000000 1555#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_PRIMARY_COLOR 0x00000c00
1556#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_OPERATION_SHIFT 29 1556#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_PREVIOUS 0x00001000
1557#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_ALPHA_OPERATION_MASK 0xe0000000 1557#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_TEXTURE0 0x00001400
1558#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR 0x00000324 1558#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT1_TEXTURE1 0x00001800
1559#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE0 (1 << 0) 1559#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE2 (1 << 16)
1560#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA0 (1 << 1) 1560#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_SHIFT 18
1561#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT0_SHIFT 2 1561#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_MASK 0x00fc0000
1562#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT0_MASK 0x000000fc 1562#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_ZERO 0x00040000
1563#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE1 (1 << 8) 1563#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_CONSTANT 0x00080000
1564#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA1 (1 << 9) 1564#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_PRIMARY_COLOR 0x000c0000
1565#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT1_SHIFT 10 1565#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_PREVIOUS 0x00100000
1566#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT1_MASK 0x0000fc00 1566#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_TEXTURE0 0x00140000
1567#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE2 (1 << 16) 1567#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT2_TEXTURE1 0x00180000
1568#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA2 (1 << 17) 1568#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_INVERSE3 (1 << 24)
1569#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT2_SHIFT 18 1569#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_SHIFT 26
1570#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT2_MASK 0x00fc0000 1570#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_MASK 0x1c000000
1571#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_INVERSE3 (1 << 24) 1571#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_ZERO 0x04000000
1572#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ALPHA3 (1 << 25) 1572#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_CONSTANT 0x08000000
1573#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT3_SHIFT 26 1573#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_PRIMARY_COLOR 0x0c000000
1574#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_ARGUMENT3_MASK 0x1c000000 1574#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_PREVIOUS 0x10000000
1575#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_OPERATION_SHIFT 29 1575#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_TEXTURE0 0x14000000
1576#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_0_COLOR_OPERATION_MASK 0xe0000000 1576#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_ARGUMENT3_TEXTURE1 0x18000000
1577#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA 0x0000032c 1577#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SHIFT 29
1578#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE0 (1 << 0) 1578#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_MASK 0xe0000000
1579#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA0 (1 << 1) 1579#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_IDENTITY 0x20000000
1580#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT0_SHIFT 2 1580#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SCALE2 0x40000000
1581#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT0_MASK 0x000000fc 1581#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_SCALE4 0x60000000
1582#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE1 (1 << 8) 1582#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_BIAS 0x80000000
1583#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA1 (1 << 9) 1583#define NV04_MULTITEX_TRIANGLE_COMBINE_ALPHA_MAP_BIAS_SCALE2 0xe0000000
1584#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT1_SHIFT 10 1584#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR(x) (0x00000324+((x)*12))
1585#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT1_MASK 0x0000fc00 1585#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR__SIZE 0x00000002
1586#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE2 (1 << 16) 1586#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE0 (1 << 0)
1587#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA2 (1 << 17) 1587#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA0 (1 << 1)
1588#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT2_SHIFT 18 1588#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_SHIFT 2
1589#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT2_MASK 0x00fc0000 1589#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_MASK 0x000000fc
1590#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_INVERSE3 (1 << 24) 1590#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_ZERO 0x00000004
1591#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ALPHA3 (1 << 25) 1591#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_CONSTANT 0x00000008
1592#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT3_SHIFT 26 1592#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_PRIMARY_COLOR 0x0000000c
1593#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_ARGUMENT3_MASK 0x1c000000 1593#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_PREVIOUS 0x00000010
1594#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_OPERATION_SHIFT 29 1594#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_TEXTURE0 0x00000014
1595#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_ALPHA_OPERATION_MASK 0xe0000000 1595#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT0_TEXTURE1 0x00000018
1596#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR 0x00000330 1596#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE1 (1 << 8)
1597#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE0 (1 << 0) 1597#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA1 (1 << 9)
1598#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA0 (1 << 1) 1598#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_SHIFT 10
1599#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT0_SHIFT 2 1599#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_MASK 0x0000fc00
1600#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT0_MASK 0x000000fc 1600#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_ZERO 0x00000400
1601#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE1 (1 << 8) 1601#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_CONSTANT 0x00000800
1602#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA1 (1 << 9) 1602#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_PRIMARY_COLOR 0x00000c00
1603#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT1_SHIFT 10 1603#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_PREVIOUS 0x00001000
1604#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT1_MASK 0x0000fc00 1604#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_TEXTURE0 0x00001400
1605#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE2 (1 << 16) 1605#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT1_TEXTURE1 0x00001800
1606#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA2 (1 << 17) 1606#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE2 (1 << 16)
1607#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT2_SHIFT 18 1607#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA2 (1 << 17)
1608#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT2_MASK 0x00fc0000 1608#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_SHIFT 18
1609#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_INVERSE3 (1 << 24) 1609#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_MASK 0x00fc0000
1610#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ALPHA3 (1 << 25) 1610#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_ZERO 0x00040000
1611#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT3_SHIFT 26 1611#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_CONSTANT 0x00080000
1612#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_ARGUMENT3_MASK 0x1c000000 1612#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_PRIMARY_COLOR 0x000c0000
1613#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_OPERATION_SHIFT 29 1613#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_PREVIOUS 0x00100000
1614#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_1_COLOR_OPERATION_MASK 0xe0000000 1614#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_TEXTURE0 0x00140000
1615#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR 0x00000334 1615#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT2_TEXTURE1 0x00180000
1616#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_SHIFT 0 1616#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_INVERSE3 (1 << 24)
1617#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_MASK 0x000000ff 1617#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ALPHA3 (1 << 25)
1618#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_SHIFT 8 1618#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_SHIFT 26
1619#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_MASK 0x0000ff00 1619#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_MASK 0x1c000000
1620#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_SHIFT 16 1620#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_ZERO 0x04000000
1621#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_MASK 0x00ff0000 1621#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_CONSTANT 0x08000000
1622#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_SHIFT 24 1622#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_PRIMARY_COLOR 0x0c000000
1623#define NV04_DX6_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_MASK 0xff000000 1623#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_PREVIOUS 0x10000000
1624#define NV04_DX6_MULTITEX_TRIANGLE_BLEND 0x00000338 1624#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_TEXTURE0 0x14000000
1625#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_MASK_BIT_SHIFT 4 1625#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_ARGUMENT3_TEXTURE1 0x18000000
1626#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030 1626#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SHIFT 29
1627#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6 1627#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_MASK 0xe0000000
1628#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0 1628#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_IDENTITY 0x20000000
1629#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_SHIFT 8 1629#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SCALE2 0x40000000
1630#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE_MASK 0x00000f00 1630#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_SCALE4 0x60000000
1631#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE_SHIFT 12 1631#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_BIAS 0x80000000
1632#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE_MASK 0x0000f000 1632#define NV04_MULTITEX_TRIANGLE_COMBINE_COLOR_MAP_BIAS_SCALE2 0xe0000000
1633#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE_SHIFT 16 1633#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR 0x00000334
1634#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE_MASK 0x000f0000 1634#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_SHIFT 0
1635#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_ALPHA_ENABLE_SHIFT 20 1635#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_B_MASK 0x000000ff
1636#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_ALPHA_ENABLE_MASK 0x00f00000 1636#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_SHIFT 8
1637#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_SRC_SHIFT 24 1637#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_G_MASK 0x0000ff00
1638#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_SRC_MASK 0x0f000000 1638#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_SHIFT 16
1639#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_DST_SHIFT 28 1639#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_R_MASK 0x00ff0000
1640#define NV04_DX6_MULTITEX_TRIANGLE_BLEND_DST_MASK 0xf0000000 1640#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_SHIFT 24
1641#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0 0x0000033c 1641#define NV04_MULTITEX_TRIANGLE_COMBINE_FACTOR_A_MASK 0xff000000
1642#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_SHIFT 0 1642#define NV04_MULTITEX_TRIANGLE_BLEND 0x00000338
1643#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_MASK 0x000000ff 1643#define NV04_MULTITEX_TRIANGLE_BLEND_MASK_BIT_SHIFT 4
1644#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_SHIFT 8 1644#define NV04_MULTITEX_TRIANGLE_BLEND_MASK_BIT_MASK 0x00000030
1645#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_MASK 0x00000f00 1645#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_SHIFT 6
1646#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_TEST_ENABLE (1 << 12) 1646#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_MASK 0x000000c0
1647#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ORIGIN (1 << 13) 1647#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_FLAT 0x00000040
1648#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE_SHIFT 14 1648#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_GOURAUD 0x00000080
1649#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE_MASK 0x0000c000 1649#define NV04_MULTITEX_TRIANGLE_BLEND_SHADE_MODE_PHONG 0x000000c0
1650#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_SHIFT 16 1650#define NV04_MULTITEX_TRIANGLE_BLEND_TEXTURE_PERSPECTIVE_ENABLE (1 << 8)
1651#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_MASK 0x000f0000 1651#define NV04_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE_SHIFT 12
1652#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_SHIFT 20 1652#define NV04_MULTITEX_TRIANGLE_BLEND_SPECULAR_ENABLE_MASK 0x0000f000
1653#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_MASK 0x00300000 1653#define NV04_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE_SHIFT 16
1654#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_DITHER_ENABLE (1 << 22) 1654#define NV04_MULTITEX_TRIANGLE_BLEND_FOG_ENABLE_MASK 0x000f0000
1655#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_PERSPECTIVE_ENABLE (1 << 23) 1655#define NV04_MULTITEX_TRIANGLE_BLEND_BLEND_ENABLE (1 << 20)
1656#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_WRITE_ENABLE (1 << 24) 1656#define NV04_MULTITEX_TRIANGLE_BLEND_SRC_SHIFT 24
1657#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_STENCIL_WRITE_ENABLE (1 << 25) 1657#define NV04_MULTITEX_TRIANGLE_BLEND_SRC_MASK 0x0f000000
1658#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_ALPHA_WRITE_ENABLE (1 << 26) 1658#define NV04_MULTITEX_TRIANGLE_BLEND_DST_SHIFT 28
1659#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_RED_WRITE_ENABLE (1 << 27) 1659#define NV04_MULTITEX_TRIANGLE_BLEND_DST_MASK 0xf0000000
1660#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_GREEN_WRITE_ENABLE (1 << 28) 1660#define NV04_MULTITEX_TRIANGLE_CONTROL0 0x0000033c
1661#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_BLUE_WRITE_ENABLE (1 << 29) 1661#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_SHIFT 0
1662#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_SHIFT 30 1662#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_REF_MASK 0x000000ff
1663#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_MASK 0xc0000000 1663#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_SHIFT 8
1664#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1 0x00000340 1664#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_FUNC_MASK 0x00000f00
1665#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_TEST_ENABLE_SHIFT 0 1665#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_ENABLE (1 << 12)
1666#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_TEST_ENABLE_MASK 0x0000000f 1666#define NV04_MULTITEX_TRIANGLE_CONTROL0_ORIGIN (1 << 13)
1667#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_SHIFT 4 1667#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_ENABLE (1 << 14)
1668#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_MASK 0x000000f0 1668#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_SHIFT 16
1669#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_SHIFT 8 1669#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FUNC_MASK 0x000f0000
1670#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_MASK 0x0000ff00 1670#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_SHIFT 20
1671#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_SHIFT 16 1671#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_MASK 0x00300000
1672#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_MASK 0x00ff0000 1672#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_BOTH 0x00000000
1673#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_SHIFT 24 1673#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_NONE 0x00100000
1674#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_MASK 0xff000000 1674#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_CW 0x00200000
1675#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2 0x00000344 1675#define NV04_MULTITEX_TRIANGLE_CONTROL0_CULL_MODE_CCW 0x00300000
1676#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_SHIFT 0 1676#define NV04_MULTITEX_TRIANGLE_CONTROL0_DITHER_ENABLE (1 << 22)
1677#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_MASK 0x0000000f 1677#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_PERSPECTIVE_ENABLE (1 << 23)
1678#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_SHIFT 4 1678#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_WRITE (1 << 24)
1679#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_MASK 0x000000f0 1679#define NV04_MULTITEX_TRIANGLE_CONTROL0_STENCIL_WRITE (1 << 25)
1680#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_SHIFT 8 1680#define NV04_MULTITEX_TRIANGLE_CONTROL0_ALPHA_WRITE (1 << 26)
1681#define NV04_DX6_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_MASK 0x00000f00 1681#define NV04_MULTITEX_TRIANGLE_CONTROL0_RED_WRITE (1 << 27)
1682#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR 0x00000348 1682#define NV04_MULTITEX_TRIANGLE_CONTROL0_GREEN_WRITE (1 << 28)
1683#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_B_SHIFT 0 1683#define NV04_MULTITEX_TRIANGLE_CONTROL0_BLUE_WRITE (1 << 29)
1684#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff 1684#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_SHIFT 30
1685#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_G_SHIFT 8 1685#define NV04_MULTITEX_TRIANGLE_CONTROL0_Z_FORMAT_MASK 0xc0000000
1686#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00 1686#define NV04_MULTITEX_TRIANGLE_CONTROL1 0x00000340
1687#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_R_SHIFT 16 1687#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_ENABLE (1 << 0)
1688#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000 1688#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_SHIFT 4
1689#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_A_SHIFT 24 1689#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_FUNC_MASK 0x000000f0
1690#define NV04_DX6_MULTITEX_TRIANGLE_FOGCOLOR_A_MASK 0xff000000 1690#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_SHIFT 8
1691#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SX(x) (0x00000400+((x)*40)) 1691#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_REF_MASK 0x0000ff00
1692#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SX__SIZE 0x00000008 1692#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_SHIFT 16
1693#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SY(x) (0x00000404+((x)*40)) 1693#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_READ_MASK 0x00ff0000
1694#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SY__SIZE 0x00000008 1694#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_SHIFT 24
1695#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SZ(x) (0x00000408+((x)*40)) 1695#define NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_MASK_WRITE_MASK 0xff000000
1696#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SZ__SIZE 0x00000008 1696#define NV04_MULTITEX_TRIANGLE_CONTROL2 0x00000344
1697#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_RHW(x) (0x0000040c+((x)*40)) 1697#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_SHIFT 0
1698#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_RHW__SIZE 0x00000008 1698#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_FAIL_MASK 0x0000000f
1699#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR(x) (0x00000410+((x)*40)) 1699#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_SHIFT 4
1700#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR__SIZE 0x00000008 1700#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZFAIL_MASK 0x000000f0
1701#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_SHIFT 0 1701#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_SHIFT 8
1702#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_MASK 0x000000ff 1702#define NV04_MULTITEX_TRIANGLE_CONTROL2_STENCIL_OP_ZPASS_MASK 0x00000f00
1703#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_SHIFT 8 1703#define NV04_MULTITEX_TRIANGLE_FOGCOLOR 0x00000348
1704#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_MASK 0x0000ff00 1704#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_B_SHIFT 0
1705#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_SHIFT 16 1705#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_B_MASK 0x000000ff
1706#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_MASK 0x00ff0000 1706#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_G_SHIFT 8
1707#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_SHIFT 24 1707#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_G_MASK 0x0000ff00
1708#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_MASK 0xff000000 1708#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_R_SHIFT 16
1709#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR(x) (0x00000414+((x)*40)) 1709#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_R_MASK 0x00ff0000
1710#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR__SIZE 0x00000008 1710#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_A_SHIFT 24
1711#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_SHIFT 0 1711#define NV04_MULTITEX_TRIANGLE_FOGCOLOR_A_MASK 0xff000000
1712#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_MASK 0x000000ff 1712#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SX(x) (0x00000400+((x)*40))
1713#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_SHIFT 8 1713#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SX__SIZE 0x00000008
1714#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_MASK 0x0000ff00 1714#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SY(x) (0x00000404+((x)*40))
1715#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_SHIFT 16 1715#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SY__SIZE 0x00000008
1716#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_MASK 0x00ff0000 1716#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SZ(x) (0x00000408+((x)*40))
1717#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_SHIFT 24 1717#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SZ__SIZE 0x00000008
1718#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_MASK 0xff000000 1718#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_RHW(x) (0x0000040c+((x)*40))
1719#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU0(x) (0x00000418+((x)*40)) 1719#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_RHW__SIZE 0x00000008
1720#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU0__SIZE 0x00000008 1720#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR(x) (0x00000410+((x)*40))
1721#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV0(x) (0x0000041c+((x)*40)) 1721#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR__SIZE 0x00000008
1722#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV0__SIZE 0x00000008 1722#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_SHIFT 0
1723#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU1(x) (0x00000420+((x)*40)) 1723#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_B_MASK 0x000000ff
1724#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TU1__SIZE 0x00000008 1724#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_SHIFT 8
1725#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV1(x) (0x00000424+((x)*40)) 1725#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_G_MASK 0x0000ff00
1726#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_TV1__SIZE 0x00000008 1726#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_SHIFT 16
1727#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE(x) (0x00000540+((x)*4)) 1727#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_R_MASK 0x00ff0000
1728#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE__SIZE 0x00000030 1728#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_SHIFT 24
1729#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I0_SHIFT 0 1729#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_COLOR_A_MASK 0xff000000
1730#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I0_MASK 0x0000000f 1730#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR(x) (0x00000414+((x)*40))
1731#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I1_SHIFT 4 1731#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR__SIZE 0x00000008
1732#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I1_MASK 0x000000f0 1732#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_SHIFT 0
1733#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I2_SHIFT 8 1733#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_B_MASK 0x000000ff
1734#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I2_MASK 0x00000f00 1734#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_SHIFT 8
1735#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I3_SHIFT 12 1735#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_G_MASK 0x0000ff00
1736#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I3_MASK 0x0000f000 1736#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_SHIFT 16
1737#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I4_SHIFT 16 1737#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_R_MASK 0x00ff0000
1738#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I4_MASK 0x000f0000 1738#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_SHIFT 24
1739#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I5_SHIFT 20 1739#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_SPECULAR_FOG_MASK 0xff000000
1740#define NV04_DX6_MULTITEX_TRIANGLE_TLMTVERTEX_DRAWPRIMITIVE_I5_MASK 0x00f00000 1740#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU0(x) (0x00000418+((x)*40))
1741#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU0__SIZE 0x00000008
1742#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV0(x) (0x0000041c+((x)*40))
1743#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV0__SIZE 0x00000008
1744#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU1(x) (0x00000420+((x)*40))
1745#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TU1__SIZE 0x00000008
1746#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV1(x) (0x00000424+((x)*40))
1747#define NV04_MULTITEX_TRIANGLE_TLMTVERTEX_TV1__SIZE 0x00000008
1748#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE(x) (0x00000540+((x)*4))
1749#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE__SIZE 0x00000030
1750#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I0_SHIFT 0
1751#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I0_MASK 0x0000000f
1752#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I1_SHIFT 4
1753#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I1_MASK 0x000000f0
1754#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I2_SHIFT 8
1755#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I2_MASK 0x00000f00
1756#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I3_SHIFT 12
1757#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I3_MASK 0x0000f000
1758#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I4_SHIFT 16
1759#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I4_MASK 0x000f0000
1760#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I5_SHIFT 20
1761#define NV04_MULTITEX_TRIANGLE_DRAWPRIMITIVE_I5_MASK 0x00f00000
1741 1762
1742 1763
1743#define NV10TCL 0x00000056 1764#define NV10TCL 0x00000056
@@ -1845,6 +1866,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1845#define NV10TCL_TX_FORMAT_WRAP_T_CLAMP 0x50000000 1866#define NV10TCL_TX_FORMAT_WRAP_T_CLAMP 0x50000000
1846#define NV10TCL_TX_ENABLE(x) (0x00000228+((x)*4)) 1867#define NV10TCL_TX_ENABLE(x) (0x00000228+((x)*4))
1847#define NV10TCL_TX_ENABLE__SIZE 0x00000002 1868#define NV10TCL_TX_ENABLE__SIZE 0x00000002
1869#define NV10TCL_TX_ENABLE_CULL_SHIFT 0
1870#define NV10TCL_TX_ENABLE_CULL_MASK 0x0000000f
1871#define NV10TCL_TX_ENABLE_CULL_DISABLED 0x00000000
1872#define NV10TCL_TX_ENABLE_CULL_TEST_ALL 0x00000003
1873#define NV10TCL_TX_ENABLE_CULL_TEST_ALPHA 0x00000004
1848#define NV10TCL_TX_ENABLE_ANISOTROPY_SHIFT 4 1874#define NV10TCL_TX_ENABLE_ANISOTROPY_SHIFT 4
1849#define NV10TCL_TX_ENABLE_ANISOTROPY_MASK 0x00000030 1875#define NV10TCL_TX_ENABLE_ANISOTROPY_MASK 0x00000030
1850#define NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_SHIFT 14 1876#define NV10TCL_TX_ENABLE_MIPMAP_MAX_LOD_SHIFT 14
@@ -1885,237 +1911,237 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1885#define NV10TCL_RC_IN_ALPHA_D_INPUT_SHIFT 0 1911#define NV10TCL_RC_IN_ALPHA_D_INPUT_SHIFT 0
1886#define NV10TCL_RC_IN_ALPHA_D_INPUT_MASK 0x0000000f 1912#define NV10TCL_RC_IN_ALPHA_D_INPUT_MASK 0x0000000f
1887#define NV10TCL_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000 1913#define NV10TCL_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000
1888#define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 1914#define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0 0x00000001
1889#define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 1915#define NV10TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1 0x00000002
1890#define NV10TCL_RC_IN_ALPHA_D_INPUT_FOG 0x00000003 1916#define NV10TCL_RC_IN_ALPHA_D_INPUT_FOG 0x00000003
1891#define NV10TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR_NV 0x00000004 1917#define NV10TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR 0x00000004
1892#define NV10TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR_NV 0x00000005 1918#define NV10TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR 0x00000005
1893#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0_ARB 0x00000008 1919#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0 0x00000008
1894#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1_ARB 0x00000009 1920#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1 0x00000009
1895#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_NV 0x0000000c 1921#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0 0x0000000c
1896#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE1_NV 0x0000000d 1922#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE1 0x0000000d
1897#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 1923#define NV10TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
1898#define NV10TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F_NV 0x0000000f 1924#define NV10TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F 0x0000000f
1899#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2_ARB 0x0000000a 1925#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2 0x0000000a
1900#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3_ARB 0x0000000b 1926#define NV10TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3 0x0000000b
1901#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE (1 << 4) 1927#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE (1 << 4)
1902#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000 1928#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000
1903#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010 1929#define NV10TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010
1904#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SHIFT 5 1930#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SHIFT 5
1905#define NV10TCL_RC_IN_ALPHA_D_MAPPING_MASK 0x000000e0 1931#define NV10TCL_RC_IN_ALPHA_D_MAPPING_MASK 0x000000e0
1906#define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 1932#define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
1907#define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 1933#define NV10TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT 0x00000020
1908#define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 1934#define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL 0x00000040
1909#define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 1935#define NV10TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE 0x00000060
1910#define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 1936#define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
1911#define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 1937#define NV10TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
1912#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 1938#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY 0x000000c0
1913#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 1939#define NV10TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE 0x000000e0
1914#define NV10TCL_RC_IN_ALPHA_C_INPUT_SHIFT 8 1940#define NV10TCL_RC_IN_ALPHA_C_INPUT_SHIFT 8
1915#define NV10TCL_RC_IN_ALPHA_C_INPUT_MASK 0x00000f00 1941#define NV10TCL_RC_IN_ALPHA_C_INPUT_MASK 0x00000f00
1916#define NV10TCL_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000 1942#define NV10TCL_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000
1917#define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 1943#define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0 0x00000100
1918#define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 1944#define NV10TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1 0x00000200
1919#define NV10TCL_RC_IN_ALPHA_C_INPUT_FOG 0x00000300 1945#define NV10TCL_RC_IN_ALPHA_C_INPUT_FOG 0x00000300
1920#define NV10TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR_NV 0x00000400 1946#define NV10TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR 0x00000400
1921#define NV10TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR_NV 0x00000500 1947#define NV10TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR 0x00000500
1922#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0_ARB 0x00000800 1948#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0 0x00000800
1923#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1_ARB 0x00000900 1949#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1 0x00000900
1924#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_NV 0x00000c00 1950#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0 0x00000c00
1925#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE1_NV 0x00000d00 1951#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE1 0x00000d00
1926#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 1952#define NV10TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
1927#define NV10TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F_NV 0x00000f00 1953#define NV10TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F 0x00000f00
1928#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2_ARB 0x00000a00 1954#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2 0x00000a00
1929#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3_ARB 0x00000b00 1955#define NV10TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3 0x00000b00
1930#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE (1 << 12) 1956#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE (1 << 12)
1931#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000 1957#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000
1932#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000 1958#define NV10TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000
1933#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SHIFT 13 1959#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SHIFT 13
1934#define NV10TCL_RC_IN_ALPHA_C_MAPPING_MASK 0x0000e000 1960#define NV10TCL_RC_IN_ALPHA_C_MAPPING_MASK 0x0000e000
1935#define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 1961#define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
1936#define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 1962#define NV10TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT 0x00002000
1937#define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 1963#define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL 0x00004000
1938#define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 1964#define NV10TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE 0x00006000
1939#define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 1965#define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
1940#define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 1966#define NV10TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
1941#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 1967#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY 0x0000c000
1942#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 1968#define NV10TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE 0x0000e000
1943#define NV10TCL_RC_IN_ALPHA_B_INPUT_SHIFT 16 1969#define NV10TCL_RC_IN_ALPHA_B_INPUT_SHIFT 16
1944#define NV10TCL_RC_IN_ALPHA_B_INPUT_MASK 0x000f0000 1970#define NV10TCL_RC_IN_ALPHA_B_INPUT_MASK 0x000f0000
1945#define NV10TCL_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000 1971#define NV10TCL_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000
1946#define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 1972#define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0 0x00010000
1947#define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 1973#define NV10TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1 0x00020000
1948#define NV10TCL_RC_IN_ALPHA_B_INPUT_FOG 0x00030000 1974#define NV10TCL_RC_IN_ALPHA_B_INPUT_FOG 0x00030000
1949#define NV10TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR_NV 0x00040000 1975#define NV10TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR 0x00040000
1950#define NV10TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR_NV 0x00050000 1976#define NV10TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR 0x00050000
1951#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0_ARB 0x00080000 1977#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0 0x00080000
1952#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1_ARB 0x00090000 1978#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1 0x00090000
1953#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_NV 0x000c0000 1979#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0 0x000c0000
1954#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE1_NV 0x000d0000 1980#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE1 0x000d0000
1955#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 1981#define NV10TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
1956#define NV10TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F_NV 0x000f0000 1982#define NV10TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F 0x000f0000
1957#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2_ARB 0x000a0000 1983#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2 0x000a0000
1958#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3_ARB 0x000b0000 1984#define NV10TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3 0x000b0000
1959#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE (1 << 20) 1985#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE (1 << 20)
1960#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000 1986#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000
1961#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000 1987#define NV10TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000
1962#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SHIFT 21 1988#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SHIFT 21
1963#define NV10TCL_RC_IN_ALPHA_B_MAPPING_MASK 0x00e00000 1989#define NV10TCL_RC_IN_ALPHA_B_MAPPING_MASK 0x00e00000
1964#define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 1990#define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
1965#define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT_NV 0x00200000 1991#define NV10TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT 0x00200000
1966#define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL_NV 0x00400000 1992#define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL 0x00400000
1967#define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE_NV 0x00600000 1993#define NV10TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE 0x00600000
1968#define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 1994#define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
1969#define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 1995#define NV10TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
1970#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 1996#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY 0x00c00000
1971#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE_NV 0x00e00000 1997#define NV10TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE 0x00e00000
1972#define NV10TCL_RC_IN_ALPHA_A_INPUT_SHIFT 24 1998#define NV10TCL_RC_IN_ALPHA_A_INPUT_SHIFT 24
1973#define NV10TCL_RC_IN_ALPHA_A_INPUT_MASK 0x0f000000 1999#define NV10TCL_RC_IN_ALPHA_A_INPUT_MASK 0x0f000000
1974#define NV10TCL_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000 2000#define NV10TCL_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000
1975#define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0_NV 0x01000000 2001#define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0 0x01000000
1976#define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1_NV 0x02000000 2002#define NV10TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1 0x02000000
1977#define NV10TCL_RC_IN_ALPHA_A_INPUT_FOG 0x03000000 2003#define NV10TCL_RC_IN_ALPHA_A_INPUT_FOG 0x03000000
1978#define NV10TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR_NV 0x04000000 2004#define NV10TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR 0x04000000
1979#define NV10TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR_NV 0x05000000 2005#define NV10TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR 0x05000000
1980#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0_ARB 0x08000000 2006#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0 0x08000000
1981#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1_ARB 0x09000000 2007#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1 0x09000000
1982#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_NV 0x0c000000 2008#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0 0x0c000000
1983#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE1_NV 0x0d000000 2009#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE1 0x0d000000
1984#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 2010#define NV10TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
1985#define NV10TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F_NV 0x0f000000 2011#define NV10TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F 0x0f000000
1986#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2_ARB 0x0a000000 2012#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2 0x0a000000
1987#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3_ARB 0x0b000000 2013#define NV10TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3 0x0b000000
1988#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE (1 << 28) 2014#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE (1 << 28)
1989#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000 2015#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000
1990#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000 2016#define NV10TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000
1991#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SHIFT 29 2017#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SHIFT 29
1992#define NV10TCL_RC_IN_ALPHA_A_MAPPING_MASK 0xe0000000 2018#define NV10TCL_RC_IN_ALPHA_A_MAPPING_MASK 0xe0000000
1993#define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2019#define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
1994#define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT_NV 0x20000000 2020#define NV10TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT 0x20000000
1995#define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL_NV 0x40000000 2021#define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL 0x40000000
1996#define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE_NV 0x60000000 2022#define NV10TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE 0x60000000
1997#define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 2023#define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
1998#define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 2024#define NV10TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
1999#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 2025#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2000#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE_NV 0xe0000000 2026#define NV10TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE 0xe0000000
2001#define NV10TCL_RC_IN_RGB(x) (0x00000268+((x)*4)) 2027#define NV10TCL_RC_IN_RGB(x) (0x00000268+((x)*4))
2002#define NV10TCL_RC_IN_RGB__SIZE 0x00000002 2028#define NV10TCL_RC_IN_RGB__SIZE 0x00000002
2003#define NV10TCL_RC_IN_RGB_D_INPUT_SHIFT 0 2029#define NV10TCL_RC_IN_RGB_D_INPUT_SHIFT 0
2004#define NV10TCL_RC_IN_RGB_D_INPUT_MASK 0x0000000f 2030#define NV10TCL_RC_IN_RGB_D_INPUT_MASK 0x0000000f
2005#define NV10TCL_RC_IN_RGB_D_INPUT_ZERO 0x00000000 2031#define NV10TCL_RC_IN_RGB_D_INPUT_ZERO 0x00000000
2006#define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 2032#define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0 0x00000001
2007#define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 2033#define NV10TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1 0x00000002
2008#define NV10TCL_RC_IN_RGB_D_INPUT_FOG 0x00000003 2034#define NV10TCL_RC_IN_RGB_D_INPUT_FOG 0x00000003
2009#define NV10TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR_NV 0x00000004 2035#define NV10TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR 0x00000004
2010#define NV10TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR_NV 0x00000005 2036#define NV10TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR 0x00000005
2011#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE0_ARB 0x00000008 2037#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE0 0x00000008
2012#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE1_ARB 0x00000009 2038#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE1 0x00000009
2013#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_NV 0x0000000c 2039#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0 0x0000000c
2014#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE1_NV 0x0000000d 2040#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE1 0x0000000d
2015#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 2041#define NV10TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2016#define NV10TCL_RC_IN_RGB_D_INPUT_E_TIMES_F_NV 0x0000000f 2042#define NV10TCL_RC_IN_RGB_D_INPUT_E_TIMES_F 0x0000000f
2017#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE2_ARB 0x0000000a 2043#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE2 0x0000000a
2018#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE3_ARB 0x0000000b 2044#define NV10TCL_RC_IN_RGB_D_INPUT_TEXTURE3 0x0000000b
2019#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE (1 << 4) 2045#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE (1 << 4)
2020#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000 2046#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000
2021#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010 2047#define NV10TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010
2022#define NV10TCL_RC_IN_RGB_D_MAPPING_SHIFT 5 2048#define NV10TCL_RC_IN_RGB_D_MAPPING_SHIFT 5
2023#define NV10TCL_RC_IN_RGB_D_MAPPING_MASK 0x000000e0 2049#define NV10TCL_RC_IN_RGB_D_MAPPING_MASK 0x000000e0
2024#define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2050#define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2025#define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 2051#define NV10TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT 0x00000020
2026#define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 2052#define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL 0x00000040
2027#define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 2053#define NV10TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE 0x00000060
2028#define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 2054#define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2029#define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 2055#define NV10TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2030#define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 2056#define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2031#define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 2057#define NV10TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE 0x000000e0
2032#define NV10TCL_RC_IN_RGB_C_INPUT_SHIFT 8 2058#define NV10TCL_RC_IN_RGB_C_INPUT_SHIFT 8
2033#define NV10TCL_RC_IN_RGB_C_INPUT_MASK 0x00000f00 2059#define NV10TCL_RC_IN_RGB_C_INPUT_MASK 0x00000f00
2034#define NV10TCL_RC_IN_RGB_C_INPUT_ZERO 0x00000000 2060#define NV10TCL_RC_IN_RGB_C_INPUT_ZERO 0x00000000
2035#define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 2061#define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0 0x00000100
2036#define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 2062#define NV10TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1 0x00000200
2037#define NV10TCL_RC_IN_RGB_C_INPUT_FOG 0x00000300 2063#define NV10TCL_RC_IN_RGB_C_INPUT_FOG 0x00000300
2038#define NV10TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR_NV 0x00000400 2064#define NV10TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR 0x00000400
2039#define NV10TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR_NV 0x00000500 2065#define NV10TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR 0x00000500
2040#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE0_ARB 0x00000800 2066#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE0 0x00000800
2041#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE1_ARB 0x00000900 2067#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE1 0x00000900
2042#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_NV 0x00000c00 2068#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0 0x00000c00
2043#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE1_NV 0x00000d00 2069#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE1 0x00000d00
2044#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 2070#define NV10TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2045#define NV10TCL_RC_IN_RGB_C_INPUT_E_TIMES_F_NV 0x00000f00 2071#define NV10TCL_RC_IN_RGB_C_INPUT_E_TIMES_F 0x00000f00
2046#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE2_ARB 0x00000a00 2072#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE2 0x00000a00
2047#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE3_ARB 0x00000b00 2073#define NV10TCL_RC_IN_RGB_C_INPUT_TEXTURE3 0x00000b00
2048#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE (1 << 12) 2074#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE (1 << 12)
2049#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000 2075#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000
2050#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000 2076#define NV10TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000
2051#define NV10TCL_RC_IN_RGB_C_MAPPING_SHIFT 13 2077#define NV10TCL_RC_IN_RGB_C_MAPPING_SHIFT 13
2052#define NV10TCL_RC_IN_RGB_C_MAPPING_MASK 0x0000e000 2078#define NV10TCL_RC_IN_RGB_C_MAPPING_MASK 0x0000e000
2053#define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2079#define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2054#define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 2080#define NV10TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT 0x00002000
2055#define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 2081#define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL 0x00004000
2056#define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 2082#define NV10TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE 0x00006000
2057#define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 2083#define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2058#define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 2084#define NV10TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2059#define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 2085#define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2060#define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 2086#define NV10TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE 0x0000e000
2061#define NV10TCL_RC_IN_RGB_B_INPUT_SHIFT 16 2087#define NV10TCL_RC_IN_RGB_B_INPUT_SHIFT 16
2062#define NV10TCL_RC_IN_RGB_B_INPUT_MASK 0x000f0000 2088#define NV10TCL_RC_IN_RGB_B_INPUT_MASK 0x000f0000
2063#define NV10TCL_RC_IN_RGB_B_INPUT_ZERO 0x00000000 2089#define NV10TCL_RC_IN_RGB_B_INPUT_ZERO 0x00000000
2064#define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 2090#define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0 0x00010000
2065#define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 2091#define NV10TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1 0x00020000
2066#define NV10TCL_RC_IN_RGB_B_INPUT_FOG 0x00030000 2092#define NV10TCL_RC_IN_RGB_B_INPUT_FOG 0x00030000
2067#define NV10TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR_NV 0x00040000 2093#define NV10TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR 0x00040000
2068#define NV10TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR_NV 0x00050000 2094#define NV10TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR 0x00050000
2069#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE0_ARB 0x00080000 2095#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE0 0x00080000
2070#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE1_ARB 0x00090000 2096#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE1 0x00090000
2071#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_NV 0x000c0000 2097#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0 0x000c0000
2072#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE1_NV 0x000d0000 2098#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE1 0x000d0000
2073#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 2099#define NV10TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2074#define NV10TCL_RC_IN_RGB_B_INPUT_E_TIMES_F_NV 0x000f0000 2100#define NV10TCL_RC_IN_RGB_B_INPUT_E_TIMES_F 0x000f0000
2075#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE2_ARB 0x000a0000 2101#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE2 0x000a0000
2076#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE3_ARB 0x000b0000 2102#define NV10TCL_RC_IN_RGB_B_INPUT_TEXTURE3 0x000b0000
2077#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE (1 << 20) 2103#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE (1 << 20)
2078#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000 2104#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000
2079#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000 2105#define NV10TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000
2080#define NV10TCL_RC_IN_RGB_B_MAPPING_SHIFT 21 2106#define NV10TCL_RC_IN_RGB_B_MAPPING_SHIFT 21
2081#define NV10TCL_RC_IN_RGB_B_MAPPING_MASK 0x00e00000 2107#define NV10TCL_RC_IN_RGB_B_MAPPING_MASK 0x00e00000
2082#define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2108#define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2083#define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT_NV 0x00200000 2109#define NV10TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT 0x00200000
2084#define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL_NV 0x00400000 2110#define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL 0x00400000
2085#define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE_NV 0x00600000 2111#define NV10TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE 0x00600000
2086#define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 2112#define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2087#define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 2113#define NV10TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2088#define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 2114#define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2089#define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE_NV 0x00e00000 2115#define NV10TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE 0x00e00000
2090#define NV10TCL_RC_IN_RGB_A_INPUT_SHIFT 24 2116#define NV10TCL_RC_IN_RGB_A_INPUT_SHIFT 24
2091#define NV10TCL_RC_IN_RGB_A_INPUT_MASK 0x0f000000 2117#define NV10TCL_RC_IN_RGB_A_INPUT_MASK 0x0f000000
2092#define NV10TCL_RC_IN_RGB_A_INPUT_ZERO 0x00000000 2118#define NV10TCL_RC_IN_RGB_A_INPUT_ZERO 0x00000000
2093#define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0_NV 0x01000000 2119#define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0 0x01000000
2094#define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1_NV 0x02000000 2120#define NV10TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1 0x02000000
2095#define NV10TCL_RC_IN_RGB_A_INPUT_FOG 0x03000000 2121#define NV10TCL_RC_IN_RGB_A_INPUT_FOG 0x03000000
2096#define NV10TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR_NV 0x04000000 2122#define NV10TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR 0x04000000
2097#define NV10TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR_NV 0x05000000 2123#define NV10TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR 0x05000000
2098#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE0_ARB 0x08000000 2124#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE0 0x08000000
2099#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE1_ARB 0x09000000 2125#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE1 0x09000000
2100#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_NV 0x0c000000 2126#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0 0x0c000000
2101#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE1_NV 0x0d000000 2127#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE1 0x0d000000
2102#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 2128#define NV10TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2103#define NV10TCL_RC_IN_RGB_A_INPUT_E_TIMES_F_NV 0x0f000000 2129#define NV10TCL_RC_IN_RGB_A_INPUT_E_TIMES_F 0x0f000000
2104#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE2_ARB 0x0a000000 2130#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE2 0x0a000000
2105#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE3_ARB 0x0b000000 2131#define NV10TCL_RC_IN_RGB_A_INPUT_TEXTURE3 0x0b000000
2106#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE (1 << 28) 2132#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE (1 << 28)
2107#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000 2133#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000
2108#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000 2134#define NV10TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000
2109#define NV10TCL_RC_IN_RGB_A_MAPPING_SHIFT 29 2135#define NV10TCL_RC_IN_RGB_A_MAPPING_SHIFT 29
2110#define NV10TCL_RC_IN_RGB_A_MAPPING_MASK 0xe0000000 2136#define NV10TCL_RC_IN_RGB_A_MAPPING_MASK 0xe0000000
2111#define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2137#define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2112#define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT_NV 0x20000000 2138#define NV10TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT 0x20000000
2113#define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL_NV 0x40000000 2139#define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL 0x40000000
2114#define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE_NV 0x60000000 2140#define NV10TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE 0x60000000
2115#define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 2141#define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2116#define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 2142#define NV10TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2117#define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 2143#define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2118#define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE_NV 0xe0000000 2144#define NV10TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE 0xe0000000
2119#define NV10TCL_RC_COLOR(x) (0x00000270+((x)*4)) 2145#define NV10TCL_RC_COLOR(x) (0x00000270+((x)*4))
2120#define NV10TCL_RC_COLOR__SIZE 0x00000002 2146#define NV10TCL_RC_COLOR__SIZE 0x00000002
2121#define NV10TCL_RC_COLOR_B_SHIFT 0 2147#define NV10TCL_RC_COLOR_B_SHIFT 0
@@ -2131,333 +2157,333 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2131#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT 0 2157#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT 0
2132#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK 0x0000000f 2158#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK 0x0000000f
2133#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000 2159#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000
2134#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0_NV 0x00000001 2160#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
2135#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1_NV 0x00000002 2161#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
2136#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003 2162#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003
2137#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR_NV 0x00000004 2163#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR 0x00000004
2138#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR_NV 0x00000005 2164#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR 0x00000005
2139#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0_ARB 0x00000008 2165#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0 0x00000008
2140#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1_ARB 0x00000009 2166#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1 0x00000009
2141#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_NV 0x0000000c 2167#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0 0x0000000c
2142#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1_NV 0x0000000d 2168#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1 0x0000000d
2143#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 2169#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2144#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F_NV 0x0000000f 2170#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F 0x0000000f
2145#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2_ARB 0x0000000a 2171#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2 0x0000000a
2146#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3_ARB 0x0000000b 2172#define NV10TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3 0x0000000b
2147#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT 4 2173#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT 4
2148#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK 0x000000f0 2174#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK 0x000000f0
2149#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000 2175#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000
2150#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0_NV 0x00000010 2176#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
2151#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1_NV 0x00000020 2177#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
2152#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030 2178#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030
2153#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR_NV 0x00000040 2179#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR 0x00000040
2154#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR_NV 0x00000050 2180#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR 0x00000050
2155#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0_ARB 0x00000080 2181#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0 0x00000080
2156#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1_ARB 0x00000090 2182#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1 0x00000090
2157#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_NV 0x000000c0 2183#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0 0x000000c0
2158#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1_NV 0x000000d0 2184#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1 0x000000d0
2159#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000000e0 2185#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
2160#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F_NV 0x000000f0 2186#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F 0x000000f0
2161#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2_ARB 0x000000a0 2187#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2 0x000000a0
2162#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3_ARB 0x000000b0 2188#define NV10TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3 0x000000b0
2163#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT 8 2189#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT 8
2164#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK 0x00000f00 2190#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK 0x00000f00
2165#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000 2191#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000
2166#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0_NV 0x00000100 2192#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
2167#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1_NV 0x00000200 2193#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
2168#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300 2194#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300
2169#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR_NV 0x00000400 2195#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
2170#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR_NV 0x00000500 2196#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
2171#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0_ARB 0x00000800 2197#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0 0x00000800
2172#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1_ARB 0x00000900 2198#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1 0x00000900
2173#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_NV 0x00000c00 2199#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0 0x00000c00
2174#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1_NV 0x00000d00 2200#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1 0x00000d00
2175#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 2201#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2176#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F_NV 0x00000f00 2202#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F 0x00000f00
2177#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2_ARB 0x00000a00 2203#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2 0x00000a00
2178#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3_ARB 0x00000b00 2204#define NV10TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3 0x00000b00
2179#define NV10TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT (1 << 12) 2205#define NV10TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT (1 << 12)
2180#define NV10TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT (1 << 13) 2206#define NV10TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT (1 << 13)
2181#define NV10TCL_RC_OUT_ALPHA_MUX_SUM (1 << 14) 2207#define NV10TCL_RC_OUT_ALPHA_MUX_SUM (1 << 14)
2182#define NV10TCL_RC_OUT_ALPHA_BIAS (1 << 15) 2208#define NV10TCL_RC_OUT_ALPHA_BIAS (1 << 15)
2183#define NV10TCL_RC_OUT_ALPHA_BIAS_NONE 0x00000000 2209#define NV10TCL_RC_OUT_ALPHA_BIAS_NONE 0x00000000
2184#define NV10TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x00008000 2210#define NV10TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
2185#define NV10TCL_RC_OUT_ALPHA_SCALE_SHIFT 17 2211#define NV10TCL_RC_OUT_ALPHA_SCALE_SHIFT 17
2186#define NV10TCL_RC_OUT_ALPHA_SCALE_MASK 0x00000000 2212#define NV10TCL_RC_OUT_ALPHA_SCALE_MASK 0x00000000
2187#define NV10TCL_RC_OUT_ALPHA_SCALE_NONE 0x00000000 2213#define NV10TCL_RC_OUT_ALPHA_SCALE_NONE 0x00000000
2188#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO_NV 0x00020000 2214#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO 0x00020000
2189#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR_NV 0x00040000 2215#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR 0x00040000
2190#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF_NV 0x00060000 2216#define NV10TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF 0x00060000
2191#define NV10TCL_RC_OUT_RGB(x) (0x00000280+((x)*4)) 2217#define NV10TCL_RC_OUT_RGB(x) (0x00000280+((x)*4))
2192#define NV10TCL_RC_OUT_RGB__SIZE 0x00000002 2218#define NV10TCL_RC_OUT_RGB__SIZE 0x00000002
2193#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT 0 2219#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT 0
2194#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_MASK 0x0000000f 2220#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_MASK 0x0000000f
2195#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000 2221#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000
2196#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0_NV 0x00000001 2222#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
2197#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1_NV 0x00000002 2223#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
2198#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003 2224#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003
2199#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR_NV 0x00000004 2225#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR 0x00000004
2200#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR_NV 0x00000005 2226#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR 0x00000005
2201#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0_ARB 0x00000008 2227#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0 0x00000008
2202#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1_ARB 0x00000009 2228#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1 0x00000009
2203#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_NV 0x0000000c 2229#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0 0x0000000c
2204#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1_NV 0x0000000d 2230#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1 0x0000000d
2205#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 2231#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2206#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F_NV 0x0000000f 2232#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F 0x0000000f
2207#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE2_ARB 0x0000000a 2233#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE2 0x0000000a
2208#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE3_ARB 0x0000000b 2234#define NV10TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE3 0x0000000b
2209#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT 4 2235#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT 4
2210#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_MASK 0x000000f0 2236#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_MASK 0x000000f0
2211#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000 2237#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000
2212#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0_NV 0x00000010 2238#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
2213#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1_NV 0x00000020 2239#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
2214#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030 2240#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030
2215#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR_NV 0x00000040 2241#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR 0x00000040
2216#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR_NV 0x00000050 2242#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR 0x00000050
2217#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0_ARB 0x00000080 2243#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0 0x00000080
2218#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1_ARB 0x00000090 2244#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1 0x00000090
2219#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_NV 0x000000c0 2245#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0 0x000000c0
2220#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1_NV 0x000000d0 2246#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1 0x000000d0
2221#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000000e0 2247#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
2222#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F_NV 0x000000f0 2248#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F 0x000000f0
2223#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE2_ARB 0x000000a0 2249#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE2 0x000000a0
2224#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE3_ARB 0x000000b0 2250#define NV10TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE3 0x000000b0
2225#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT 8 2251#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT 8
2226#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_MASK 0x00000f00 2252#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_MASK 0x00000f00
2227#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000 2253#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000
2228#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0_NV 0x00000100 2254#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
2229#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1_NV 0x00000200 2255#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
2230#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300 2256#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300
2231#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR_NV 0x00000400 2257#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
2232#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR_NV 0x00000500 2258#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
2233#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0_ARB 0x00000800 2259#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0 0x00000800
2234#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1_ARB 0x00000900 2260#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1 0x00000900
2235#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_NV 0x00000c00 2261#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0 0x00000c00
2236#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1_NV 0x00000d00 2262#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1 0x00000d00
2237#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 2263#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2238#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F_NV 0x00000f00 2264#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F 0x00000f00
2239#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2_ARB 0x00000a00 2265#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2 0x00000a00
2240#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3_ARB 0x00000b00 2266#define NV10TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3 0x00000b00
2241#define NV10TCL_RC_OUT_RGB_CD_DOT_PRODUCT (1 << 12) 2267#define NV10TCL_RC_OUT_RGB_CD_DOT_PRODUCT (1 << 12)
2242#define NV10TCL_RC_OUT_RGB_AB_DOT_PRODUCT (1 << 13) 2268#define NV10TCL_RC_OUT_RGB_AB_DOT_PRODUCT (1 << 13)
2243#define NV10TCL_RC_OUT_RGB_MUX_SUM (1 << 14) 2269#define NV10TCL_RC_OUT_RGB_MUX_SUM (1 << 14)
2244#define NV10TCL_RC_OUT_RGB_BIAS (1 << 15) 2270#define NV10TCL_RC_OUT_RGB_BIAS (1 << 15)
2245#define NV10TCL_RC_OUT_RGB_BIAS_NONE 0x00000000 2271#define NV10TCL_RC_OUT_RGB_BIAS_NONE 0x00000000
2246#define NV10TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x00008000 2272#define NV10TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
2247#define NV10TCL_RC_OUT_RGB_SCALE_SHIFT 17 2273#define NV10TCL_RC_OUT_RGB_SCALE_SHIFT 17
2248#define NV10TCL_RC_OUT_RGB_SCALE_MASK 0x00000000 2274#define NV10TCL_RC_OUT_RGB_SCALE_MASK 0x00000000
2249#define NV10TCL_RC_OUT_RGB_SCALE_NONE 0x00000000 2275#define NV10TCL_RC_OUT_RGB_SCALE_NONE 0x00000000
2250#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO_NV 0x00020000 2276#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO 0x00020000
2251#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR_NV 0x00040000 2277#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR 0x00040000
2252#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF_NV 0x00060000 2278#define NV10TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF 0x00060000
2253#define NV10TCL_RC_OUT_RGB_OPERATION_SHIFT 27 2279#define NV10TCL_RC_OUT_RGB_OPERATION_SHIFT 27
2254#define NV10TCL_RC_OUT_RGB_OPERATION_MASK 0x38000000 2280#define NV10TCL_RC_OUT_RGB_OPERATION_MASK 0x38000000
2255#define NV10TCL_RC_FINAL0 0x00000288 2281#define NV10TCL_RC_FINAL0 0x00000288
2256#define NV10TCL_RC_FINAL0_D_INPUT_SHIFT 0 2282#define NV10TCL_RC_FINAL0_D_INPUT_SHIFT 0
2257#define NV10TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f 2283#define NV10TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f
2258#define NV10TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000 2284#define NV10TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000
2259#define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 2285#define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0 0x00000001
2260#define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 2286#define NV10TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1 0x00000002
2261#define NV10TCL_RC_FINAL0_D_INPUT_FOG 0x00000003 2287#define NV10TCL_RC_FINAL0_D_INPUT_FOG 0x00000003
2262#define NV10TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR_NV 0x00000004 2288#define NV10TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR 0x00000004
2263#define NV10TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR_NV 0x00000005 2289#define NV10TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR 0x00000005
2264#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE0_ARB 0x00000008 2290#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE0 0x00000008
2265#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE1_ARB 0x00000009 2291#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE1 0x00000009
2266#define NV10TCL_RC_FINAL0_D_INPUT_SPARE0_NV 0x0000000c 2292#define NV10TCL_RC_FINAL0_D_INPUT_SPARE0 0x0000000c
2267#define NV10TCL_RC_FINAL0_D_INPUT_SPARE1_NV 0x0000000d 2293#define NV10TCL_RC_FINAL0_D_INPUT_SPARE1 0x0000000d
2268#define NV10TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 2294#define NV10TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
2269#define NV10TCL_RC_FINAL0_D_INPUT_E_TIMES_F_NV 0x0000000f 2295#define NV10TCL_RC_FINAL0_D_INPUT_E_TIMES_F 0x0000000f
2270#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE2_ARB 0x0000000a 2296#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE2 0x0000000a
2271#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE3_ARB 0x0000000b 2297#define NV10TCL_RC_FINAL0_D_INPUT_TEXTURE3 0x0000000b
2272#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4) 2298#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4)
2273#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000 2299#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000
2274#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010 2300#define NV10TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010
2275#define NV10TCL_RC_FINAL0_D_MAPPING_SHIFT 5 2301#define NV10TCL_RC_FINAL0_D_MAPPING_SHIFT 5
2276#define NV10TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0 2302#define NV10TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0
2277#define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2303#define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
2278#define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 2304#define NV10TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT 0x00000020
2279#define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 2305#define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL 0x00000040
2280#define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 2306#define NV10TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE 0x00000060
2281#define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 2307#define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
2282#define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 2308#define NV10TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
2283#define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 2309#define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY 0x000000c0
2284#define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 2310#define NV10TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE 0x000000e0
2285#define NV10TCL_RC_FINAL0_C_INPUT_SHIFT 8 2311#define NV10TCL_RC_FINAL0_C_INPUT_SHIFT 8
2286#define NV10TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00 2312#define NV10TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00
2287#define NV10TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000 2313#define NV10TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000
2288#define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 2314#define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0 0x00000100
2289#define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 2315#define NV10TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1 0x00000200
2290#define NV10TCL_RC_FINAL0_C_INPUT_FOG 0x00000300 2316#define NV10TCL_RC_FINAL0_C_INPUT_FOG 0x00000300
2291#define NV10TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR_NV 0x00000400 2317#define NV10TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR 0x00000400
2292#define NV10TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR_NV 0x00000500 2318#define NV10TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR 0x00000500
2293#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE0_ARB 0x00000800 2319#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE0 0x00000800
2294#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE1_ARB 0x00000900 2320#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE1 0x00000900
2295#define NV10TCL_RC_FINAL0_C_INPUT_SPARE0_NV 0x00000c00 2321#define NV10TCL_RC_FINAL0_C_INPUT_SPARE0 0x00000c00
2296#define NV10TCL_RC_FINAL0_C_INPUT_SPARE1_NV 0x00000d00 2322#define NV10TCL_RC_FINAL0_C_INPUT_SPARE1 0x00000d00
2297#define NV10TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 2323#define NV10TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2298#define NV10TCL_RC_FINAL0_C_INPUT_E_TIMES_F_NV 0x00000f00 2324#define NV10TCL_RC_FINAL0_C_INPUT_E_TIMES_F 0x00000f00
2299#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE2_ARB 0x00000a00 2325#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE2 0x00000a00
2300#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE3_ARB 0x00000b00 2326#define NV10TCL_RC_FINAL0_C_INPUT_TEXTURE3 0x00000b00
2301#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12) 2327#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12)
2302#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000 2328#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000
2303#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000 2329#define NV10TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000
2304#define NV10TCL_RC_FINAL0_C_MAPPING_SHIFT 13 2330#define NV10TCL_RC_FINAL0_C_MAPPING_SHIFT 13
2305#define NV10TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000 2331#define NV10TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000
2306#define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2332#define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
2307#define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 2333#define NV10TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT 0x00002000
2308#define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 2334#define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL 0x00004000
2309#define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 2335#define NV10TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE 0x00006000
2310#define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 2336#define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
2311#define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 2337#define NV10TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2312#define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 2338#define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY 0x0000c000
2313#define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 2339#define NV10TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE 0x0000e000
2314#define NV10TCL_RC_FINAL0_B_INPUT_SHIFT 16 2340#define NV10TCL_RC_FINAL0_B_INPUT_SHIFT 16
2315#define NV10TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000 2341#define NV10TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000
2316#define NV10TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000 2342#define NV10TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000
2317#define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 2343#define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0 0x00010000
2318#define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 2344#define NV10TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1 0x00020000
2319#define NV10TCL_RC_FINAL0_B_INPUT_FOG 0x00030000 2345#define NV10TCL_RC_FINAL0_B_INPUT_FOG 0x00030000
2320#define NV10TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR_NV 0x00040000 2346#define NV10TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR 0x00040000
2321#define NV10TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR_NV 0x00050000 2347#define NV10TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR 0x00050000
2322#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE0_ARB 0x00080000 2348#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE0 0x00080000
2323#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE1_ARB 0x00090000 2349#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE1 0x00090000
2324#define NV10TCL_RC_FINAL0_B_INPUT_SPARE0_NV 0x000c0000 2350#define NV10TCL_RC_FINAL0_B_INPUT_SPARE0 0x000c0000
2325#define NV10TCL_RC_FINAL0_B_INPUT_SPARE1_NV 0x000d0000 2351#define NV10TCL_RC_FINAL0_B_INPUT_SPARE1 0x000d0000
2326#define NV10TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 2352#define NV10TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2327#define NV10TCL_RC_FINAL0_B_INPUT_E_TIMES_F_NV 0x000f0000 2353#define NV10TCL_RC_FINAL0_B_INPUT_E_TIMES_F 0x000f0000
2328#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE2_ARB 0x000a0000 2354#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE2 0x000a0000
2329#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE3_ARB 0x000b0000 2355#define NV10TCL_RC_FINAL0_B_INPUT_TEXTURE3 0x000b0000
2330#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE (1 << 20) 2356#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE (1 << 20)
2331#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000 2357#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000
2332#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000 2358#define NV10TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000
2333#define NV10TCL_RC_FINAL0_B_MAPPING_SHIFT 21 2359#define NV10TCL_RC_FINAL0_B_MAPPING_SHIFT 21
2334#define NV10TCL_RC_FINAL0_B_MAPPING_MASK 0x00e00000 2360#define NV10TCL_RC_FINAL0_B_MAPPING_MASK 0x00e00000
2335#define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2361#define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
2336#define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT_NV 0x00200000 2362#define NV10TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT 0x00200000
2337#define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL_NV 0x00400000 2363#define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL 0x00400000
2338#define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE_NV 0x00600000 2364#define NV10TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE 0x00600000
2339#define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 2365#define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
2340#define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 2366#define NV10TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2341#define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 2367#define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY 0x00c00000
2342#define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE_NV 0x00e00000 2368#define NV10TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE 0x00e00000
2343#define NV10TCL_RC_FINAL0_A_INPUT_SHIFT 24 2369#define NV10TCL_RC_FINAL0_A_INPUT_SHIFT 24
2344#define NV10TCL_RC_FINAL0_A_INPUT_MASK 0x0f000000 2370#define NV10TCL_RC_FINAL0_A_INPUT_MASK 0x0f000000
2345#define NV10TCL_RC_FINAL0_A_INPUT_ZERO 0x00000000 2371#define NV10TCL_RC_FINAL0_A_INPUT_ZERO 0x00000000
2346#define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0_NV 0x01000000 2372#define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0 0x01000000
2347#define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1_NV 0x02000000 2373#define NV10TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1 0x02000000
2348#define NV10TCL_RC_FINAL0_A_INPUT_FOG 0x03000000 2374#define NV10TCL_RC_FINAL0_A_INPUT_FOG 0x03000000
2349#define NV10TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR_NV 0x04000000 2375#define NV10TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR 0x04000000
2350#define NV10TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR_NV 0x05000000 2376#define NV10TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR 0x05000000
2351#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE0_ARB 0x08000000 2377#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE0 0x08000000
2352#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE1_ARB 0x09000000 2378#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE1 0x09000000
2353#define NV10TCL_RC_FINAL0_A_INPUT_SPARE0_NV 0x0c000000 2379#define NV10TCL_RC_FINAL0_A_INPUT_SPARE0 0x0c000000
2354#define NV10TCL_RC_FINAL0_A_INPUT_SPARE1_NV 0x0d000000 2380#define NV10TCL_RC_FINAL0_A_INPUT_SPARE1 0x0d000000
2355#define NV10TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 2381#define NV10TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2356#define NV10TCL_RC_FINAL0_A_INPUT_E_TIMES_F_NV 0x0f000000 2382#define NV10TCL_RC_FINAL0_A_INPUT_E_TIMES_F 0x0f000000
2357#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE2_ARB 0x0a000000 2383#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE2 0x0a000000
2358#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE3_ARB 0x0b000000 2384#define NV10TCL_RC_FINAL0_A_INPUT_TEXTURE3 0x0b000000
2359#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE (1 << 28) 2385#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE (1 << 28)
2360#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000 2386#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000
2361#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000 2387#define NV10TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000
2362#define NV10TCL_RC_FINAL0_A_MAPPING_SHIFT 29 2388#define NV10TCL_RC_FINAL0_A_MAPPING_SHIFT 29
2363#define NV10TCL_RC_FINAL0_A_MAPPING_MASK 0xe0000000 2389#define NV10TCL_RC_FINAL0_A_MAPPING_MASK 0xe0000000
2364#define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2390#define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
2365#define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT_NV 0x20000000 2391#define NV10TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT 0x20000000
2366#define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL_NV 0x40000000 2392#define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL 0x40000000
2367#define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE_NV 0x60000000 2393#define NV10TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE 0x60000000
2368#define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 2394#define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
2369#define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 2395#define NV10TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2370#define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 2396#define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY 0xc0000000
2371#define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE_NV 0xe0000000 2397#define NV10TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE 0xe0000000
2372#define NV10TCL_RC_FINAL1 0x0000028c 2398#define NV10TCL_RC_FINAL1 0x0000028c
2373#define NV10TCL_RC_FINAL1_COLOR_SUM_CLAMP (1 << 7) 2399#define NV10TCL_RC_FINAL1_COLOR_SUM_CLAMP (1 << 7)
2374#define NV10TCL_RC_FINAL1_G_INPUT_SHIFT 8 2400#define NV10TCL_RC_FINAL1_G_INPUT_SHIFT 8
2375#define NV10TCL_RC_FINAL1_G_INPUT_MASK 0x00000f00 2401#define NV10TCL_RC_FINAL1_G_INPUT_MASK 0x00000f00
2376#define NV10TCL_RC_FINAL1_G_INPUT_ZERO 0x00000000 2402#define NV10TCL_RC_FINAL1_G_INPUT_ZERO 0x00000000
2377#define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0_NV 0x00000100 2403#define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0 0x00000100
2378#define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1_NV 0x00000200 2404#define NV10TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1 0x00000200
2379#define NV10TCL_RC_FINAL1_G_INPUT_FOG 0x00000300 2405#define NV10TCL_RC_FINAL1_G_INPUT_FOG 0x00000300
2380#define NV10TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR_NV 0x00000400 2406#define NV10TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR 0x00000400
2381#define NV10TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR_NV 0x00000500 2407#define NV10TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR 0x00000500
2382#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE0_ARB 0x00000800 2408#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE0 0x00000800
2383#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE1_ARB 0x00000900 2409#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE1 0x00000900
2384#define NV10TCL_RC_FINAL1_G_INPUT_SPARE0_NV 0x00000c00 2410#define NV10TCL_RC_FINAL1_G_INPUT_SPARE0 0x00000c00
2385#define NV10TCL_RC_FINAL1_G_INPUT_SPARE1_NV 0x00000d00 2411#define NV10TCL_RC_FINAL1_G_INPUT_SPARE1 0x00000d00
2386#define NV10TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 2412#define NV10TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
2387#define NV10TCL_RC_FINAL1_G_INPUT_E_TIMES_F_NV 0x00000f00 2413#define NV10TCL_RC_FINAL1_G_INPUT_E_TIMES_F 0x00000f00
2388#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE2_ARB 0x00000a00 2414#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE2 0x00000a00
2389#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE3_ARB 0x00000b00 2415#define NV10TCL_RC_FINAL1_G_INPUT_TEXTURE3 0x00000b00
2390#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE (1 << 12) 2416#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE (1 << 12)
2391#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000 2417#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000
2392#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000 2418#define NV10TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000
2393#define NV10TCL_RC_FINAL1_G_MAPPING_SHIFT 13 2419#define NV10TCL_RC_FINAL1_G_MAPPING_SHIFT 13
2394#define NV10TCL_RC_FINAL1_G_MAPPING_MASK 0x0000e000 2420#define NV10TCL_RC_FINAL1_G_MAPPING_MASK 0x0000e000
2395#define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2421#define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY 0x00000000
2396#define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT_NV 0x00002000 2422#define NV10TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT 0x00002000
2397#define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL_NV 0x00004000 2423#define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL 0x00004000
2398#define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE_NV 0x00006000 2424#define NV10TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE 0x00006000
2399#define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 2425#define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL 0x00008000
2400#define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 2426#define NV10TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE 0x0000a000
2401#define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 2427#define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY 0x0000c000
2402#define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE_NV 0x0000e000 2428#define NV10TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE 0x0000e000
2403#define NV10TCL_RC_FINAL1_F_INPUT_SHIFT 16 2429#define NV10TCL_RC_FINAL1_F_INPUT_SHIFT 16
2404#define NV10TCL_RC_FINAL1_F_INPUT_MASK 0x000f0000 2430#define NV10TCL_RC_FINAL1_F_INPUT_MASK 0x000f0000
2405#define NV10TCL_RC_FINAL1_F_INPUT_ZERO 0x00000000 2431#define NV10TCL_RC_FINAL1_F_INPUT_ZERO 0x00000000
2406#define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0_NV 0x00010000 2432#define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0 0x00010000
2407#define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1_NV 0x00020000 2433#define NV10TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1 0x00020000
2408#define NV10TCL_RC_FINAL1_F_INPUT_FOG 0x00030000 2434#define NV10TCL_RC_FINAL1_F_INPUT_FOG 0x00030000
2409#define NV10TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR_NV 0x00040000 2435#define NV10TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR 0x00040000
2410#define NV10TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR_NV 0x00050000 2436#define NV10TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR 0x00050000
2411#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE0_ARB 0x00080000 2437#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE0 0x00080000
2412#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE1_ARB 0x00090000 2438#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE1 0x00090000
2413#define NV10TCL_RC_FINAL1_F_INPUT_SPARE0_NV 0x000c0000 2439#define NV10TCL_RC_FINAL1_F_INPUT_SPARE0 0x000c0000
2414#define NV10TCL_RC_FINAL1_F_INPUT_SPARE1_NV 0x000d0000 2440#define NV10TCL_RC_FINAL1_F_INPUT_SPARE1 0x000d0000
2415#define NV10TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 2441#define NV10TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
2416#define NV10TCL_RC_FINAL1_F_INPUT_E_TIMES_F_NV 0x000f0000 2442#define NV10TCL_RC_FINAL1_F_INPUT_E_TIMES_F 0x000f0000
2417#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE2_ARB 0x000a0000 2443#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE2 0x000a0000
2418#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE3_ARB 0x000b0000 2444#define NV10TCL_RC_FINAL1_F_INPUT_TEXTURE3 0x000b0000
2419#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE (1 << 20) 2445#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE (1 << 20)
2420#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000 2446#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000
2421#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000 2447#define NV10TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000
2422#define NV10TCL_RC_FINAL1_F_MAPPING_SHIFT 21 2448#define NV10TCL_RC_FINAL1_F_MAPPING_SHIFT 21
2423#define NV10TCL_RC_FINAL1_F_MAPPING_MASK 0x00e00000 2449#define NV10TCL_RC_FINAL1_F_MAPPING_MASK 0x00e00000
2424#define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2450#define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY 0x00000000
2425#define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT_NV 0x00200000 2451#define NV10TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT 0x00200000
2426#define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL_NV 0x00400000 2452#define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL 0x00400000
2427#define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE_NV 0x00600000 2453#define NV10TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE 0x00600000
2428#define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 2454#define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL 0x00800000
2429#define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 2455#define NV10TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE 0x00a00000
2430#define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 2456#define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY 0x00c00000
2431#define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE_NV 0x00e00000 2457#define NV10TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE 0x00e00000
2432#define NV10TCL_RC_FINAL1_E_INPUT_SHIFT 24 2458#define NV10TCL_RC_FINAL1_E_INPUT_SHIFT 24
2433#define NV10TCL_RC_FINAL1_E_INPUT_MASK 0x0f000000 2459#define NV10TCL_RC_FINAL1_E_INPUT_MASK 0x0f000000
2434#define NV10TCL_RC_FINAL1_E_INPUT_ZERO 0x00000000 2460#define NV10TCL_RC_FINAL1_E_INPUT_ZERO 0x00000000
2435#define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0_NV 0x01000000 2461#define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0 0x01000000
2436#define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1_NV 0x02000000 2462#define NV10TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1 0x02000000
2437#define NV10TCL_RC_FINAL1_E_INPUT_FOG 0x03000000 2463#define NV10TCL_RC_FINAL1_E_INPUT_FOG 0x03000000
2438#define NV10TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR_NV 0x04000000 2464#define NV10TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR 0x04000000
2439#define NV10TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR_NV 0x05000000 2465#define NV10TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR 0x05000000
2440#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE0_ARB 0x08000000 2466#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE0 0x08000000
2441#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE1_ARB 0x09000000 2467#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE1 0x09000000
2442#define NV10TCL_RC_FINAL1_E_INPUT_SPARE0_NV 0x0c000000 2468#define NV10TCL_RC_FINAL1_E_INPUT_SPARE0 0x0c000000
2443#define NV10TCL_RC_FINAL1_E_INPUT_SPARE1_NV 0x0d000000 2469#define NV10TCL_RC_FINAL1_E_INPUT_SPARE1 0x0d000000
2444#define NV10TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 2470#define NV10TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
2445#define NV10TCL_RC_FINAL1_E_INPUT_E_TIMES_F_NV 0x0f000000 2471#define NV10TCL_RC_FINAL1_E_INPUT_E_TIMES_F 0x0f000000
2446#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE2_ARB 0x0a000000 2472#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE2 0x0a000000
2447#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE3_ARB 0x0b000000 2473#define NV10TCL_RC_FINAL1_E_INPUT_TEXTURE3 0x0b000000
2448#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE (1 << 28) 2474#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE (1 << 28)
2449#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000 2475#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000
2450#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000 2476#define NV10TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000
2451#define NV10TCL_RC_FINAL1_E_MAPPING_SHIFT 29 2477#define NV10TCL_RC_FINAL1_E_MAPPING_SHIFT 29
2452#define NV10TCL_RC_FINAL1_E_MAPPING_MASK 0xe0000000 2478#define NV10TCL_RC_FINAL1_E_MAPPING_MASK 0xe0000000
2453#define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 2479#define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY 0x00000000
2454#define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT_NV 0x20000000 2480#define NV10TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT 0x20000000
2455#define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL_NV 0x40000000 2481#define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL 0x40000000
2456#define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE_NV 0x60000000 2482#define NV10TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE 0x60000000
2457#define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 2483#define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL 0x80000000
2458#define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 2484#define NV10TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE 0xa0000000
2459#define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 2485#define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY 0xc0000000
2460#define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE_NV 0xe0000000 2486#define NV10TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE 0xe0000000
2461#define NV10TCL_LIGHT_MODEL 0x00000294 2487#define NV10TCL_LIGHT_MODEL 0x00000294
2462#define NV10TCL_LIGHT_MODEL_COLOR_CONTROL (1 << 1) 2488#define NV10TCL_LIGHT_MODEL_COLOR_CONTROL (1 << 1)
2463#define NV10TCL_LIGHT_MODEL_LOCAL_VIEWER (1 << 16) 2489#define NV10TCL_LIGHT_MODEL_LOCAL_VIEWER (1 << 16)
@@ -2474,8 +2500,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2474#define NV10TCL_FOG_MODE_LINEAR_2 0x00002601 2500#define NV10TCL_FOG_MODE_LINEAR_2 0x00002601
2475#define NV10TCL_FOG_COORD_DIST 0x000002a0 2501#define NV10TCL_FOG_COORD_DIST 0x000002a0
2476#define NV10TCL_FOG_COORD_DIST_COORD_FALSE 0x00000000 2502#define NV10TCL_FOG_COORD_DIST_COORD_FALSE 0x00000000
2477#define NV10TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_RADIAL_NV 0x00000001 2503#define NV10TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_RADIAL 0x00000001
2478#define NV10TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_PLANE_ABSOLUTE_NV 0x00000002 2504#define NV10TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_PLANE_ABSOLUTE 0x00000002
2479#define NV10TCL_FOG_COORD_DIST_COORD_FOG 0x00000003 2505#define NV10TCL_FOG_COORD_DIST_COORD_FOG 0x00000003
2480#define NV10TCL_FOG_ENABLE 0x000002a4 2506#define NV10TCL_FOG_ENABLE 0x000002a4
2481#define NV10TCL_FOG_COLOR 0x000002a8 2507#define NV10TCL_FOG_COLOR 0x000002a8
@@ -2895,13 +2921,15 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2895#define NV10TCL_VTXFMT__SIZE 0x00000008 2921#define NV10TCL_VTXFMT__SIZE 0x00000008
2896#define NV10TCL_VTXFMT_TYPE_SHIFT 0 2922#define NV10TCL_VTXFMT_TYPE_SHIFT 0
2897#define NV10TCL_VTXFMT_TYPE_MASK 0x0000000f 2923#define NV10TCL_VTXFMT_TYPE_MASK 0x0000000f
2898#define NV10TCL_VTXFMT_TYPE_UBYTE 0x00000000 2924#define NV10TCL_VTXFMT_TYPE_BYTE_BGRA 0x00000000
2899#define NV10TCL_VTXFMT_TYPE_USHORT 0x00000001 2925#define NV10TCL_VTXFMT_TYPE_SHORT 0x00000001
2900#define NV10TCL_VTXFMT_TYPE_FLOAT 0x00000002 2926#define NV10TCL_VTXFMT_TYPE_FLOAT 0x00000002
2927#define NV10TCL_VTXFMT_TYPE_BYTE_RGBA 0x00000004
2901#define NV10TCL_VTXFMT_FIELDS_SHIFT 4 2928#define NV10TCL_VTXFMT_FIELDS_SHIFT 4
2902#define NV10TCL_VTXFMT_FIELDS_MASK 0x000000f0 2929#define NV10TCL_VTXFMT_FIELDS_MASK 0x000000f0
2903#define NV10TCL_VTXFMT_STRIDE_SHIFT 8 2930#define NV10TCL_VTXFMT_STRIDE_SHIFT 8
2904#define NV10TCL_VTXFMT_STRIDE_MASK 0x0000ff00 2931#define NV10TCL_VTXFMT_STRIDE_MASK 0x0000ff00
2932#define NV10TCL_VTXFMT_POS_HOMOGENEOUS (1 << 24)
2905#define NV10TCL_VERTEX_ARRAY_OFFSET_POS 0x00000d00 2933#define NV10TCL_VERTEX_ARRAY_OFFSET_POS 0x00000d00
2906#define NV10TCL_VERTEX_ARRAY_FORMAT_POS 0x00000d04 2934#define NV10TCL_VERTEX_ARRAY_FORMAT_POS 0x00000d04
2907#define NV10TCL_VERTEX_ARRAY_FORMAT_POS_TYPE_SHIFT 0 2935#define NV10TCL_VERTEX_ARRAY_FORMAT_POS_TYPE_SHIFT 0
@@ -3301,11 +3329,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3301 3329
3302 3330
3303 3331
3304#define NV10_DX5_TEXTURED_TRIANGLE 0x00000094 3332#define NV10_TEXTURED_TRIANGLE 0x00000094
3305 3333
3306 3334
3307 3335
3308#define NV10_DX6_MULTITEX_TRIANGLE 0x00000095 3336#define NV10_MULTITEX_TRIANGLE 0x00000095
3309 3337
3310 3338
3311 3339
@@ -3380,325 +3408,325 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3380#define NV20TCL_RC_IN_ALPHA_D_INPUT_SHIFT 0 3408#define NV20TCL_RC_IN_ALPHA_D_INPUT_SHIFT 0
3381#define NV20TCL_RC_IN_ALPHA_D_INPUT_MASK 0x0000000f 3409#define NV20TCL_RC_IN_ALPHA_D_INPUT_MASK 0x0000000f
3382#define NV20TCL_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000 3410#define NV20TCL_RC_IN_ALPHA_D_INPUT_ZERO 0x00000000
3383#define NV20TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 3411#define NV20TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR0 0x00000001
3384#define NV20TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 3412#define NV20TCL_RC_IN_ALPHA_D_INPUT_CONSTANT_COLOR1 0x00000002
3385#define NV20TCL_RC_IN_ALPHA_D_INPUT_FOG 0x00000003 3413#define NV20TCL_RC_IN_ALPHA_D_INPUT_FOG 0x00000003
3386#define NV20TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR_NV 0x00000004 3414#define NV20TCL_RC_IN_ALPHA_D_INPUT_PRIMARY_COLOR 0x00000004
3387#define NV20TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR_NV 0x00000005 3415#define NV20TCL_RC_IN_ALPHA_D_INPUT_SECONDARY_COLOR 0x00000005
3388#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0_ARB 0x00000008 3416#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE0 0x00000008
3389#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1_ARB 0x00000009 3417#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE1 0x00000009
3390#define NV20TCL_RC_IN_ALPHA_D_INPUT_SPARE0_NV 0x0000000c 3418#define NV20TCL_RC_IN_ALPHA_D_INPUT_SPARE0 0x0000000c
3391#define NV20TCL_RC_IN_ALPHA_D_INPUT_SPARE1_NV 0x0000000d 3419#define NV20TCL_RC_IN_ALPHA_D_INPUT_SPARE1 0x0000000d
3392#define NV20TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 3420#define NV20TCL_RC_IN_ALPHA_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
3393#define NV20TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F_NV 0x0000000f 3421#define NV20TCL_RC_IN_ALPHA_D_INPUT_E_TIMES_F 0x0000000f
3394#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2_ARB 0x0000000a 3422#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE2 0x0000000a
3395#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3_ARB 0x0000000b 3423#define NV20TCL_RC_IN_ALPHA_D_INPUT_TEXTURE3 0x0000000b
3396#define NV20TCL_RC_IN_ALPHA_D_COMPONENT_USAGE (1 << 4) 3424#define NV20TCL_RC_IN_ALPHA_D_COMPONENT_USAGE (1 << 4)
3397#define NV20TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000 3425#define NV20TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_BLUE 0x00000000
3398#define NV20TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010 3426#define NV20TCL_RC_IN_ALPHA_D_COMPONENT_USAGE_ALPHA 0x00000010
3399#define NV20TCL_RC_IN_ALPHA_D_MAPPING_SHIFT 5 3427#define NV20TCL_RC_IN_ALPHA_D_MAPPING_SHIFT 5
3400#define NV20TCL_RC_IN_ALPHA_D_MAPPING_MASK 0x000000e0 3428#define NV20TCL_RC_IN_ALPHA_D_MAPPING_MASK 0x000000e0
3401#define NV20TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3429#define NV20TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
3402#define NV20TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 3430#define NV20TCL_RC_IN_ALPHA_D_MAPPING_UNSIGNED_INVERT 0x00000020
3403#define NV20TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 3431#define NV20TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NORMAL 0x00000040
3404#define NV20TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 3432#define NV20TCL_RC_IN_ALPHA_D_MAPPING_EXPAND_NEGATE 0x00000060
3405#define NV20TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 3433#define NV20TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
3406#define NV20TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 3434#define NV20TCL_RC_IN_ALPHA_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
3407#define NV20TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 3435#define NV20TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_IDENTITY 0x000000c0
3408#define NV20TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 3436#define NV20TCL_RC_IN_ALPHA_D_MAPPING_SIGNED_NEGATE 0x000000e0
3409#define NV20TCL_RC_IN_ALPHA_C_INPUT_SHIFT 8 3437#define NV20TCL_RC_IN_ALPHA_C_INPUT_SHIFT 8
3410#define NV20TCL_RC_IN_ALPHA_C_INPUT_MASK 0x00000f00 3438#define NV20TCL_RC_IN_ALPHA_C_INPUT_MASK 0x00000f00
3411#define NV20TCL_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000 3439#define NV20TCL_RC_IN_ALPHA_C_INPUT_ZERO 0x00000000
3412#define NV20TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 3440#define NV20TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR0 0x00000100
3413#define NV20TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 3441#define NV20TCL_RC_IN_ALPHA_C_INPUT_CONSTANT_COLOR1 0x00000200
3414#define NV20TCL_RC_IN_ALPHA_C_INPUT_FOG 0x00000300 3442#define NV20TCL_RC_IN_ALPHA_C_INPUT_FOG 0x00000300
3415#define NV20TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR_NV 0x00000400 3443#define NV20TCL_RC_IN_ALPHA_C_INPUT_PRIMARY_COLOR 0x00000400
3416#define NV20TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR_NV 0x00000500 3444#define NV20TCL_RC_IN_ALPHA_C_INPUT_SECONDARY_COLOR 0x00000500
3417#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0_ARB 0x00000800 3445#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE0 0x00000800
3418#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1_ARB 0x00000900 3446#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE1 0x00000900
3419#define NV20TCL_RC_IN_ALPHA_C_INPUT_SPARE0_NV 0x00000c00 3447#define NV20TCL_RC_IN_ALPHA_C_INPUT_SPARE0 0x00000c00
3420#define NV20TCL_RC_IN_ALPHA_C_INPUT_SPARE1_NV 0x00000d00 3448#define NV20TCL_RC_IN_ALPHA_C_INPUT_SPARE1 0x00000d00
3421#define NV20TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 3449#define NV20TCL_RC_IN_ALPHA_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
3422#define NV20TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F_NV 0x00000f00 3450#define NV20TCL_RC_IN_ALPHA_C_INPUT_E_TIMES_F 0x00000f00
3423#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2_ARB 0x00000a00 3451#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE2 0x00000a00
3424#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3_ARB 0x00000b00 3452#define NV20TCL_RC_IN_ALPHA_C_INPUT_TEXTURE3 0x00000b00
3425#define NV20TCL_RC_IN_ALPHA_C_COMPONENT_USAGE (1 << 12) 3453#define NV20TCL_RC_IN_ALPHA_C_COMPONENT_USAGE (1 << 12)
3426#define NV20TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000 3454#define NV20TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_BLUE 0x00000000
3427#define NV20TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000 3455#define NV20TCL_RC_IN_ALPHA_C_COMPONENT_USAGE_ALPHA 0x00001000
3428#define NV20TCL_RC_IN_ALPHA_C_MAPPING_SHIFT 13 3456#define NV20TCL_RC_IN_ALPHA_C_MAPPING_SHIFT 13
3429#define NV20TCL_RC_IN_ALPHA_C_MAPPING_MASK 0x0000e000 3457#define NV20TCL_RC_IN_ALPHA_C_MAPPING_MASK 0x0000e000
3430#define NV20TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3458#define NV20TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
3431#define NV20TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 3459#define NV20TCL_RC_IN_ALPHA_C_MAPPING_UNSIGNED_INVERT 0x00002000
3432#define NV20TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 3460#define NV20TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NORMAL 0x00004000
3433#define NV20TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 3461#define NV20TCL_RC_IN_ALPHA_C_MAPPING_EXPAND_NEGATE 0x00006000
3434#define NV20TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 3462#define NV20TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
3435#define NV20TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 3463#define NV20TCL_RC_IN_ALPHA_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
3436#define NV20TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 3464#define NV20TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_IDENTITY 0x0000c000
3437#define NV20TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 3465#define NV20TCL_RC_IN_ALPHA_C_MAPPING_SIGNED_NEGATE 0x0000e000
3438#define NV20TCL_RC_IN_ALPHA_B_INPUT_SHIFT 16 3466#define NV20TCL_RC_IN_ALPHA_B_INPUT_SHIFT 16
3439#define NV20TCL_RC_IN_ALPHA_B_INPUT_MASK 0x000f0000 3467#define NV20TCL_RC_IN_ALPHA_B_INPUT_MASK 0x000f0000
3440#define NV20TCL_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000 3468#define NV20TCL_RC_IN_ALPHA_B_INPUT_ZERO 0x00000000
3441#define NV20TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 3469#define NV20TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR0 0x00010000
3442#define NV20TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 3470#define NV20TCL_RC_IN_ALPHA_B_INPUT_CONSTANT_COLOR1 0x00020000
3443#define NV20TCL_RC_IN_ALPHA_B_INPUT_FOG 0x00030000 3471#define NV20TCL_RC_IN_ALPHA_B_INPUT_FOG 0x00030000
3444#define NV20TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR_NV 0x00040000 3472#define NV20TCL_RC_IN_ALPHA_B_INPUT_PRIMARY_COLOR 0x00040000
3445#define NV20TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR_NV 0x00050000 3473#define NV20TCL_RC_IN_ALPHA_B_INPUT_SECONDARY_COLOR 0x00050000
3446#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0_ARB 0x00080000 3474#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE0 0x00080000
3447#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1_ARB 0x00090000 3475#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE1 0x00090000
3448#define NV20TCL_RC_IN_ALPHA_B_INPUT_SPARE0_NV 0x000c0000 3476#define NV20TCL_RC_IN_ALPHA_B_INPUT_SPARE0 0x000c0000
3449#define NV20TCL_RC_IN_ALPHA_B_INPUT_SPARE1_NV 0x000d0000 3477#define NV20TCL_RC_IN_ALPHA_B_INPUT_SPARE1 0x000d0000
3450#define NV20TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 3478#define NV20TCL_RC_IN_ALPHA_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
3451#define NV20TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F_NV 0x000f0000 3479#define NV20TCL_RC_IN_ALPHA_B_INPUT_E_TIMES_F 0x000f0000
3452#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2_ARB 0x000a0000 3480#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE2 0x000a0000
3453#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3_ARB 0x000b0000 3481#define NV20TCL_RC_IN_ALPHA_B_INPUT_TEXTURE3 0x000b0000
3454#define NV20TCL_RC_IN_ALPHA_B_COMPONENT_USAGE (1 << 20) 3482#define NV20TCL_RC_IN_ALPHA_B_COMPONENT_USAGE (1 << 20)
3455#define NV20TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000 3483#define NV20TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_BLUE 0x00000000
3456#define NV20TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000 3484#define NV20TCL_RC_IN_ALPHA_B_COMPONENT_USAGE_ALPHA 0x00100000
3457#define NV20TCL_RC_IN_ALPHA_B_MAPPING_SHIFT 21 3485#define NV20TCL_RC_IN_ALPHA_B_MAPPING_SHIFT 21
3458#define NV20TCL_RC_IN_ALPHA_B_MAPPING_MASK 0x00e00000 3486#define NV20TCL_RC_IN_ALPHA_B_MAPPING_MASK 0x00e00000
3459#define NV20TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3487#define NV20TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
3460#define NV20TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT_NV 0x00200000 3488#define NV20TCL_RC_IN_ALPHA_B_MAPPING_UNSIGNED_INVERT 0x00200000
3461#define NV20TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL_NV 0x00400000 3489#define NV20TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NORMAL 0x00400000
3462#define NV20TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE_NV 0x00600000 3490#define NV20TCL_RC_IN_ALPHA_B_MAPPING_EXPAND_NEGATE 0x00600000
3463#define NV20TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 3491#define NV20TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
3464#define NV20TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 3492#define NV20TCL_RC_IN_ALPHA_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
3465#define NV20TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 3493#define NV20TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_IDENTITY 0x00c00000
3466#define NV20TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE_NV 0x00e00000 3494#define NV20TCL_RC_IN_ALPHA_B_MAPPING_SIGNED_NEGATE 0x00e00000
3467#define NV20TCL_RC_IN_ALPHA_A_INPUT_SHIFT 24 3495#define NV20TCL_RC_IN_ALPHA_A_INPUT_SHIFT 24
3468#define NV20TCL_RC_IN_ALPHA_A_INPUT_MASK 0x0f000000 3496#define NV20TCL_RC_IN_ALPHA_A_INPUT_MASK 0x0f000000
3469#define NV20TCL_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000 3497#define NV20TCL_RC_IN_ALPHA_A_INPUT_ZERO 0x00000000
3470#define NV20TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0_NV 0x01000000 3498#define NV20TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR0 0x01000000
3471#define NV20TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1_NV 0x02000000 3499#define NV20TCL_RC_IN_ALPHA_A_INPUT_CONSTANT_COLOR1 0x02000000
3472#define NV20TCL_RC_IN_ALPHA_A_INPUT_FOG 0x03000000 3500#define NV20TCL_RC_IN_ALPHA_A_INPUT_FOG 0x03000000
3473#define NV20TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR_NV 0x04000000 3501#define NV20TCL_RC_IN_ALPHA_A_INPUT_PRIMARY_COLOR 0x04000000
3474#define NV20TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR_NV 0x05000000 3502#define NV20TCL_RC_IN_ALPHA_A_INPUT_SECONDARY_COLOR 0x05000000
3475#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0_ARB 0x08000000 3503#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE0 0x08000000
3476#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1_ARB 0x09000000 3504#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE1 0x09000000
3477#define NV20TCL_RC_IN_ALPHA_A_INPUT_SPARE0_NV 0x0c000000 3505#define NV20TCL_RC_IN_ALPHA_A_INPUT_SPARE0 0x0c000000
3478#define NV20TCL_RC_IN_ALPHA_A_INPUT_SPARE1_NV 0x0d000000 3506#define NV20TCL_RC_IN_ALPHA_A_INPUT_SPARE1 0x0d000000
3479#define NV20TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 3507#define NV20TCL_RC_IN_ALPHA_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
3480#define NV20TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F_NV 0x0f000000 3508#define NV20TCL_RC_IN_ALPHA_A_INPUT_E_TIMES_F 0x0f000000
3481#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2_ARB 0x0a000000 3509#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE2 0x0a000000
3482#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3_ARB 0x0b000000 3510#define NV20TCL_RC_IN_ALPHA_A_INPUT_TEXTURE3 0x0b000000
3483#define NV20TCL_RC_IN_ALPHA_A_COMPONENT_USAGE (1 << 28) 3511#define NV20TCL_RC_IN_ALPHA_A_COMPONENT_USAGE (1 << 28)
3484#define NV20TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000 3512#define NV20TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_BLUE 0x00000000
3485#define NV20TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000 3513#define NV20TCL_RC_IN_ALPHA_A_COMPONENT_USAGE_ALPHA 0x10000000
3486#define NV20TCL_RC_IN_ALPHA_A_MAPPING_SHIFT 29 3514#define NV20TCL_RC_IN_ALPHA_A_MAPPING_SHIFT 29
3487#define NV20TCL_RC_IN_ALPHA_A_MAPPING_MASK 0xe0000000 3515#define NV20TCL_RC_IN_ALPHA_A_MAPPING_MASK 0xe0000000
3488#define NV20TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3516#define NV20TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
3489#define NV20TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT_NV 0x20000000 3517#define NV20TCL_RC_IN_ALPHA_A_MAPPING_UNSIGNED_INVERT 0x20000000
3490#define NV20TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL_NV 0x40000000 3518#define NV20TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NORMAL 0x40000000
3491#define NV20TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE_NV 0x60000000 3519#define NV20TCL_RC_IN_ALPHA_A_MAPPING_EXPAND_NEGATE 0x60000000
3492#define NV20TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 3520#define NV20TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
3493#define NV20TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 3521#define NV20TCL_RC_IN_ALPHA_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
3494#define NV20TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 3522#define NV20TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_IDENTITY 0xc0000000
3495#define NV20TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE_NV 0xe0000000 3523#define NV20TCL_RC_IN_ALPHA_A_MAPPING_SIGNED_NEGATE 0xe0000000
3496#define NV20TCL_RC_FINAL0 0x00000288 3524#define NV20TCL_RC_FINAL0 0x00000288
3497#define NV20TCL_RC_FINAL0_D_INPUT_SHIFT 0 3525#define NV20TCL_RC_FINAL0_D_INPUT_SHIFT 0
3498#define NV20TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f 3526#define NV20TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f
3499#define NV20TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000 3527#define NV20TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000
3500#define NV20TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 3528#define NV20TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0 0x00000001
3501#define NV20TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 3529#define NV20TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1 0x00000002
3502#define NV20TCL_RC_FINAL0_D_INPUT_FOG 0x00000003 3530#define NV20TCL_RC_FINAL0_D_INPUT_FOG 0x00000003
3503#define NV20TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR_NV 0x00000004 3531#define NV20TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR 0x00000004
3504#define NV20TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR_NV 0x00000005 3532#define NV20TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR 0x00000005
3505#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE0_ARB 0x00000008 3533#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE0 0x00000008
3506#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE1_ARB 0x00000009 3534#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE1 0x00000009
3507#define NV20TCL_RC_FINAL0_D_INPUT_SPARE0_NV 0x0000000c 3535#define NV20TCL_RC_FINAL0_D_INPUT_SPARE0 0x0000000c
3508#define NV20TCL_RC_FINAL0_D_INPUT_SPARE1_NV 0x0000000d 3536#define NV20TCL_RC_FINAL0_D_INPUT_SPARE1 0x0000000d
3509#define NV20TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 3537#define NV20TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
3510#define NV20TCL_RC_FINAL0_D_INPUT_E_TIMES_F_NV 0x0000000f 3538#define NV20TCL_RC_FINAL0_D_INPUT_E_TIMES_F 0x0000000f
3511#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE2_ARB 0x0000000a 3539#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE2 0x0000000a
3512#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE3_ARB 0x0000000b 3540#define NV20TCL_RC_FINAL0_D_INPUT_TEXTURE3 0x0000000b
3513#define NV20TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4) 3541#define NV20TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4)
3514#define NV20TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000 3542#define NV20TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000
3515#define NV20TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010 3543#define NV20TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010
3516#define NV20TCL_RC_FINAL0_D_MAPPING_SHIFT 5 3544#define NV20TCL_RC_FINAL0_D_MAPPING_SHIFT 5
3517#define NV20TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0 3545#define NV20TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0
3518#define NV20TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3546#define NV20TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
3519#define NV20TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 3547#define NV20TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT 0x00000020
3520#define NV20TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 3548#define NV20TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL 0x00000040
3521#define NV20TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 3549#define NV20TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE 0x00000060
3522#define NV20TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 3550#define NV20TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
3523#define NV20TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 3551#define NV20TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
3524#define NV20TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 3552#define NV20TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY 0x000000c0
3525#define NV20TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 3553#define NV20TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE 0x000000e0
3526#define NV20TCL_RC_FINAL0_C_INPUT_SHIFT 8 3554#define NV20TCL_RC_FINAL0_C_INPUT_SHIFT 8
3527#define NV20TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00 3555#define NV20TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00
3528#define NV20TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000 3556#define NV20TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000
3529#define NV20TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 3557#define NV20TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0 0x00000100
3530#define NV20TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 3558#define NV20TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1 0x00000200
3531#define NV20TCL_RC_FINAL0_C_INPUT_FOG 0x00000300 3559#define NV20TCL_RC_FINAL0_C_INPUT_FOG 0x00000300
3532#define NV20TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR_NV 0x00000400 3560#define NV20TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR 0x00000400
3533#define NV20TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR_NV 0x00000500 3561#define NV20TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR 0x00000500
3534#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE0_ARB 0x00000800 3562#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE0 0x00000800
3535#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE1_ARB 0x00000900 3563#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE1 0x00000900
3536#define NV20TCL_RC_FINAL0_C_INPUT_SPARE0_NV 0x00000c00 3564#define NV20TCL_RC_FINAL0_C_INPUT_SPARE0 0x00000c00
3537#define NV20TCL_RC_FINAL0_C_INPUT_SPARE1_NV 0x00000d00 3565#define NV20TCL_RC_FINAL0_C_INPUT_SPARE1 0x00000d00
3538#define NV20TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 3566#define NV20TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
3539#define NV20TCL_RC_FINAL0_C_INPUT_E_TIMES_F_NV 0x00000f00 3567#define NV20TCL_RC_FINAL0_C_INPUT_E_TIMES_F 0x00000f00
3540#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE2_ARB 0x00000a00 3568#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE2 0x00000a00
3541#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE3_ARB 0x00000b00 3569#define NV20TCL_RC_FINAL0_C_INPUT_TEXTURE3 0x00000b00
3542#define NV20TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12) 3570#define NV20TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12)
3543#define NV20TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000 3571#define NV20TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000
3544#define NV20TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000 3572#define NV20TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000
3545#define NV20TCL_RC_FINAL0_C_MAPPING_SHIFT 13 3573#define NV20TCL_RC_FINAL0_C_MAPPING_SHIFT 13
3546#define NV20TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000 3574#define NV20TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000
3547#define NV20TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3575#define NV20TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
3548#define NV20TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 3576#define NV20TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT 0x00002000
3549#define NV20TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 3577#define NV20TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL 0x00004000
3550#define NV20TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 3578#define NV20TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE 0x00006000
3551#define NV20TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 3579#define NV20TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
3552#define NV20TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 3580#define NV20TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
3553#define NV20TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 3581#define NV20TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY 0x0000c000
3554#define NV20TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 3582#define NV20TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE 0x0000e000
3555#define NV20TCL_RC_FINAL0_B_INPUT_SHIFT 16 3583#define NV20TCL_RC_FINAL0_B_INPUT_SHIFT 16
3556#define NV20TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000 3584#define NV20TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000
3557#define NV20TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000 3585#define NV20TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000
3558#define NV20TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 3586#define NV20TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0 0x00010000
3559#define NV20TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 3587#define NV20TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1 0x00020000
3560#define NV20TCL_RC_FINAL0_B_INPUT_FOG 0x00030000 3588#define NV20TCL_RC_FINAL0_B_INPUT_FOG 0x00030000
3561#define NV20TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR_NV 0x00040000 3589#define NV20TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR 0x00040000
3562#define NV20TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR_NV 0x00050000 3590#define NV20TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR 0x00050000
3563#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE0_ARB 0x00080000 3591#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE0 0x00080000
3564#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE1_ARB 0x00090000 3592#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE1 0x00090000
3565#define NV20TCL_RC_FINAL0_B_INPUT_SPARE0_NV 0x000c0000 3593#define NV20TCL_RC_FINAL0_B_INPUT_SPARE0 0x000c0000
3566#define NV20TCL_RC_FINAL0_B_INPUT_SPARE1_NV 0x000d0000 3594#define NV20TCL_RC_FINAL0_B_INPUT_SPARE1 0x000d0000
3567#define NV20TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 3595#define NV20TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
3568#define NV20TCL_RC_FINAL0_B_INPUT_E_TIMES_F_NV 0x000f0000 3596#define NV20TCL_RC_FINAL0_B_INPUT_E_TIMES_F 0x000f0000
3569#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE2_ARB 0x000a0000 3597#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE2 0x000a0000
3570#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE3_ARB 0x000b0000 3598#define NV20TCL_RC_FINAL0_B_INPUT_TEXTURE3 0x000b0000
3571#define NV20TCL_RC_FINAL0_B_COMPONENT_USAGE (1 << 20) 3599#define NV20TCL_RC_FINAL0_B_COMPONENT_USAGE (1 << 20)
3572#define NV20TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000 3600#define NV20TCL_RC_FINAL0_B_COMPONENT_USAGE_RGB 0x00000000
3573#define NV20TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000 3601#define NV20TCL_RC_FINAL0_B_COMPONENT_USAGE_ALPHA 0x00100000
3574#define NV20TCL_RC_FINAL0_B_MAPPING_SHIFT 21 3602#define NV20TCL_RC_FINAL0_B_MAPPING_SHIFT 21
3575#define NV20TCL_RC_FINAL0_B_MAPPING_MASK 0x00e00000 3603#define NV20TCL_RC_FINAL0_B_MAPPING_MASK 0x00e00000
3576#define NV20TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3604#define NV20TCL_RC_FINAL0_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
3577#define NV20TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT_NV 0x00200000 3605#define NV20TCL_RC_FINAL0_B_MAPPING_UNSIGNED_INVERT 0x00200000
3578#define NV20TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL_NV 0x00400000 3606#define NV20TCL_RC_FINAL0_B_MAPPING_EXPAND_NORMAL 0x00400000
3579#define NV20TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE_NV 0x00600000 3607#define NV20TCL_RC_FINAL0_B_MAPPING_EXPAND_NEGATE 0x00600000
3580#define NV20TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 3608#define NV20TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
3581#define NV20TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 3609#define NV20TCL_RC_FINAL0_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
3582#define NV20TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 3610#define NV20TCL_RC_FINAL0_B_MAPPING_SIGNED_IDENTITY 0x00c00000
3583#define NV20TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE_NV 0x00e00000 3611#define NV20TCL_RC_FINAL0_B_MAPPING_SIGNED_NEGATE 0x00e00000
3584#define NV20TCL_RC_FINAL0_A_INPUT_SHIFT 24 3612#define NV20TCL_RC_FINAL0_A_INPUT_SHIFT 24
3585#define NV20TCL_RC_FINAL0_A_INPUT_MASK 0x0f000000 3613#define NV20TCL_RC_FINAL0_A_INPUT_MASK 0x0f000000
3586#define NV20TCL_RC_FINAL0_A_INPUT_ZERO 0x00000000 3614#define NV20TCL_RC_FINAL0_A_INPUT_ZERO 0x00000000
3587#define NV20TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0_NV 0x01000000 3615#define NV20TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR0 0x01000000
3588#define NV20TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1_NV 0x02000000 3616#define NV20TCL_RC_FINAL0_A_INPUT_CONSTANT_COLOR1 0x02000000
3589#define NV20TCL_RC_FINAL0_A_INPUT_FOG 0x03000000 3617#define NV20TCL_RC_FINAL0_A_INPUT_FOG 0x03000000
3590#define NV20TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR_NV 0x04000000 3618#define NV20TCL_RC_FINAL0_A_INPUT_PRIMARY_COLOR 0x04000000
3591#define NV20TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR_NV 0x05000000 3619#define NV20TCL_RC_FINAL0_A_INPUT_SECONDARY_COLOR 0x05000000
3592#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE0_ARB 0x08000000 3620#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE0 0x08000000
3593#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE1_ARB 0x09000000 3621#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE1 0x09000000
3594#define NV20TCL_RC_FINAL0_A_INPUT_SPARE0_NV 0x0c000000 3622#define NV20TCL_RC_FINAL0_A_INPUT_SPARE0 0x0c000000
3595#define NV20TCL_RC_FINAL0_A_INPUT_SPARE1_NV 0x0d000000 3623#define NV20TCL_RC_FINAL0_A_INPUT_SPARE1 0x0d000000
3596#define NV20TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 3624#define NV20TCL_RC_FINAL0_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
3597#define NV20TCL_RC_FINAL0_A_INPUT_E_TIMES_F_NV 0x0f000000 3625#define NV20TCL_RC_FINAL0_A_INPUT_E_TIMES_F 0x0f000000
3598#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE2_ARB 0x0a000000 3626#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE2 0x0a000000
3599#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE3_ARB 0x0b000000 3627#define NV20TCL_RC_FINAL0_A_INPUT_TEXTURE3 0x0b000000
3600#define NV20TCL_RC_FINAL0_A_COMPONENT_USAGE (1 << 28) 3628#define NV20TCL_RC_FINAL0_A_COMPONENT_USAGE (1 << 28)
3601#define NV20TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000 3629#define NV20TCL_RC_FINAL0_A_COMPONENT_USAGE_RGB 0x00000000
3602#define NV20TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000 3630#define NV20TCL_RC_FINAL0_A_COMPONENT_USAGE_ALPHA 0x10000000
3603#define NV20TCL_RC_FINAL0_A_MAPPING_SHIFT 29 3631#define NV20TCL_RC_FINAL0_A_MAPPING_SHIFT 29
3604#define NV20TCL_RC_FINAL0_A_MAPPING_MASK 0xe0000000 3632#define NV20TCL_RC_FINAL0_A_MAPPING_MASK 0xe0000000
3605#define NV20TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3633#define NV20TCL_RC_FINAL0_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
3606#define NV20TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT_NV 0x20000000 3634#define NV20TCL_RC_FINAL0_A_MAPPING_UNSIGNED_INVERT 0x20000000
3607#define NV20TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL_NV 0x40000000 3635#define NV20TCL_RC_FINAL0_A_MAPPING_EXPAND_NORMAL 0x40000000
3608#define NV20TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE_NV 0x60000000 3636#define NV20TCL_RC_FINAL0_A_MAPPING_EXPAND_NEGATE 0x60000000
3609#define NV20TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 3637#define NV20TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
3610#define NV20TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 3638#define NV20TCL_RC_FINAL0_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
3611#define NV20TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 3639#define NV20TCL_RC_FINAL0_A_MAPPING_SIGNED_IDENTITY 0xc0000000
3612#define NV20TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE_NV 0xe0000000 3640#define NV20TCL_RC_FINAL0_A_MAPPING_SIGNED_NEGATE 0xe0000000
3613#define NV20TCL_RC_FINAL1 0x0000028c 3641#define NV20TCL_RC_FINAL1 0x0000028c
3614#define NV20TCL_RC_FINAL1_COLOR_SUM_CLAMP (1 << 7) 3642#define NV20TCL_RC_FINAL1_COLOR_SUM_CLAMP (1 << 7)
3615#define NV20TCL_RC_FINAL1_G_INPUT_SHIFT 8 3643#define NV20TCL_RC_FINAL1_G_INPUT_SHIFT 8
3616#define NV20TCL_RC_FINAL1_G_INPUT_MASK 0x00000f00 3644#define NV20TCL_RC_FINAL1_G_INPUT_MASK 0x00000f00
3617#define NV20TCL_RC_FINAL1_G_INPUT_ZERO 0x00000000 3645#define NV20TCL_RC_FINAL1_G_INPUT_ZERO 0x00000000
3618#define NV20TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0_NV 0x00000100 3646#define NV20TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR0 0x00000100
3619#define NV20TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1_NV 0x00000200 3647#define NV20TCL_RC_FINAL1_G_INPUT_CONSTANT_COLOR1 0x00000200
3620#define NV20TCL_RC_FINAL1_G_INPUT_FOG 0x00000300 3648#define NV20TCL_RC_FINAL1_G_INPUT_FOG 0x00000300
3621#define NV20TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR_NV 0x00000400 3649#define NV20TCL_RC_FINAL1_G_INPUT_PRIMARY_COLOR 0x00000400
3622#define NV20TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR_NV 0x00000500 3650#define NV20TCL_RC_FINAL1_G_INPUT_SECONDARY_COLOR 0x00000500
3623#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE0_ARB 0x00000800 3651#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE0 0x00000800
3624#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE1_ARB 0x00000900 3652#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE1 0x00000900
3625#define NV20TCL_RC_FINAL1_G_INPUT_SPARE0_NV 0x00000c00 3653#define NV20TCL_RC_FINAL1_G_INPUT_SPARE0 0x00000c00
3626#define NV20TCL_RC_FINAL1_G_INPUT_SPARE1_NV 0x00000d00 3654#define NV20TCL_RC_FINAL1_G_INPUT_SPARE1 0x00000d00
3627#define NV20TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 3655#define NV20TCL_RC_FINAL1_G_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
3628#define NV20TCL_RC_FINAL1_G_INPUT_E_TIMES_F_NV 0x00000f00 3656#define NV20TCL_RC_FINAL1_G_INPUT_E_TIMES_F 0x00000f00
3629#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE2_ARB 0x00000a00 3657#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE2 0x00000a00
3630#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE3_ARB 0x00000b00 3658#define NV20TCL_RC_FINAL1_G_INPUT_TEXTURE3 0x00000b00
3631#define NV20TCL_RC_FINAL1_G_COMPONENT_USAGE (1 << 12) 3659#define NV20TCL_RC_FINAL1_G_COMPONENT_USAGE (1 << 12)
3632#define NV20TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000 3660#define NV20TCL_RC_FINAL1_G_COMPONENT_USAGE_RGB 0x00000000
3633#define NV20TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000 3661#define NV20TCL_RC_FINAL1_G_COMPONENT_USAGE_ALPHA 0x00001000
3634#define NV20TCL_RC_FINAL1_G_MAPPING_SHIFT 13 3662#define NV20TCL_RC_FINAL1_G_MAPPING_SHIFT 13
3635#define NV20TCL_RC_FINAL1_G_MAPPING_MASK 0x0000e000 3663#define NV20TCL_RC_FINAL1_G_MAPPING_MASK 0x0000e000
3636#define NV20TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3664#define NV20TCL_RC_FINAL1_G_MAPPING_UNSIGNED_IDENTITY 0x00000000
3637#define NV20TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT_NV 0x00002000 3665#define NV20TCL_RC_FINAL1_G_MAPPING_UNSIGNED_INVERT 0x00002000
3638#define NV20TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL_NV 0x00004000 3666#define NV20TCL_RC_FINAL1_G_MAPPING_EXPAND_NORMAL 0x00004000
3639#define NV20TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE_NV 0x00006000 3667#define NV20TCL_RC_FINAL1_G_MAPPING_EXPAND_NEGATE 0x00006000
3640#define NV20TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 3668#define NV20TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NORMAL 0x00008000
3641#define NV20TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 3669#define NV20TCL_RC_FINAL1_G_MAPPING_HALF_BIAS_NEGATE 0x0000a000
3642#define NV20TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 3670#define NV20TCL_RC_FINAL1_G_MAPPING_SIGNED_IDENTITY 0x0000c000
3643#define NV20TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE_NV 0x0000e000 3671#define NV20TCL_RC_FINAL1_G_MAPPING_SIGNED_NEGATE 0x0000e000
3644#define NV20TCL_RC_FINAL1_F_INPUT_SHIFT 16 3672#define NV20TCL_RC_FINAL1_F_INPUT_SHIFT 16
3645#define NV20TCL_RC_FINAL1_F_INPUT_MASK 0x000f0000 3673#define NV20TCL_RC_FINAL1_F_INPUT_MASK 0x000f0000
3646#define NV20TCL_RC_FINAL1_F_INPUT_ZERO 0x00000000 3674#define NV20TCL_RC_FINAL1_F_INPUT_ZERO 0x00000000
3647#define NV20TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0_NV 0x00010000 3675#define NV20TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR0 0x00010000
3648#define NV20TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1_NV 0x00020000 3676#define NV20TCL_RC_FINAL1_F_INPUT_CONSTANT_COLOR1 0x00020000
3649#define NV20TCL_RC_FINAL1_F_INPUT_FOG 0x00030000 3677#define NV20TCL_RC_FINAL1_F_INPUT_FOG 0x00030000
3650#define NV20TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR_NV 0x00040000 3678#define NV20TCL_RC_FINAL1_F_INPUT_PRIMARY_COLOR 0x00040000
3651#define NV20TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR_NV 0x00050000 3679#define NV20TCL_RC_FINAL1_F_INPUT_SECONDARY_COLOR 0x00050000
3652#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE0_ARB 0x00080000 3680#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE0 0x00080000
3653#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE1_ARB 0x00090000 3681#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE1 0x00090000
3654#define NV20TCL_RC_FINAL1_F_INPUT_SPARE0_NV 0x000c0000 3682#define NV20TCL_RC_FINAL1_F_INPUT_SPARE0 0x000c0000
3655#define NV20TCL_RC_FINAL1_F_INPUT_SPARE1_NV 0x000d0000 3683#define NV20TCL_RC_FINAL1_F_INPUT_SPARE1 0x000d0000
3656#define NV20TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 3684#define NV20TCL_RC_FINAL1_F_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
3657#define NV20TCL_RC_FINAL1_F_INPUT_E_TIMES_F_NV 0x000f0000 3685#define NV20TCL_RC_FINAL1_F_INPUT_E_TIMES_F 0x000f0000
3658#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE2_ARB 0x000a0000 3686#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE2 0x000a0000
3659#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE3_ARB 0x000b0000 3687#define NV20TCL_RC_FINAL1_F_INPUT_TEXTURE3 0x000b0000
3660#define NV20TCL_RC_FINAL1_F_COMPONENT_USAGE (1 << 20) 3688#define NV20TCL_RC_FINAL1_F_COMPONENT_USAGE (1 << 20)
3661#define NV20TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000 3689#define NV20TCL_RC_FINAL1_F_COMPONENT_USAGE_RGB 0x00000000
3662#define NV20TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000 3690#define NV20TCL_RC_FINAL1_F_COMPONENT_USAGE_ALPHA 0x00100000
3663#define NV20TCL_RC_FINAL1_F_MAPPING_SHIFT 21 3691#define NV20TCL_RC_FINAL1_F_MAPPING_SHIFT 21
3664#define NV20TCL_RC_FINAL1_F_MAPPING_MASK 0x00e00000 3692#define NV20TCL_RC_FINAL1_F_MAPPING_MASK 0x00e00000
3665#define NV20TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3693#define NV20TCL_RC_FINAL1_F_MAPPING_UNSIGNED_IDENTITY 0x00000000
3666#define NV20TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT_NV 0x00200000 3694#define NV20TCL_RC_FINAL1_F_MAPPING_UNSIGNED_INVERT 0x00200000
3667#define NV20TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL_NV 0x00400000 3695#define NV20TCL_RC_FINAL1_F_MAPPING_EXPAND_NORMAL 0x00400000
3668#define NV20TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE_NV 0x00600000 3696#define NV20TCL_RC_FINAL1_F_MAPPING_EXPAND_NEGATE 0x00600000
3669#define NV20TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 3697#define NV20TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NORMAL 0x00800000
3670#define NV20TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 3698#define NV20TCL_RC_FINAL1_F_MAPPING_HALF_BIAS_NEGATE 0x00a00000
3671#define NV20TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 3699#define NV20TCL_RC_FINAL1_F_MAPPING_SIGNED_IDENTITY 0x00c00000
3672#define NV20TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE_NV 0x00e00000 3700#define NV20TCL_RC_FINAL1_F_MAPPING_SIGNED_NEGATE 0x00e00000
3673#define NV20TCL_RC_FINAL1_E_INPUT_SHIFT 24 3701#define NV20TCL_RC_FINAL1_E_INPUT_SHIFT 24
3674#define NV20TCL_RC_FINAL1_E_INPUT_MASK 0x0f000000 3702#define NV20TCL_RC_FINAL1_E_INPUT_MASK 0x0f000000
3675#define NV20TCL_RC_FINAL1_E_INPUT_ZERO 0x00000000 3703#define NV20TCL_RC_FINAL1_E_INPUT_ZERO 0x00000000
3676#define NV20TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0_NV 0x01000000 3704#define NV20TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR0 0x01000000
3677#define NV20TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1_NV 0x02000000 3705#define NV20TCL_RC_FINAL1_E_INPUT_CONSTANT_COLOR1 0x02000000
3678#define NV20TCL_RC_FINAL1_E_INPUT_FOG 0x03000000 3706#define NV20TCL_RC_FINAL1_E_INPUT_FOG 0x03000000
3679#define NV20TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR_NV 0x04000000 3707#define NV20TCL_RC_FINAL1_E_INPUT_PRIMARY_COLOR 0x04000000
3680#define NV20TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR_NV 0x05000000 3708#define NV20TCL_RC_FINAL1_E_INPUT_SECONDARY_COLOR 0x05000000
3681#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE0_ARB 0x08000000 3709#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE0 0x08000000
3682#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE1_ARB 0x09000000 3710#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE1 0x09000000
3683#define NV20TCL_RC_FINAL1_E_INPUT_SPARE0_NV 0x0c000000 3711#define NV20TCL_RC_FINAL1_E_INPUT_SPARE0 0x0c000000
3684#define NV20TCL_RC_FINAL1_E_INPUT_SPARE1_NV 0x0d000000 3712#define NV20TCL_RC_FINAL1_E_INPUT_SPARE1 0x0d000000
3685#define NV20TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 3713#define NV20TCL_RC_FINAL1_E_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
3686#define NV20TCL_RC_FINAL1_E_INPUT_E_TIMES_F_NV 0x0f000000 3714#define NV20TCL_RC_FINAL1_E_INPUT_E_TIMES_F 0x0f000000
3687#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE2_ARB 0x0a000000 3715#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE2 0x0a000000
3688#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE3_ARB 0x0b000000 3716#define NV20TCL_RC_FINAL1_E_INPUT_TEXTURE3 0x0b000000
3689#define NV20TCL_RC_FINAL1_E_COMPONENT_USAGE (1 << 28) 3717#define NV20TCL_RC_FINAL1_E_COMPONENT_USAGE (1 << 28)
3690#define NV20TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000 3718#define NV20TCL_RC_FINAL1_E_COMPONENT_USAGE_RGB 0x00000000
3691#define NV20TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000 3719#define NV20TCL_RC_FINAL1_E_COMPONENT_USAGE_ALPHA 0x10000000
3692#define NV20TCL_RC_FINAL1_E_MAPPING_SHIFT 29 3720#define NV20TCL_RC_FINAL1_E_MAPPING_SHIFT 29
3693#define NV20TCL_RC_FINAL1_E_MAPPING_MASK 0xe0000000 3721#define NV20TCL_RC_FINAL1_E_MAPPING_MASK 0xe0000000
3694#define NV20TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 3722#define NV20TCL_RC_FINAL1_E_MAPPING_UNSIGNED_IDENTITY 0x00000000
3695#define NV20TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT_NV 0x20000000 3723#define NV20TCL_RC_FINAL1_E_MAPPING_UNSIGNED_INVERT 0x20000000
3696#define NV20TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL_NV 0x40000000 3724#define NV20TCL_RC_FINAL1_E_MAPPING_EXPAND_NORMAL 0x40000000
3697#define NV20TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE_NV 0x60000000 3725#define NV20TCL_RC_FINAL1_E_MAPPING_EXPAND_NEGATE 0x60000000
3698#define NV20TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 3726#define NV20TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NORMAL 0x80000000
3699#define NV20TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 3727#define NV20TCL_RC_FINAL1_E_MAPPING_HALF_BIAS_NEGATE 0xa0000000
3700#define NV20TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 3728#define NV20TCL_RC_FINAL1_E_MAPPING_SIGNED_IDENTITY 0xc0000000
3701#define NV20TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE_NV 0xe0000000 3729#define NV20TCL_RC_FINAL1_E_MAPPING_SIGNED_NEGATE 0xe0000000
3702#define NV20TCL_LIGHT_CONTROL 0x00000294 3730#define NV20TCL_LIGHT_CONTROL 0x00000294
3703#define NV20TCL_FOG_MODE 0x0000029c 3731#define NV20TCL_FOG_MODE 0x0000029c
3704#define NV20TCL_FOG_MODE_EXP 0x00000800 3732#define NV20TCL_FOG_MODE_EXP 0x00000800
@@ -3708,8 +3736,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3708#define NV20TCL_FOG_MODE_LINEAR_2 0x00002601 3736#define NV20TCL_FOG_MODE_LINEAR_2 0x00002601
3709#define NV20TCL_FOG_COORD_DIST 0x000002a0 3737#define NV20TCL_FOG_COORD_DIST 0x000002a0
3710#define NV20TCL_FOG_COORD_DIST_COORD_FALSE 0x00000000 3738#define NV20TCL_FOG_COORD_DIST_COORD_FALSE 0x00000000
3711#define NV20TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_RADIAL_NV 0x00000001 3739#define NV20TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_RADIAL 0x00000001
3712#define NV20TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_PLANE_ABSOLUTE_NV 0x00000002 3740#define NV20TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_PLANE_ABSOLUTE 0x00000002
3713#define NV20TCL_FOG_COORD_DIST_COORD_FOG 0x00000003 3741#define NV20TCL_FOG_COORD_DIST_COORD_FOG 0x00000003
3714#define NV20TCL_FOG_ENABLE 0x000002a4 3742#define NV20TCL_FOG_ENABLE 0x000002a4
3715#define NV20TCL_FOG_COLOR 0x000002a8 3743#define NV20TCL_FOG_COLOR 0x000002a8
@@ -4013,181 +4041,181 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4013#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT 0 4041#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SHIFT 0
4014#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK 0x0000000f 4042#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_MASK 0x0000000f
4015#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000 4043#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_ZERO 0x00000000
4016#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0_NV 0x00000001 4044#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
4017#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1_NV 0x00000002 4045#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
4018#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003 4046#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_FOG 0x00000003
4019#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR_NV 0x00000004 4047#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_PRIMARY_COLOR 0x00000004
4020#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR_NV 0x00000005 4048#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SECONDARY_COLOR 0x00000005
4021#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0_ARB 0x00000008 4049#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE0 0x00000008
4022#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1_ARB 0x00000009 4050#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE1 0x00000009
4023#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_NV 0x0000000c 4051#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0 0x0000000c
4024#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1_NV 0x0000000d 4052#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE1 0x0000000d
4025#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 4053#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
4026#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F_NV 0x0000000f 4054#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_E_TIMES_F 0x0000000f
4027#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2_ARB 0x0000000a 4055#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE2 0x0000000a
4028#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3_ARB 0x0000000b 4056#define NV20TCL_RC_OUT_ALPHA_CD_OUTPUT_TEXTURE3 0x0000000b
4029#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT 4 4057#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SHIFT 4
4030#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK 0x000000f0 4058#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_MASK 0x000000f0
4031#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000 4059#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_ZERO 0x00000000
4032#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0_NV 0x00000010 4060#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
4033#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1_NV 0x00000020 4061#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
4034#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030 4062#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_FOG 0x00000030
4035#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR_NV 0x00000040 4063#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_PRIMARY_COLOR 0x00000040
4036#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR_NV 0x00000050 4064#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SECONDARY_COLOR 0x00000050
4037#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0_ARB 0x00000080 4065#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE0 0x00000080
4038#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1_ARB 0x00000090 4066#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE1 0x00000090
4039#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_NV 0x000000c0 4067#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0 0x000000c0
4040#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1_NV 0x000000d0 4068#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE1 0x000000d0
4041#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000000e0 4069#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
4042#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F_NV 0x000000f0 4070#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_E_TIMES_F 0x000000f0
4043#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2_ARB 0x000000a0 4071#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE2 0x000000a0
4044#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3_ARB 0x000000b0 4072#define NV20TCL_RC_OUT_ALPHA_AB_OUTPUT_TEXTURE3 0x000000b0
4045#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT 8 4073#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SHIFT 8
4046#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK 0x00000f00 4074#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_MASK 0x00000f00
4047#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000 4075#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_ZERO 0x00000000
4048#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0_NV 0x00000100 4076#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
4049#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1_NV 0x00000200 4077#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
4050#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300 4078#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_FOG 0x00000300
4051#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR_NV 0x00000400 4079#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
4052#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR_NV 0x00000500 4080#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
4053#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0_ARB 0x00000800 4081#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE0 0x00000800
4054#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1_ARB 0x00000900 4082#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE1 0x00000900
4055#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_NV 0x00000c00 4083#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0 0x00000c00
4056#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1_NV 0x00000d00 4084#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE1 0x00000d00
4057#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 4085#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
4058#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F_NV 0x00000f00 4086#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_E_TIMES_F 0x00000f00
4059#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2_ARB 0x00000a00 4087#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE2 0x00000a00
4060#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3_ARB 0x00000b00 4088#define NV20TCL_RC_OUT_ALPHA_SUM_OUTPUT_TEXTURE3 0x00000b00
4061#define NV20TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT (1 << 12) 4089#define NV20TCL_RC_OUT_ALPHA_CD_DOT_PRODUCT (1 << 12)
4062#define NV20TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT (1 << 13) 4090#define NV20TCL_RC_OUT_ALPHA_AB_DOT_PRODUCT (1 << 13)
4063#define NV20TCL_RC_OUT_ALPHA_MUX_SUM (1 << 14) 4091#define NV20TCL_RC_OUT_ALPHA_MUX_SUM (1 << 14)
4064#define NV20TCL_RC_OUT_ALPHA_BIAS (1 << 15) 4092#define NV20TCL_RC_OUT_ALPHA_BIAS (1 << 15)
4065#define NV20TCL_RC_OUT_ALPHA_BIAS_NONE 0x00000000 4093#define NV20TCL_RC_OUT_ALPHA_BIAS_NONE 0x00000000
4066#define NV20TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x00008000 4094#define NV20TCL_RC_OUT_ALPHA_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
4067#define NV20TCL_RC_OUT_ALPHA_SCALE_SHIFT 17 4095#define NV20TCL_RC_OUT_ALPHA_SCALE_SHIFT 17
4068#define NV20TCL_RC_OUT_ALPHA_SCALE_MASK 0x00000000 4096#define NV20TCL_RC_OUT_ALPHA_SCALE_MASK 0x00000000
4069#define NV20TCL_RC_OUT_ALPHA_SCALE_NONE 0x00000000 4097#define NV20TCL_RC_OUT_ALPHA_SCALE_NONE 0x00000000
4070#define NV20TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO_NV 0x00020000 4098#define NV20TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_TWO 0x00020000
4071#define NV20TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR_NV 0x00040000 4099#define NV20TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_FOUR 0x00040000
4072#define NV20TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF_NV 0x00060000 4100#define NV20TCL_RC_OUT_ALPHA_SCALE_SCALE_BY_ONE_HALF 0x00060000
4073#define NV20TCL_RC_IN_RGB(x) (0x00000ac0+((x)*4)) 4101#define NV20TCL_RC_IN_RGB(x) (0x00000ac0+((x)*4))
4074#define NV20TCL_RC_IN_RGB__SIZE 0x00000008 4102#define NV20TCL_RC_IN_RGB__SIZE 0x00000008
4075#define NV20TCL_RC_IN_RGB_D_INPUT_SHIFT 0 4103#define NV20TCL_RC_IN_RGB_D_INPUT_SHIFT 0
4076#define NV20TCL_RC_IN_RGB_D_INPUT_MASK 0x0000000f 4104#define NV20TCL_RC_IN_RGB_D_INPUT_MASK 0x0000000f
4077#define NV20TCL_RC_IN_RGB_D_INPUT_ZERO 0x00000000 4105#define NV20TCL_RC_IN_RGB_D_INPUT_ZERO 0x00000000
4078#define NV20TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 4106#define NV20TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR0 0x00000001
4079#define NV20TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 4107#define NV20TCL_RC_IN_RGB_D_INPUT_CONSTANT_COLOR1 0x00000002
4080#define NV20TCL_RC_IN_RGB_D_INPUT_FOG 0x00000003 4108#define NV20TCL_RC_IN_RGB_D_INPUT_FOG 0x00000003
4081#define NV20TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR_NV 0x00000004 4109#define NV20TCL_RC_IN_RGB_D_INPUT_PRIMARY_COLOR 0x00000004
4082#define NV20TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR_NV 0x00000005 4110#define NV20TCL_RC_IN_RGB_D_INPUT_SECONDARY_COLOR 0x00000005
4083#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE0_ARB 0x00000008 4111#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE0 0x00000008
4084#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE1_ARB 0x00000009 4112#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE1 0x00000009
4085#define NV20TCL_RC_IN_RGB_D_INPUT_SPARE0_NV 0x0000000c 4113#define NV20TCL_RC_IN_RGB_D_INPUT_SPARE0 0x0000000c
4086#define NV20TCL_RC_IN_RGB_D_INPUT_SPARE1_NV 0x0000000d 4114#define NV20TCL_RC_IN_RGB_D_INPUT_SPARE1 0x0000000d
4087#define NV20TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 4115#define NV20TCL_RC_IN_RGB_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
4088#define NV20TCL_RC_IN_RGB_D_INPUT_E_TIMES_F_NV 0x0000000f 4116#define NV20TCL_RC_IN_RGB_D_INPUT_E_TIMES_F 0x0000000f
4089#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE2_ARB 0x0000000a 4117#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE2 0x0000000a
4090#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE3_ARB 0x0000000b 4118#define NV20TCL_RC_IN_RGB_D_INPUT_TEXTURE3 0x0000000b
4091#define NV20TCL_RC_IN_RGB_D_COMPONENT_USAGE (1 << 4) 4119#define NV20TCL_RC_IN_RGB_D_COMPONENT_USAGE (1 << 4)
4092#define NV20TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000 4120#define NV20TCL_RC_IN_RGB_D_COMPONENT_USAGE_RGB 0x00000000
4093#define NV20TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010 4121#define NV20TCL_RC_IN_RGB_D_COMPONENT_USAGE_ALPHA 0x00000010
4094#define NV20TCL_RC_IN_RGB_D_MAPPING_SHIFT 5 4122#define NV20TCL_RC_IN_RGB_D_MAPPING_SHIFT 5
4095#define NV20TCL_RC_IN_RGB_D_MAPPING_MASK 0x000000e0 4123#define NV20TCL_RC_IN_RGB_D_MAPPING_MASK 0x000000e0
4096#define NV20TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 4124#define NV20TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
4097#define NV20TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 4125#define NV20TCL_RC_IN_RGB_D_MAPPING_UNSIGNED_INVERT 0x00000020
4098#define NV20TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 4126#define NV20TCL_RC_IN_RGB_D_MAPPING_EXPAND_NORMAL 0x00000040
4099#define NV20TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 4127#define NV20TCL_RC_IN_RGB_D_MAPPING_EXPAND_NEGATE 0x00000060
4100#define NV20TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 4128#define NV20TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
4101#define NV20TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 4129#define NV20TCL_RC_IN_RGB_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
4102#define NV20TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 4130#define NV20TCL_RC_IN_RGB_D_MAPPING_SIGNED_IDENTITY 0x000000c0
4103#define NV20TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 4131#define NV20TCL_RC_IN_RGB_D_MAPPING_SIGNED_NEGATE 0x000000e0
4104#define NV20TCL_RC_IN_RGB_C_INPUT_SHIFT 8 4132#define NV20TCL_RC_IN_RGB_C_INPUT_SHIFT 8
4105#define NV20TCL_RC_IN_RGB_C_INPUT_MASK 0x00000f00 4133#define NV20TCL_RC_IN_RGB_C_INPUT_MASK 0x00000f00
4106#define NV20TCL_RC_IN_RGB_C_INPUT_ZERO 0x00000000 4134#define NV20TCL_RC_IN_RGB_C_INPUT_ZERO 0x00000000
4107#define NV20TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 4135#define NV20TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR0 0x00000100
4108#define NV20TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 4136#define NV20TCL_RC_IN_RGB_C_INPUT_CONSTANT_COLOR1 0x00000200
4109#define NV20TCL_RC_IN_RGB_C_INPUT_FOG 0x00000300 4137#define NV20TCL_RC_IN_RGB_C_INPUT_FOG 0x00000300
4110#define NV20TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR_NV 0x00000400 4138#define NV20TCL_RC_IN_RGB_C_INPUT_PRIMARY_COLOR 0x00000400
4111#define NV20TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR_NV 0x00000500 4139#define NV20TCL_RC_IN_RGB_C_INPUT_SECONDARY_COLOR 0x00000500
4112#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE0_ARB 0x00000800 4140#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE0 0x00000800
4113#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE1_ARB 0x00000900 4141#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE1 0x00000900
4114#define NV20TCL_RC_IN_RGB_C_INPUT_SPARE0_NV 0x00000c00 4142#define NV20TCL_RC_IN_RGB_C_INPUT_SPARE0 0x00000c00
4115#define NV20TCL_RC_IN_RGB_C_INPUT_SPARE1_NV 0x00000d00 4143#define NV20TCL_RC_IN_RGB_C_INPUT_SPARE1 0x00000d00
4116#define NV20TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 4144#define NV20TCL_RC_IN_RGB_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
4117#define NV20TCL_RC_IN_RGB_C_INPUT_E_TIMES_F_NV 0x00000f00 4145#define NV20TCL_RC_IN_RGB_C_INPUT_E_TIMES_F 0x00000f00
4118#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE2_ARB 0x00000a00 4146#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE2 0x00000a00
4119#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE3_ARB 0x00000b00 4147#define NV20TCL_RC_IN_RGB_C_INPUT_TEXTURE3 0x00000b00
4120#define NV20TCL_RC_IN_RGB_C_COMPONENT_USAGE (1 << 12) 4148#define NV20TCL_RC_IN_RGB_C_COMPONENT_USAGE (1 << 12)
4121#define NV20TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000 4149#define NV20TCL_RC_IN_RGB_C_COMPONENT_USAGE_RGB 0x00000000
4122#define NV20TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000 4150#define NV20TCL_RC_IN_RGB_C_COMPONENT_USAGE_ALPHA 0x00001000
4123#define NV20TCL_RC_IN_RGB_C_MAPPING_SHIFT 13 4151#define NV20TCL_RC_IN_RGB_C_MAPPING_SHIFT 13
4124#define NV20TCL_RC_IN_RGB_C_MAPPING_MASK 0x0000e000 4152#define NV20TCL_RC_IN_RGB_C_MAPPING_MASK 0x0000e000
4125#define NV20TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 4153#define NV20TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
4126#define NV20TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 4154#define NV20TCL_RC_IN_RGB_C_MAPPING_UNSIGNED_INVERT 0x00002000
4127#define NV20TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 4155#define NV20TCL_RC_IN_RGB_C_MAPPING_EXPAND_NORMAL 0x00004000
4128#define NV20TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 4156#define NV20TCL_RC_IN_RGB_C_MAPPING_EXPAND_NEGATE 0x00006000
4129#define NV20TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 4157#define NV20TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
4130#define NV20TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 4158#define NV20TCL_RC_IN_RGB_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
4131#define NV20TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 4159#define NV20TCL_RC_IN_RGB_C_MAPPING_SIGNED_IDENTITY 0x0000c000
4132#define NV20TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 4160#define NV20TCL_RC_IN_RGB_C_MAPPING_SIGNED_NEGATE 0x0000e000
4133#define NV20TCL_RC_IN_RGB_B_INPUT_SHIFT 16 4161#define NV20TCL_RC_IN_RGB_B_INPUT_SHIFT 16
4134#define NV20TCL_RC_IN_RGB_B_INPUT_MASK 0x000f0000 4162#define NV20TCL_RC_IN_RGB_B_INPUT_MASK 0x000f0000
4135#define NV20TCL_RC_IN_RGB_B_INPUT_ZERO 0x00000000 4163#define NV20TCL_RC_IN_RGB_B_INPUT_ZERO 0x00000000
4136#define NV20TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 4164#define NV20TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR0 0x00010000
4137#define NV20TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 4165#define NV20TCL_RC_IN_RGB_B_INPUT_CONSTANT_COLOR1 0x00020000
4138#define NV20TCL_RC_IN_RGB_B_INPUT_FOG 0x00030000 4166#define NV20TCL_RC_IN_RGB_B_INPUT_FOG 0x00030000
4139#define NV20TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR_NV 0x00040000 4167#define NV20TCL_RC_IN_RGB_B_INPUT_PRIMARY_COLOR 0x00040000
4140#define NV20TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR_NV 0x00050000 4168#define NV20TCL_RC_IN_RGB_B_INPUT_SECONDARY_COLOR 0x00050000
4141#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE0_ARB 0x00080000 4169#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE0 0x00080000
4142#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE1_ARB 0x00090000 4170#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE1 0x00090000
4143#define NV20TCL_RC_IN_RGB_B_INPUT_SPARE0_NV 0x000c0000 4171#define NV20TCL_RC_IN_RGB_B_INPUT_SPARE0 0x000c0000
4144#define NV20TCL_RC_IN_RGB_B_INPUT_SPARE1_NV 0x000d0000 4172#define NV20TCL_RC_IN_RGB_B_INPUT_SPARE1 0x000d0000
4145#define NV20TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 4173#define NV20TCL_RC_IN_RGB_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
4146#define NV20TCL_RC_IN_RGB_B_INPUT_E_TIMES_F_NV 0x000f0000 4174#define NV20TCL_RC_IN_RGB_B_INPUT_E_TIMES_F 0x000f0000
4147#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE2_ARB 0x000a0000 4175#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE2 0x000a0000
4148#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE3_ARB 0x000b0000 4176#define NV20TCL_RC_IN_RGB_B_INPUT_TEXTURE3 0x000b0000
4149#define NV20TCL_RC_IN_RGB_B_COMPONENT_USAGE (1 << 20) 4177#define NV20TCL_RC_IN_RGB_B_COMPONENT_USAGE (1 << 20)
4150#define NV20TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000 4178#define NV20TCL_RC_IN_RGB_B_COMPONENT_USAGE_RGB 0x00000000
4151#define NV20TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000 4179#define NV20TCL_RC_IN_RGB_B_COMPONENT_USAGE_ALPHA 0x00100000
4152#define NV20TCL_RC_IN_RGB_B_MAPPING_SHIFT 21 4180#define NV20TCL_RC_IN_RGB_B_MAPPING_SHIFT 21
4153#define NV20TCL_RC_IN_RGB_B_MAPPING_MASK 0x00e00000 4181#define NV20TCL_RC_IN_RGB_B_MAPPING_MASK 0x00e00000
4154#define NV20TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 4182#define NV20TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_IDENTITY 0x00000000
4155#define NV20TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT_NV 0x00200000 4183#define NV20TCL_RC_IN_RGB_B_MAPPING_UNSIGNED_INVERT 0x00200000
4156#define NV20TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL_NV 0x00400000 4184#define NV20TCL_RC_IN_RGB_B_MAPPING_EXPAND_NORMAL 0x00400000
4157#define NV20TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE_NV 0x00600000 4185#define NV20TCL_RC_IN_RGB_B_MAPPING_EXPAND_NEGATE 0x00600000
4158#define NV20TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL_NV 0x00800000 4186#define NV20TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NORMAL 0x00800000
4159#define NV20TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE_NV 0x00a00000 4187#define NV20TCL_RC_IN_RGB_B_MAPPING_HALF_BIAS_NEGATE 0x00a00000
4160#define NV20TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY_NV 0x00c00000 4188#define NV20TCL_RC_IN_RGB_B_MAPPING_SIGNED_IDENTITY 0x00c00000
4161#define NV20TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE_NV 0x00e00000 4189#define NV20TCL_RC_IN_RGB_B_MAPPING_SIGNED_NEGATE 0x00e00000
4162#define NV20TCL_RC_IN_RGB_A_INPUT_SHIFT 24 4190#define NV20TCL_RC_IN_RGB_A_INPUT_SHIFT 24
4163#define NV20TCL_RC_IN_RGB_A_INPUT_MASK 0x0f000000 4191#define NV20TCL_RC_IN_RGB_A_INPUT_MASK 0x0f000000
4164#define NV20TCL_RC_IN_RGB_A_INPUT_ZERO 0x00000000 4192#define NV20TCL_RC_IN_RGB_A_INPUT_ZERO 0x00000000
4165#define NV20TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0_NV 0x01000000 4193#define NV20TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR0 0x01000000
4166#define NV20TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1_NV 0x02000000 4194#define NV20TCL_RC_IN_RGB_A_INPUT_CONSTANT_COLOR1 0x02000000
4167#define NV20TCL_RC_IN_RGB_A_INPUT_FOG 0x03000000 4195#define NV20TCL_RC_IN_RGB_A_INPUT_FOG 0x03000000
4168#define NV20TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR_NV 0x04000000 4196#define NV20TCL_RC_IN_RGB_A_INPUT_PRIMARY_COLOR 0x04000000
4169#define NV20TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR_NV 0x05000000 4197#define NV20TCL_RC_IN_RGB_A_INPUT_SECONDARY_COLOR 0x05000000
4170#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE0_ARB 0x08000000 4198#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE0 0x08000000
4171#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE1_ARB 0x09000000 4199#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE1 0x09000000
4172#define NV20TCL_RC_IN_RGB_A_INPUT_SPARE0_NV 0x0c000000 4200#define NV20TCL_RC_IN_RGB_A_INPUT_SPARE0 0x0c000000
4173#define NV20TCL_RC_IN_RGB_A_INPUT_SPARE1_NV 0x0d000000 4201#define NV20TCL_RC_IN_RGB_A_INPUT_SPARE1 0x0d000000
4174#define NV20TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0e000000 4202#define NV20TCL_RC_IN_RGB_A_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0e000000
4175#define NV20TCL_RC_IN_RGB_A_INPUT_E_TIMES_F_NV 0x0f000000 4203#define NV20TCL_RC_IN_RGB_A_INPUT_E_TIMES_F 0x0f000000
4176#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE2_ARB 0x0a000000 4204#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE2 0x0a000000
4177#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE3_ARB 0x0b000000 4205#define NV20TCL_RC_IN_RGB_A_INPUT_TEXTURE3 0x0b000000
4178#define NV20TCL_RC_IN_RGB_A_COMPONENT_USAGE (1 << 28) 4206#define NV20TCL_RC_IN_RGB_A_COMPONENT_USAGE (1 << 28)
4179#define NV20TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000 4207#define NV20TCL_RC_IN_RGB_A_COMPONENT_USAGE_RGB 0x00000000
4180#define NV20TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000 4208#define NV20TCL_RC_IN_RGB_A_COMPONENT_USAGE_ALPHA 0x10000000
4181#define NV20TCL_RC_IN_RGB_A_MAPPING_SHIFT 29 4209#define NV20TCL_RC_IN_RGB_A_MAPPING_SHIFT 29
4182#define NV20TCL_RC_IN_RGB_A_MAPPING_MASK 0xe0000000 4210#define NV20TCL_RC_IN_RGB_A_MAPPING_MASK 0xe0000000
4183#define NV20TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 4211#define NV20TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_IDENTITY 0x00000000
4184#define NV20TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT_NV 0x20000000 4212#define NV20TCL_RC_IN_RGB_A_MAPPING_UNSIGNED_INVERT 0x20000000
4185#define NV20TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL_NV 0x40000000 4213#define NV20TCL_RC_IN_RGB_A_MAPPING_EXPAND_NORMAL 0x40000000
4186#define NV20TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE_NV 0x60000000 4214#define NV20TCL_RC_IN_RGB_A_MAPPING_EXPAND_NEGATE 0x60000000
4187#define NV20TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL_NV 0x80000000 4215#define NV20TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NORMAL 0x80000000
4188#define NV20TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE_NV 0xa0000000 4216#define NV20TCL_RC_IN_RGB_A_MAPPING_HALF_BIAS_NEGATE 0xa0000000
4189#define NV20TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY_NV 0xc0000000 4217#define NV20TCL_RC_IN_RGB_A_MAPPING_SIGNED_IDENTITY 0xc0000000
4190#define NV20TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE_NV 0xe0000000 4218#define NV20TCL_RC_IN_RGB_A_MAPPING_SIGNED_NEGATE 0xe0000000
4191#define NV20TCL_VIEWPORT_SCALE_X 0x00000af0 4219#define NV20TCL_VIEWPORT_SCALE_X 0x00000af0
4192#define NV20TCL_VIEWPORT_SCALE_Y 0x00000af4 4220#define NV20TCL_VIEWPORT_SCALE_Y 0x00000af4
4193#define NV20TCL_VIEWPORT_SCALE_Z 0x00000af8 4221#define NV20TCL_VIEWPORT_SCALE_Z 0x00000af8
@@ -4495,6 +4523,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4495#define NV20TCL_VB_ELEMENT_U16_I0_MASK 0x0000ffff 4523#define NV20TCL_VB_ELEMENT_U16_I0_MASK 0x0000ffff
4496#define NV20TCL_VB_ELEMENT_U16_I1_SHIFT 16 4524#define NV20TCL_VB_ELEMENT_U16_I1_SHIFT 16
4497#define NV20TCL_VB_ELEMENT_U16_I1_MASK 0xffff0000 4525#define NV20TCL_VB_ELEMENT_U16_I1_MASK 0xffff0000
4526#define NV20TCL_VB_ELEMENT_U32 0x00001808
4498#define NV20TCL_VB_VERTEX_BATCH 0x00001810 4527#define NV20TCL_VB_VERTEX_BATCH 0x00001810
4499#define NV20TCL_VB_VERTEX_BATCH_OFFSET_SHIFT 0 4528#define NV20TCL_VB_VERTEX_BATCH_OFFSET_SHIFT 0
4500#define NV20TCL_VB_VERTEX_BATCH_OFFSET_MASK 0x00ffffff 4529#define NV20TCL_VB_VERTEX_BATCH_OFFSET_MASK 0x00ffffff
@@ -4687,63 +4716,63 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4687#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT 0 4716#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SHIFT 0
4688#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_MASK 0x0000000f 4717#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_MASK 0x0000000f
4689#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000 4718#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_ZERO 0x00000000
4690#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0_NV 0x00000001 4719#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR0 0x00000001
4691#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1_NV 0x00000002 4720#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_CONSTANT_COLOR1 0x00000002
4692#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003 4721#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_FOG 0x00000003
4693#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR_NV 0x00000004 4722#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_PRIMARY_COLOR 0x00000004
4694#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR_NV 0x00000005 4723#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SECONDARY_COLOR 0x00000005
4695#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0_ARB 0x00000008 4724#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE0 0x00000008
4696#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1_ARB 0x00000009 4725#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE1 0x00000009
4697#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_NV 0x0000000c 4726#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0 0x0000000c
4698#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1_NV 0x0000000d 4727#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SPARE1 0x0000000d
4699#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 4728#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
4700#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F_NV 0x0000000f 4729#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_E_TIMES_F 0x0000000f
4701#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE2_ARB 0x0000000a 4730#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE2 0x0000000a
4702#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE3_ARB 0x0000000b 4731#define NV20TCL_RC_OUT_RGB_CD_OUTPUT_TEXTURE3 0x0000000b
4703#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT 4 4732#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SHIFT 4
4704#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_MASK 0x000000f0 4733#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_MASK 0x000000f0
4705#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000 4734#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_ZERO 0x00000000
4706#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0_NV 0x00000010 4735#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR0 0x00000010
4707#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1_NV 0x00000020 4736#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_CONSTANT_COLOR1 0x00000020
4708#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030 4737#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_FOG 0x00000030
4709#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR_NV 0x00000040 4738#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_PRIMARY_COLOR 0x00000040
4710#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR_NV 0x00000050 4739#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SECONDARY_COLOR 0x00000050
4711#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0_ARB 0x00000080 4740#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE0 0x00000080
4712#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1_ARB 0x00000090 4741#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE1 0x00000090
4713#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_NV 0x000000c0 4742#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0 0x000000c0
4714#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1_NV 0x000000d0 4743#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SPARE1 0x000000d0
4715#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000000e0 4744#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000000e0
4716#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F_NV 0x000000f0 4745#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_E_TIMES_F 0x000000f0
4717#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE2_ARB 0x000000a0 4746#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE2 0x000000a0
4718#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE3_ARB 0x000000b0 4747#define NV20TCL_RC_OUT_RGB_AB_OUTPUT_TEXTURE3 0x000000b0
4719#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT 8 4748#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SHIFT 8
4720#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_MASK 0x00000f00 4749#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_MASK 0x00000f00
4721#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000 4750#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_ZERO 0x00000000
4722#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0_NV 0x00000100 4751#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR0 0x00000100
4723#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1_NV 0x00000200 4752#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_CONSTANT_COLOR1 0x00000200
4724#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300 4753#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_FOG 0x00000300
4725#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR_NV 0x00000400 4754#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_PRIMARY_COLOR 0x00000400
4726#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR_NV 0x00000500 4755#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SECONDARY_COLOR 0x00000500
4727#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0_ARB 0x00000800 4756#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE0 0x00000800
4728#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1_ARB 0x00000900 4757#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE1 0x00000900
4729#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_NV 0x00000c00 4758#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0 0x00000c00
4730#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1_NV 0x00000d00 4759#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE1 0x00000d00
4731#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 4760#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
4732#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F_NV 0x00000f00 4761#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_E_TIMES_F 0x00000f00
4733#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2_ARB 0x00000a00 4762#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE2 0x00000a00
4734#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3_ARB 0x00000b00 4763#define NV20TCL_RC_OUT_RGB_SUM_OUTPUT_TEXTURE3 0x00000b00
4735#define NV20TCL_RC_OUT_RGB_CD_DOT_PRODUCT (1 << 12) 4764#define NV20TCL_RC_OUT_RGB_CD_DOT_PRODUCT (1 << 12)
4736#define NV20TCL_RC_OUT_RGB_AB_DOT_PRODUCT (1 << 13) 4765#define NV20TCL_RC_OUT_RGB_AB_DOT_PRODUCT (1 << 13)
4737#define NV20TCL_RC_OUT_RGB_MUX_SUM (1 << 14) 4766#define NV20TCL_RC_OUT_RGB_MUX_SUM (1 << 14)
4738#define NV20TCL_RC_OUT_RGB_BIAS (1 << 15) 4767#define NV20TCL_RC_OUT_RGB_BIAS (1 << 15)
4739#define NV20TCL_RC_OUT_RGB_BIAS_NONE 0x00000000 4768#define NV20TCL_RC_OUT_RGB_BIAS_NONE 0x00000000
4740#define NV20TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x00008000 4769#define NV20TCL_RC_OUT_RGB_BIAS_BIAS_BY_NEGATIVE_ONE_HALF 0x00008000
4741#define NV20TCL_RC_OUT_RGB_SCALE_SHIFT 17 4770#define NV20TCL_RC_OUT_RGB_SCALE_SHIFT 17
4742#define NV20TCL_RC_OUT_RGB_SCALE_MASK 0x00000000 4771#define NV20TCL_RC_OUT_RGB_SCALE_MASK 0x00000000
4743#define NV20TCL_RC_OUT_RGB_SCALE_NONE 0x00000000 4772#define NV20TCL_RC_OUT_RGB_SCALE_NONE 0x00000000
4744#define NV20TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO_NV 0x00020000 4773#define NV20TCL_RC_OUT_RGB_SCALE_SCALE_BY_TWO 0x00020000
4745#define NV20TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR_NV 0x00040000 4774#define NV20TCL_RC_OUT_RGB_SCALE_SCALE_BY_FOUR 0x00040000
4746#define NV20TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF_NV 0x00060000 4775#define NV20TCL_RC_OUT_RGB_SCALE_SCALE_BY_ONE_HALF 0x00060000
4747#define NV20TCL_RC_ENABLE 0x00001e60 4776#define NV20TCL_RC_ENABLE 0x00001e60
4748#define NV20TCL_RC_ENABLE_NUM_COMBINERS_SHIFT 0 4777#define NV20TCL_RC_ENABLE_NUM_COMBINERS_SHIFT 0
4749#define NV20TCL_RC_ENABLE_NUM_COMBINERS_MASK 0x0000000f 4778#define NV20TCL_RC_ENABLE_NUM_COMBINERS_MASK 0x0000000f
@@ -4840,6 +4869,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4840#define NV17TCL_LMA_DEPTH_BUFFER_OFFSET 0x00000d60 4869#define NV17TCL_LMA_DEPTH_BUFFER_OFFSET 0x00000d60
4841#define NV17TCL_LMA_DEPTH_FILL_VALUE 0x00000d68 4870#define NV17TCL_LMA_DEPTH_FILL_VALUE 0x00000d68
4842#define NV17TCL_LMA_DEPTH_BUFFER_CLEAR 0x00000d6c 4871#define NV17TCL_LMA_DEPTH_BUFFER_CLEAR 0x00000d6c
4872#define NV17TCL_LMA_DEPTH_WINDOW_X 0x00001638
4873#define NV17TCL_LMA_DEPTH_WINDOW_Y 0x0000163c
4874#define NV17TCL_LMA_DEPTH_WINDOW_Z 0x00001640
4875#define NV17TCL_LMA_DEPTH_WINDOW_W 0x00001644
4843#define NV17TCL_LMA_DEPTH_ENABLE 0x00001658 4876#define NV17TCL_LMA_DEPTH_ENABLE 0x00001658
4844 4877
4845 4878
@@ -5285,8 +5318,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5285#define NV34TCL_SCISSOR_VERT_H_MASK 0xffff0000 5318#define NV34TCL_SCISSOR_VERT_H_MASK 0xffff0000
5286#define NV34TCL_FOG_COORD_DIST 0x000008c8 5319#define NV34TCL_FOG_COORD_DIST 0x000008c8
5287#define NV34TCL_FOG_COORD_DIST_COORD_FALSE 0x00000000 5320#define NV34TCL_FOG_COORD_DIST_COORD_FALSE 0x00000000
5288#define NV34TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_RADIAL_NV 0x00000001 5321#define NV34TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_RADIAL 0x00000001
5289#define NV34TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_PLANE_ABSOLUTE_NV 0x00000002 5322#define NV34TCL_FOG_COORD_DIST_COORD_FRAGMENT_DEPTH_DISTANCE_EYE_PLANE_ABSOLUTE 0x00000002
5290#define NV34TCL_FOG_COORD_DIST_COORD_FOG 0x00000003 5323#define NV34TCL_FOG_COORD_DIST_COORD_FOG 0x00000003
5291#define NV34TCL_FOG_MODE 0x000008cc 5324#define NV34TCL_FOG_MODE 0x000008cc
5292#define NV34TCL_FOG_MODE_EXP 0x00000800 5325#define NV34TCL_FOG_MODE_EXP 0x00000800
@@ -5324,208 +5357,208 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5324#define NV34TCL_RC_FINAL0_D_INPUT_SHIFT 0 5357#define NV34TCL_RC_FINAL0_D_INPUT_SHIFT 0
5325#define NV34TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f 5358#define NV34TCL_RC_FINAL0_D_INPUT_MASK 0x0000000f
5326#define NV34TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000 5359#define NV34TCL_RC_FINAL0_D_INPUT_ZERO 0x00000000
5327#define NV34TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0_NV 0x00000001 5360#define NV34TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR0 0x00000001
5328#define NV34TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1_NV 0x00000002 5361#define NV34TCL_RC_FINAL0_D_INPUT_CONSTANT_COLOR1 0x00000002
5329#define NV34TCL_RC_FINAL0_D_INPUT_FOG 0x00000003 5362#define NV34TCL_RC_FINAL0_D_INPUT_FOG 0x00000003
5330#define NV34TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR_NV 0x00000004 5363#define NV34TCL_RC_FINAL0_D_INPUT_PRIMARY_COLOR 0x00000004
5331#define NV34TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR_NV 0x00000005 5364#define NV34TCL_RC_FINAL0_D_INPUT_SECONDARY_COLOR 0x00000005
5332#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE0_ARB 0x00000008 5365#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE0 0x00000008
5333#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE1_ARB 0x00000009 5366#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE1 0x00000009
5334#define NV34TCL_RC_FINAL0_D_INPUT_SPARE0_NV 0x0000000c 5367#define NV34TCL_RC_FINAL0_D_INPUT_SPARE0 0x0000000c
5335#define NV34TCL_RC_FINAL0_D_INPUT_SPARE1_NV 0x0000000d 5368#define NV34TCL_RC_FINAL0_D_INPUT_SPARE1 0x0000000d
5336#define NV34TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x0000000e 5369#define NV34TCL_RC_FINAL0_D_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x0000000e
5337#define NV34TCL_RC_FINAL0_D_INPUT_E_TIMES_F_NV 0x0000000f 5370#define NV34TCL_RC_FINAL0_D_INPUT_E_TIMES_F 0x0000000f
5338#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE2_ARB 0x0000000a 5371#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE2 0x0000000a
5339#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE3_ARB 0x0000000b 5372#define NV34TCL_RC_FINAL0_D_INPUT_TEXTURE3 0x0000000b
5340#define NV34TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4) 5373#define NV34TCL_RC_FINAL0_D_COMPONENT_USAGE (1 << 4)
5341#define NV34TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000 5374#define NV34TCL_RC_FINAL0_D_COMPONENT_USAGE_RGB 0x00000000
5342#define NV34TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010 5375#define NV34TCL_RC_FINAL0_D_COMPONENT_USAGE_ALPHA 0x00000010
5343#define NV34TCL_RC_FINAL0_D_MAPPING_SHIFT 5 5376#define NV34TCL_RC_FINAL0_D_MAPPING_SHIFT 5
5344#define NV34TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0 5377#define NV34TCL_RC_FINAL0_D_MAPPING_MASK 0x000000e0
5345#define NV34TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 5378#define NV34TCL_RC_FINAL0_D_MAPPING_UNSIGNED_IDENTITY 0x00000000
5346#define NV34TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT_NV 0x00000020 5379#define NV34TCL_RC_FINAL0_D_MAPPING_UNSIGNED_INVERT 0x00000020
5347#define NV34TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL_NV 0x00000040 5380#define NV34TCL_RC_FINAL0_D_MAPPING_EXPAND_NORMAL 0x00000040
5348#define NV34TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE_NV 0x00000060 5381#define NV34TCL_RC_FINAL0_D_MAPPING_EXPAND_NEGATE 0x00000060
5349#define NV34TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL_NV 0x00000080 5382#define NV34TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NORMAL 0x00000080
5350#define NV34TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE_NV 0x000000a0 5383#define NV34TCL_RC_FINAL0_D_MAPPING_HALF_BIAS_NEGATE 0x000000a0
5351#define NV34TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY_NV 0x000000c0 5384#define NV34TCL_RC_FINAL0_D_MAPPING_SIGNED_IDENTITY 0x000000c0
5352#define NV34TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE_NV 0x000000e0 5385#define NV34TCL_RC_FINAL0_D_MAPPING_SIGNED_NEGATE 0x000000e0
5353#define NV34TCL_RC_FINAL0_C_INPUT_SHIFT 8 5386#define NV34TCL_RC_FINAL0_C_INPUT_SHIFT 8
5354#define NV34TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00 5387#define NV34TCL_RC_FINAL0_C_INPUT_MASK 0x00000f00
5355#define NV34TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000 5388#define NV34TCL_RC_FINAL0_C_INPUT_ZERO 0x00000000
5356#define NV34TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0_NV 0x00000100 5389#define NV34TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR0 0x00000100
5357#define NV34TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1_NV 0x00000200 5390#define NV34TCL_RC_FINAL0_C_INPUT_CONSTANT_COLOR1 0x00000200
5358#define NV34TCL_RC_FINAL0_C_INPUT_FOG 0x00000300 5391#define NV34TCL_RC_FINAL0_C_INPUT_FOG 0x00000300
5359#define NV34TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR_NV 0x00000400 5392#define NV34TCL_RC_FINAL0_C_INPUT_PRIMARY_COLOR 0x00000400
5360#define NV34TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR_NV 0x00000500 5393#define NV34TCL_RC_FINAL0_C_INPUT_SECONDARY_COLOR 0x00000500
5361#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE0_ARB 0x00000800 5394#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE0 0x00000800
5362#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE1_ARB 0x00000900 5395#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE1 0x00000900
5363#define NV34TCL_RC_FINAL0_C_INPUT_SPARE0_NV 0x00000c00 5396#define NV34TCL_RC_FINAL0_C_INPUT_SPARE0 0x00000c00
5364#define NV34TCL_RC_FINAL0_C_INPUT_SPARE1_NV 0x00000d00 5397#define NV34TCL_RC_FINAL0_C_INPUT_SPARE1 0x00000d00
5365#define NV34TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x00000e00 5398#define NV34TCL_RC_FINAL0_C_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x00000e00
5366#define NV34TCL_RC_FINAL0_C_INPUT_E_TIMES_F_NV 0x00000f00 5399#define NV34TCL_RC_FINAL0_C_INPUT_E_TIMES_F 0x00000f00
5367#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE2_ARB 0x00000a00 5400#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE2 0x00000a00
5368#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE3_ARB 0x00000b00 5401#define NV34TCL_RC_FINAL0_C_INPUT_TEXTURE3 0x00000b00
5369#define NV34TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12) 5402#define NV34TCL_RC_FINAL0_C_COMPONENT_USAGE (1 << 12)
5370#define NV34TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000 5403#define NV34TCL_RC_FINAL0_C_COMPONENT_USAGE_RGB 0x00000000
5371#define NV34TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000 5404#define NV34TCL_RC_FINAL0_C_COMPONENT_USAGE_ALPHA 0x00001000
5372#define NV34TCL_RC_FINAL0_C_MAPPING_SHIFT 13 5405#define NV34TCL_RC_FINAL0_C_MAPPING_SHIFT 13
5373#define NV34TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000 5406#define NV34TCL_RC_FINAL0_C_MAPPING_MASK 0x0000e000
5374#define NV34TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY_NV 0x00000000 5407#define NV34TCL_RC_FINAL0_C_MAPPING_UNSIGNED_IDENTITY 0x00000000
5375#define NV34TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT_NV 0x00002000 5408#define NV34TCL_RC_FINAL0_C_MAPPING_UNSIGNED_INVERT 0x00002000
5376#define NV34TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL_NV 0x00004000 5409#define NV34TCL_RC_FINAL0_C_MAPPING_EXPAND_NORMAL 0x00004000
5377#define NV34TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE_NV 0x00006000 5410#define NV34TCL_RC_FINAL0_C_MAPPING_EXPAND_NEGATE 0x00006000
5378#define NV34TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL_NV 0x00008000 5411#define NV34TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NORMAL 0x00008000
5379#define NV34TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE_NV 0x0000a000 5412#define NV34TCL_RC_FINAL0_C_MAPPING_HALF_BIAS_NEGATE 0x0000a000
5380#define NV34TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY_NV 0x0000c000 5413#define NV34TCL_RC_FINAL0_C_MAPPING_SIGNED_IDENTITY 0x0000c000
5381#define NV34TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE_NV 0x0000e000 5414#define NV34TCL_RC_FINAL0_C_MAPPING_SIGNED_NEGATE 0x0000e000
5382#define NV34TCL_RC_FINAL0_B_INPUT_SHIFT 16 5415#define NV34TCL_RC_FINAL0_B_INPUT_SHIFT 16
5383#define NV34TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000 5416#define NV34TCL_RC_FINAL0_B_INPUT_MASK 0x000f0000
5384#define NV34TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000 5417#define NV34TCL_RC_FINAL0_B_INPUT_ZERO 0x00000000
5385#define NV34TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0_NV 0x00010000 5418#define NV34TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR0 0x00010000
5386#define NV34TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1_NV 0x00020000 5419#define NV34TCL_RC_FINAL0_B_INPUT_CONSTANT_COLOR1 0x00020000
5387#define NV34TCL_RC_FINAL0_B_INPUT_FOG 0x00030000 5420#define NV34TCL_RC_FINAL0_B_INPUT_FOG 0x00030000
5388#define NV34TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR_NV 0x00040000 5421#define NV34TCL_RC_FINAL0_B_INPUT_PRIMARY_COLOR 0x00040000
5389#define NV34TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR_NV 0x00050000 5422#define NV34TCL_RC_FINAL0_B_INPUT_SECONDARY_COLOR 0x00050000
5390#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE0_ARB 0x00080000 5423#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE0 0x00080000
5391#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE1_ARB 0x00090000 5424#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE1 0x00090000
5392#define NV34TCL_RC_FINAL0_B_INPUT_SPARE0_NV 0x000c0000 5425#define NV34TCL_RC_FINAL0_B_INPUT_SPARE0 0x000c0000
5393#define NV34TCL_RC_FINAL0_B_INPUT_SPARE1_NV 0x000d0000 5426#define NV34TCL_RC_FINAL0_B_INPUT_SPARE1 0x000d0000
5394#define NV34TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR_NV 0x000e0000 5427#define NV34TCL_RC_FINAL0_B_INPUT_SPARE0_PLUS_SECONDARY_COLOR 0x000e0000
5395#define NV34TCL_RC_FINAL0_B_INPUT_E_TIMES_F_NV 0x000f0000 5428#define NV34TCL_RC_FINAL0_B_INPUT_E_TIMES_F 0x000f0000
5396#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE2_ARB 0x000a0000 5429#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE2 0x000a0000
5397#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE3_ARB 0x000b0000 5430#define NV34TCL_RC_FINAL0_B_INPUT_TEXTURE3 0x000b0000