diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r600d.h')
-rw-r--r-- | drivers/gpu/drm/radeon/r600d.h | 467 |
1 files changed, 466 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600d.h b/drivers/gpu/drm/radeon/r600d.h index 30480881aed1..5b2e4d442823 100644 --- a/drivers/gpu/drm/radeon/r600d.h +++ b/drivers/gpu/drm/radeon/r600d.h | |||
@@ -883,6 +883,16 @@ | |||
883 | 883 | ||
884 | #define R_005480_HDP_MEM_COHERENCY_FLUSH_CNTL 0x5480 | 884 | #define R_005480_HDP_MEM_COHERENCY_FLUSH_CNTL 0x5480 |
885 | 885 | ||
886 | #define R_028C04_PA_SC_AA_CONFIG 0x028C04 | ||
887 | #define S_028C04_MSAA_NUM_SAMPLES(x) (((x) & 0x3) << 0) | ||
888 | #define G_028C04_MSAA_NUM_SAMPLES(x) (((x) >> 0) & 0x3) | ||
889 | #define C_028C04_MSAA_NUM_SAMPLES 0xFFFFFFFC | ||
890 | #define S_028C04_AA_MASK_CENTROID_DTMN(x) (((x) & 0x1) << 4) | ||
891 | #define G_028C04_AA_MASK_CENTROID_DTMN(x) (((x) >> 4) & 0x1) | ||
892 | #define C_028C04_AA_MASK_CENTROID_DTMN 0xFFFFFFEF | ||
893 | #define S_028C04_MAX_SAMPLE_DIST(x) (((x) & 0xF) << 13) | ||
894 | #define G_028C04_MAX_SAMPLE_DIST(x) (((x) >> 13) & 0xF) | ||
895 | #define C_028C04_MAX_SAMPLE_DIST 0xFFFE1FFF | ||
886 | #define R_0280E0_CB_COLOR0_FRAG 0x0280E0 | 896 | #define R_0280E0_CB_COLOR0_FRAG 0x0280E0 |
887 | #define S_0280E0_BASE_256B(x) (((x) & 0xFFFFFFFF) << 0) | 897 | #define S_0280E0_BASE_256B(x) (((x) & 0xFFFFFFFF) << 0) |
888 | #define G_0280E0_BASE_256B(x) (((x) >> 0) & 0xFFFFFFFF) | 898 | #define G_0280E0_BASE_256B(x) (((x) >> 0) & 0xFFFFFFFF) |
@@ -905,6 +915,461 @@ | |||
905 | #define R_0280D4_CB_COLOR5_TILE 0x0280D4 | 915 | #define R_0280D4_CB_COLOR5_TILE 0x0280D4 |
906 | #define R_0280D8_CB_COLOR6_TILE 0x0280D8 | 916 | #define R_0280D8_CB_COLOR6_TILE 0x0280D8 |
907 | #define R_0280DC_CB_COLOR7_TILE 0x0280DC | 917 | #define R_0280DC_CB_COLOR7_TILE 0x0280DC |
908 | 918 | #define R_0280A0_CB_COLOR0_INFO 0x0280A0 | |
919 | #define S_0280A0_ENDIAN(x) (((x) & 0x3) << 0) | ||
920 | #define G_0280A0_ENDIAN(x) (((x) >> 0) & 0x3) | ||
921 | #define C_0280A0_ENDIAN 0xFFFFFFFC | ||
922 | #define S_0280A0_FORMAT(x) (((x) & 0x3F) << 2) | ||
923 | #define G_0280A0_FORMAT(x) (((x) >> 2) & 0x3F) | ||
924 | #define C_0280A0_FORMAT 0xFFFFFF03 | ||
925 | #define V_0280A0_COLOR_INVALID 0x00000000 | ||
926 | #define V_0280A0_COLOR_8 0x00000001 | ||
927 | #define V_0280A0_COLOR_4_4 0x00000002 | ||
928 | #define V_0280A0_COLOR_3_3_2 0x00000003 | ||
929 | #define V_0280A0_COLOR_16 0x00000005 | ||
930 | #define V_0280A0_COLOR_16_FLOAT 0x00000006 | ||
931 | #define V_0280A0_COLOR_8_8 0x00000007 | ||
932 | #define V_0280A0_COLOR_5_6_5 0x00000008 | ||
933 | #define V_0280A0_COLOR_6_5_5 0x00000009 | ||
934 | #define V_0280A0_COLOR_1_5_5_5 0x0000000A | ||
935 | #define V_0280A0_COLOR_4_4_4_4 0x0000000B | ||
936 | #define V_0280A0_COLOR_5_5_5_1 0x0000000C | ||
937 | #define V_0280A0_COLOR_32 0x0000000D | ||
938 | #define V_0280A0_COLOR_32_FLOAT 0x0000000E | ||
939 | #define V_0280A0_COLOR_16_16 0x0000000F | ||
940 | #define V_0280A0_COLOR_16_16_FLOAT 0x00000010 | ||
941 | #define V_0280A0_COLOR_8_24 0x00000011 | ||
942 | #define V_0280A0_COLOR_8_24_FLOAT 0x00000012 | ||
943 | #define V_0280A0_COLOR_24_8 0x00000013 | ||
944 | #define V_0280A0_COLOR_24_8_FLOAT 0x00000014 | ||
945 | #define V_0280A0_COLOR_10_11_11 0x00000015 | ||
946 | #define V_0280A0_COLOR_10_11_11_FLOAT 0x00000016 | ||
947 | #define V_0280A0_COLOR_11_11_10 0x00000017 | ||
948 | #define V_0280A0_COLOR_11_11_10_FLOAT 0x00000018 | ||
949 | #define V_0280A0_COLOR_2_10_10_10 0x00000019 | ||
950 | #define V_0280A0_COLOR_8_8_8_8 0x0000001A | ||
951 | #define V_0280A0_COLOR_10_10_10_2 0x0000001B | ||
952 | #define V_0280A0_COLOR_X24_8_32_FLOAT 0x0000001C | ||
953 | #define V_0280A0_COLOR_32_32 0x0000001D | ||
954 | #define V_0280A0_COLOR_32_32_FLOAT 0x0000001E | ||
955 | #define V_0280A0_COLOR_16_16_16_16 0x0000001F | ||
956 | #define V_0280A0_COLOR_16_16_16_16_FLOAT 0x00000020 | ||
957 | #define V_0280A0_COLOR_32_32_32_32 0x00000022 | ||
958 | #define V_0280A0_COLOR_32_32_32_32_FLOAT 0x00000023 | ||
959 | #define S_0280A0_ARRAY_MODE(x) (((x) & 0xF) << 8) | ||
960 | #define G_0280A0_ARRAY_MODE(x) (((x) >> 8) & 0xF) | ||
961 | #define C_0280A0_ARRAY_MODE 0xFFFFF0FF | ||
962 | #define V_0280A0_ARRAY_LINEAR_GENERAL 0x00000000 | ||
963 | #define V_0280A0_ARRAY_LINEAR_ALIGNED 0x00000001 | ||
964 | #define V_0280A0_ARRAY_1D_TILED_THIN1 0x00000002 | ||
965 | #define V_0280A0_ARRAY_2D_TILED_THIN1 0x00000004 | ||
966 | #define S_0280A0_NUMBER_TYPE(x) (((x) & 0x7) << 12) | ||
967 | #define G_0280A0_NUMBER_TYPE(x) (((x) >> 12) & 0x7) | ||
968 | #define C_0280A0_NUMBER_TYPE 0xFFFF8FFF | ||
969 | #define S_0280A0_READ_SIZE(x) (((x) & 0x1) << 15) | ||
970 | #define G_0280A0_READ_SIZE(x) (((x) >> 15) & 0x1) | ||
971 | #define C_0280A0_READ_SIZE 0xFFFF7FFF | ||
972 | #define S_0280A0_COMP_SWAP(x) (((x) & 0x3) << 16) | ||
973 | #define G_0280A0_COMP_SWAP(x) (((x) >> 16) & 0x3) | ||
974 | #define C_0280A0_COMP_SWAP 0xFFFCFFFF | ||
975 | #define S_0280A0_TILE_MODE(x) (((x) & 0x3) << 18) | ||
976 | #define G_0280A0_TILE_MODE(x) (((x) >> 18) & 0x3) | ||
977 | #define C_0280A0_TILE_MODE 0xFFF3FFFF | ||
978 | #define S_0280A0_BLEND_CLAMP(x) (((x) & 0x1) << 20) | ||
979 | #define G_0280A0_BLEND_CLAMP(x) (((x) >> 20) & 0x1) | ||
980 | #define C_0280A0_BLEND_CLAMP 0xFFEFFFFF | ||
981 | #define S_0280A0_CLEAR_COLOR(x) (((x) & 0x1) << 21) | ||
982 | #define G_0280A0_CLEAR_COLOR(x) (((x) >> 21) & 0x1) | ||
983 | #define C_0280A0_CLEAR_COLOR 0xFFDFFFFF | ||
984 | #define S_0280A0_BLEND_BYPASS(x) (((x) & 0x1) << 22) | ||
985 | #define G_0280A0_BLEND_BYPASS(x) (((x) >> 22) & 0x1) | ||
986 | #define C_0280A0_BLEND_BYPASS 0xFFBFFFFF | ||
987 | #define S_0280A0_BLEND_FLOAT32(x) (((x) & 0x1) << 23) | ||
988 | #define G_0280A0_BLEND_FLOAT32(x) (((x) >> 23) & 0x1) | ||
989 | #define C_0280A0_BLEND_FLOAT32 0xFF7FFFFF | ||
990 | #define S_0280A0_SIMPLE_FLOAT(x) (((x) & 0x1) << 24) | ||
991 | #define G_0280A0_SIMPLE_FLOAT(x) (((x) >> 24) & 0x1) | ||
992 | #define C_0280A0_SIMPLE_FLOAT 0xFEFFFFFF | ||
993 | #define S_0280A0_ROUND_MODE(x) (((x) & 0x1) << 25) | ||
994 | #define G_0280A0_ROUND_MODE(x) (((x) >> 25) & 0x1) | ||
995 | #define C_0280A0_ROUND_MODE 0xFDFFFFFF | ||
996 | #define S_0280A0_TILE_COMPACT(x) (((x) & 0x1) << 26) | ||
997 | #define G_0280A0_TILE_COMPACT(x) (((x) >> 26) & 0x1) | ||
998 | #define C_0280A0_TILE_COMPACT 0xFBFFFFFF | ||
999 | #define S_0280A0_SOURCE_FORMAT(x) (((x) & 0x1) << 27) | ||
1000 | #define G_0280A0_SOURCE_FORMAT(x) (((x) >> 27) & 0x1) | ||
1001 | #define C_0280A0_SOURCE_FORMAT 0xF7FFFFFF | ||
1002 | #define R_0280A4_CB_COLOR1_INFO 0x0280A4 | ||
1003 | #define R_0280A8_CB_COLOR2_INFO 0x0280A8 | ||
1004 | #define R_0280AC_CB_COLOR3_INFO 0x0280AC | ||
1005 | #define R_0280B0_CB_COLOR4_INFO 0x0280B0 | ||
1006 | #define R_0280B4_CB_COLOR5_INFO 0x0280B4 | ||
1007 | #define R_0280B8_CB_COLOR6_INFO 0x0280B8 | ||
1008 | #define R_0280BC_CB_COLOR7_INFO 0x0280BC | ||
1009 | #define R_028060_CB_COLOR0_SIZE 0x028060 | ||
1010 | #define S_028060_PITCH_TILE_MAX(x) (((x) & 0x3FF) << 0) | ||
1011 | #define G_028060_PITCH_TILE_MAX(x) (((x) >> 0) & 0x3FF) | ||
1012 | #define C_028060_PITCH_TILE_MAX 0xFFFFFC00 | ||
1013 | #define S_028060_SLICE_TILE_MAX(x) (((x) & 0xFFFFF) << 10) | ||
1014 | #define G_028060_SLICE_TILE_MAX(x) (((x) >> 10) & 0xFFFFF) | ||
1015 | #define C_028060_SLICE_TILE_MAX 0xC00003FF | ||
1016 | #define R_028064_CB_COLOR1_SIZE 0x028064 | ||
1017 | #define R_028068_CB_COLOR2_SIZE 0x028068 | ||
1018 | #define R_02806C_CB_COLOR3_SIZE 0x02806C | ||
1019 | #define R_028070_CB_COLOR4_SIZE 0x028070 | ||
1020 | #define R_028074_CB_COLOR5_SIZE 0x028074 | ||
1021 | #define R_028078_CB_COLOR6_SIZE 0x028078 | ||
1022 | #define R_02807C_CB_COLOR7_SIZE 0x02807C | ||
1023 | #define R_028238_CB_TARGET_MASK 0x028238 | ||
1024 | #define S_028238_TARGET0_ENABLE(x) (((x) & 0xF) << 0) | ||
1025 | #define G_028238_TARGET0_ENABLE(x) (((x) >> 0) & 0xF) | ||
1026 | #define C_028238_TARGET0_ENABLE 0xFFFFFFF0 | ||
1027 | #define S_028238_TARGET1_ENABLE(x) (((x) & 0xF) << 4) | ||
1028 | #define G_028238_TARGET1_ENABLE(x) (((x) >> 4) & 0xF) | ||
1029 | #define C_028238_TARGET1_ENABLE 0xFFFFFF0F | ||
1030 | #define S_028238_TARGET2_ENABLE(x) (((x) & 0xF) << 8) | ||
1031 | #define G_028238_TARGET2_ENABLE(x) (((x) >> 8) & 0xF) | ||
1032 | #define C_028238_TARGET2_ENABLE 0xFFFFF0FF | ||
1033 | #define S_028238_TARGET3_ENABLE(x) (((x) & 0xF) << 12) | ||
1034 | #define G_028238_TARGET3_ENABLE(x) (((x) >> 12) & 0xF) | ||
1035 | #define C_028238_TARGET3_ENABLE 0xFFFF0FFF | ||
1036 | #define S_028238_TARGET4_ENABLE(x) (((x) & 0xF) << 16) | ||
1037 | #define G_028238_TARGET4_ENABLE(x) (((x) >> 16) & 0xF) | ||
1038 | #define C_028238_TARGET4_ENABLE 0xFFF0FFFF | ||
1039 | #define S_028238_TARGET5_ENABLE(x) (((x) & 0xF) << 20) | ||
1040 | #define G_028238_TARGET5_ENABLE(x) (((x) >> 20) & 0xF) | ||
1041 | #define C_028238_TARGET5_ENABLE 0xFF0FFFFF | ||
1042 | #define S_028238_TARGET6_ENABLE(x) (((x) & 0xF) << 24) | ||
1043 | #define G_028238_TARGET6_ENABLE(x) (((x) >> 24) & 0xF) | ||
1044 | #define C_028238_TARGET6_ENABLE 0xF0FFFFFF | ||
1045 | #define S_028238_TARGET7_ENABLE(x) (((x) & 0xF) << 28) | ||
1046 | #define G_028238_TARGET7_ENABLE(x) (((x) >> 28) & 0xF) | ||
1047 | #define C_028238_TARGET7_ENABLE 0x0FFFFFFF | ||
1048 | #define R_02823C_CB_SHADER_MASK 0x02823C | ||
1049 | #define S_02823C_OUTPUT0_ENABLE(x) (((x) & 0xF) << 0) | ||
1050 | #define G_02823C_OUTPUT0_ENABLE(x) (((x) >> 0) & 0xF) | ||
1051 | #define C_02823C_OUTPUT0_ENABLE 0xFFFFFFF0 | ||
1052 | #define S_02823C_OUTPUT1_ENABLE(x) (((x) & 0xF) << 4) | ||
1053 | #define G_02823C_OUTPUT1_ENABLE(x) (((x) >> 4) & 0xF) | ||
1054 | #define C_02823C_OUTPUT1_ENABLE 0xFFFFFF0F | ||
1055 | #define S_02823C_OUTPUT2_ENABLE(x) (((x) & 0xF) << 8) | ||
1056 | #define G_02823C_OUTPUT2_ENABLE(x) (((x) >> 8) & 0xF) | ||
1057 | #define C_02823C_OUTPUT2_ENABLE 0xFFFFF0FF | ||
1058 | #define S_02823C_OUTPUT3_ENABLE(x) (((x) & 0xF) << 12) | ||
1059 | #define G_02823C_OUTPUT3_ENABLE(x) (((x) >> 12) & 0xF) | ||
1060 | #define C_02823C_OUTPUT3_ENABLE 0xFFFF0FFF | ||
1061 | #define S_02823C_OUTPUT4_ENABLE(x) (((x) & 0xF) << 16) | ||
1062 | #define G_02823C_OUTPUT4_ENABLE(x) (((x) >> 16) & 0xF) | ||
1063 | #define C_02823C_OUTPUT4_ENABLE 0xFFF0FFFF | ||
1064 | #define S_02823C_OUTPUT5_ENABLE(x) (((x) & 0xF) << 20) | ||
1065 | #define G_02823C_OUTPUT5_ENABLE(x) (((x) >> 20) & 0xF) | ||
1066 | #define C_02823C_OUTPUT5_ENABLE 0xFF0FFFFF | ||
1067 | #define S_02823C_OUTPUT6_ENABLE(x) (((x) & 0xF) << 24) | ||
1068 | #define G_02823C_OUTPUT6_ENABLE(x) (((x) >> 24) & 0xF) | ||
1069 | #define C_02823C_OUTPUT6_ENABLE 0xF0FFFFFF | ||
1070 | #define S_02823C_OUTPUT7_ENABLE(x) (((x) & 0xF) << 28) | ||
1071 | #define G_02823C_OUTPUT7_ENABLE(x) (((x) >> 28) & 0xF) | ||
1072 | #define C_02823C_OUTPUT7_ENABLE 0x0FFFFFFF | ||
1073 | #define R_028AB0_VGT_STRMOUT_EN 0x028AB0 | ||
1074 | #define S_028AB0_STREAMOUT(x) (((x) & 0x1) << 0) | ||
1075 | #define G_028AB0_STREAMOUT(x) (((x) >> 0) & 0x1) | ||
1076 | #define C_028AB0_STREAMOUT 0xFFFFFFFE | ||
1077 | #define R_028B20_VGT_STRMOUT_BUFFER_EN 0x028B20 | ||
1078 | #define S_028B20_BUFFER_0_EN(x) (((x) & 0x1) << 0) | ||
1079 | #define G_028B20_BUFFER_0_EN(x) (((x) >> 0) & 0x1) | ||
1080 | #define C_028B20_BUFFER_0_EN 0xFFFFFFFE | ||
1081 | #define S_028B20_BUFFER_1_EN(x) (((x) & 0x1) << 1) | ||
1082 | #define G_028B20_BUFFER_1_EN(x) (((x) >> 1) & 0x1) | ||
1083 | #define C_028B20_BUFFER_1_EN 0xFFFFFFFD | ||
1084 | #define S_028B20_BUFFER_2_EN(x) (((x) & 0x1) << 2) | ||
1085 | #define G_028B20_BUFFER_2_EN(x) (((x) >> 2) & 0x1) | ||
1086 | #define C_028B20_BUFFER_2_EN 0xFFFFFFFB | ||
1087 | #define S_028B20_BUFFER_3_EN(x) (((x) & 0x1) << 3) | ||
1088 | #define G_028B20_BUFFER_3_EN(x) (((x) >> 3) & 0x1) | ||
1089 | #define C_028B20_BUFFER_3_EN 0xFFFFFFF7 | ||
1090 | #define S_028B20_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1091 | #define G_028B20_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1092 | #define C_028B20_SIZE 0x00000000 | ||
1093 | #define R_038000_SQ_TEX_RESOURCE_WORD0_0 0x038000 | ||
1094 | #define S_038000_DIM(x) (((x) & 0x7) << 0) | ||
1095 | #define G_038000_DIM(x) (((x) >> 0) & 0x7) | ||
1096 | #define C_038000_DIM 0xFFFFFFF8 | ||
1097 | #define V_038000_SQ_TEX_DIM_1D 0x00000000 | ||
1098 | #define V_038000_SQ_TEX_DIM_2D 0x00000001 | ||
1099 | #define V_038000_SQ_TEX_DIM_3D 0x00000002 | ||
1100 | #define V_038000_SQ_TEX_DIM_CUBEMAP 0x00000003 | ||
1101 | #define V_038000_SQ_TEX_DIM_1D_ARRAY 0x00000004 | ||
1102 | #define V_038000_SQ_TEX_DIM_2D_ARRAY 0x00000005 | ||
1103 | #define V_038000_SQ_TEX_DIM_2D_MSAA 0x00000006 | ||
1104 | #define V_038000_SQ_TEX_DIM_2D_ARRAY_MSAA 0x00000007 | ||
1105 | #define S_038000_TILE_MODE(x) (((x) & 0xF) << 3) | ||
1106 | #define G_038000_TILE_MODE(x) (((x) >> 3) & 0xF) | ||
1107 | #define C_038000_TILE_MODE 0xFFFFFF87 | ||
1108 | #define S_038000_TILE_TYPE(x) (((x) & 0x1) << 7) | ||
1109 | #define G_038000_TILE_TYPE(x) (((x) >> 7) & 0x1) | ||
1110 | #define C_038000_TILE_TYPE 0xFFFFFF7F | ||
1111 | #define S_038000_PITCH(x) (((x) & 0x7FF) << 8) | ||
1112 | #define G_038000_PITCH(x) (((x) >> 8) & 0x7FF) | ||
1113 | #define C_038000_PITCH 0xFFF800FF | ||
1114 | #define S_038000_TEX_WIDTH(x) (((x) & 0x1FFF) << 19) | ||
1115 | #define G_038000_TEX_WIDTH(x) (((x) >> 19) & 0x1FFF) | ||
1116 | #define C_038000_TEX_WIDTH 0x0007FFFF | ||
1117 | #define R_038004_SQ_TEX_RESOURCE_WORD1_0 0x038004 | ||
1118 | #define S_038004_TEX_HEIGHT(x) (((x) & 0x1FFF) << 0) | ||
1119 | #define G_038004_TEX_HEIGHT(x) (((x) >> 0) & 0x1FFF) | ||
1120 | #define C_038004_TEX_HEIGHT 0xFFFFE000 | ||
1121 | #define S_038004_TEX_DEPTH(x) (((x) & 0x1FFF) << 13) | ||
1122 | #define G_038004_TEX_DEPTH(x) (((x) >> 13) & 0x1FFF) | ||
1123 | #define C_038004_TEX_DEPTH 0xFC001FFF | ||
1124 | #define S_038004_DATA_FORMAT(x) (((x) & 0x3F) << 26) | ||
1125 | #define G_038004_DATA_FORMAT(x) (((x) >> 26) & 0x3F) | ||
1126 | #define C_038004_DATA_FORMAT 0x03FFFFFF | ||
1127 | #define V_038004_COLOR_INVALID 0x00000000 | ||
1128 | #define V_038004_COLOR_8 0x00000001 | ||
1129 | #define V_038004_COLOR_4_4 0x00000002 | ||
1130 | #define V_038004_COLOR_3_3_2 0x00000003 | ||
1131 | #define V_038004_COLOR_16 0x00000005 | ||
1132 | #define V_038004_COLOR_16_FLOAT 0x00000006 | ||
1133 | #define V_038004_COLOR_8_8 0x00000007 | ||
1134 | #define V_038004_COLOR_5_6_5 0x00000008 | ||
1135 | #define V_038004_COLOR_6_5_5 0x00000009 | ||
1136 | #define V_038004_COLOR_1_5_5_5 0x0000000A | ||
1137 | #define V_038004_COLOR_4_4_4_4 0x0000000B | ||
1138 | #define V_038004_COLOR_5_5_5_1 0x0000000C | ||
1139 | #define V_038004_COLOR_32 0x0000000D | ||
1140 | #define V_038004_COLOR_32_FLOAT 0x0000000E | ||
1141 | #define V_038004_COLOR_16_16 0x0000000F | ||
1142 | #define V_038004_COLOR_16_16_FLOAT 0x00000010 | ||
1143 | #define V_038004_COLOR_8_24 0x00000011 | ||
1144 | #define V_038004_COLOR_8_24_FLOAT 0x00000012 | ||
1145 | #define V_038004_COLOR_24_8 0x00000013 | ||
1146 | #define V_038004_COLOR_24_8_FLOAT 0x00000014 | ||
1147 | #define V_038004_COLOR_10_11_11 0x00000015 | ||
1148 | #define V_038004_COLOR_10_11_11_FLOAT 0x00000016 | ||
1149 | #define V_038004_COLOR_11_11_10 0x00000017 | ||
1150 | #define V_038004_COLOR_11_11_10_FLOAT 0x00000018 | ||
1151 | #define V_038004_COLOR_2_10_10_10 0x00000019 | ||
1152 | #define V_038004_COLOR_8_8_8_8 0x0000001A | ||
1153 | #define V_038004_COLOR_10_10_10_2 0x0000001B | ||
1154 | #define V_038004_COLOR_X24_8_32_FLOAT 0x0000001C | ||
1155 | #define V_038004_COLOR_32_32 0x0000001D | ||
1156 | #define V_038004_COLOR_32_32_FLOAT 0x0000001E | ||
1157 | #define V_038004_COLOR_16_16_16_16 0x0000001F | ||
1158 | #define V_038004_COLOR_16_16_16_16_FLOAT 0x00000020 | ||
1159 | #define V_038004_COLOR_32_32_32_32 0x00000022 | ||
1160 | #define V_038004_COLOR_32_32_32_32_FLOAT 0x00000023 | ||
1161 | #define V_038004_FMT_1 0x00000025 | ||
1162 | #define V_038004_FMT_GB_GR 0x00000027 | ||
1163 | #define V_038004_FMT_BG_RG 0x00000028 | ||
1164 | #define V_038004_FMT_32_AS_8 0x00000029 | ||
1165 | #define V_038004_FMT_32_AS_8_8 0x0000002A | ||
1166 | #define V_038004_FMT_5_9_9_9_SHAREDEXP 0x0000002B | ||
1167 | #define V_038004_FMT_8_8_8 0x0000002C | ||
1168 | #define V_038004_FMT_16_16_16 0x0000002D | ||
1169 | #define V_038004_FMT_16_16_16_FLOAT 0x0000002E | ||
1170 | #define V_038004_FMT_32_32_32 0x0000002F | ||
1171 | #define V_038004_FMT_32_32_32_FLOAT 0x00000030 | ||
1172 | #define R_038010_SQ_TEX_RESOURCE_WORD4_0 0x038010 | ||
1173 | #define S_038010_FORMAT_COMP_X(x) (((x) & 0x3) << 0) | ||
1174 | #define G_038010_FORMAT_COMP_X(x) (((x) >> 0) & 0x3) | ||
1175 | #define C_038010_FORMAT_COMP_X 0xFFFFFFFC | ||
1176 | #define S_038010_FORMAT_COMP_Y(x) (((x) & 0x3) << 2) | ||
1177 | #define G_038010_FORMAT_COMP_Y(x) (((x) >> 2) & 0x3) | ||
1178 | #define C_038010_FORMAT_COMP_Y 0xFFFFFFF3 | ||
1179 | #define S_038010_FORMAT_COMP_Z(x) (((x) & 0x3) << 4) | ||
1180 | #define G_038010_FORMAT_COMP_Z(x) (((x) >> 4) & 0x3) | ||
1181 | #define C_038010_FORMAT_COMP_Z 0xFFFFFFCF | ||
1182 | #define S_038010_FORMAT_COMP_W(x) (((x) & 0x3) << 6) | ||
1183 | #define G_038010_FORMAT_COMP_W(x) (((x) >> 6) & 0x3) | ||
1184 | #define C_038010_FORMAT_COMP_W 0xFFFFFF3F | ||
1185 | #define S_038010_NUM_FORMAT_ALL(x) (((x) & 0x3) << 8) | ||
1186 | #define G_038010_NUM_FORMAT_ALL(x) (((x) >> 8) & 0x3) | ||
1187 | #define C_038010_NUM_FORMAT_ALL 0xFFFFFCFF | ||
1188 | #define S_038010_SRF_MODE_ALL(x) (((x) & 0x1) << 10) | ||
1189 | #define G_038010_SRF_MODE_ALL(x) (((x) >> 10) & 0x1) | ||
1190 | #define C_038010_SRF_MODE_ALL 0xFFFFFBFF | ||
1191 | #define S_038010_FORCE_DEGAMMA(x) (((x) & 0x1) << 11) | ||
1192 | #define G_038010_FORCE_DEGAMMA(x) (((x) >> 11) & 0x1) | ||
1193 | #define C_038010_FORCE_DEGAMMA 0xFFFFF7FF | ||
1194 | #define S_038010_ENDIAN_SWAP(x) (((x) & 0x3) << 12) | ||
1195 | #define G_038010_ENDIAN_SWAP(x) (((x) >> 12) & 0x3) | ||
1196 | #define C_038010_ENDIAN_SWAP 0xFFFFCFFF | ||
1197 | #define S_038010_REQUEST_SIZE(x) (((x) & 0x3) << 14) | ||
1198 | #define G_038010_REQUEST_SIZE(x) (((x) >> 14) & 0x3) | ||
1199 | #define C_038010_REQUEST_SIZE 0xFFFF3FFF | ||
1200 | #define S_038010_DST_SEL_X(x) (((x) & 0x7) << 16) | ||
1201 | #define G_038010_DST_SEL_X(x) (((x) >> 16) & 0x7) | ||
1202 | #define C_038010_DST_SEL_X 0xFFF8FFFF | ||
1203 | #define S_038010_DST_SEL_Y(x) (((x) & 0x7) << 19) | ||
1204 | #define G_038010_DST_SEL_Y(x) (((x) >> 19) & 0x7) | ||
1205 | #define C_038010_DST_SEL_Y 0xFFC7FFFF | ||
1206 | #define S_038010_DST_SEL_Z(x) (((x) & 0x7) << 22) | ||
1207 | #define G_038010_DST_SEL_Z(x) (((x) >> 22) & 0x7) | ||
1208 | #define C_038010_DST_SEL_Z 0xFE3FFFFF | ||
1209 | #define S_038010_DST_SEL_W(x) (((x) & 0x7) << 25) | ||
1210 | #define G_038010_DST_SEL_W(x) (((x) >> 25) & 0x7) | ||
1211 | #define C_038010_DST_SEL_W 0xF1FFFFFF | ||
1212 | #define S_038010_BASE_LEVEL(x) (((x) & 0xF) << 28) | ||
1213 | #define G_038010_BASE_LEVEL(x) (((x) >> 28) & 0xF) | ||
1214 | #define C_038010_BASE_LEVEL 0x0FFFFFFF | ||
1215 | #define R_038014_SQ_TEX_RESOURCE_WORD5_0 0x038014 | ||
1216 | #define S_038014_LAST_LEVEL(x) (((x) & 0xF) << 0) | ||
1217 | #define G_038014_LAST_LEVEL(x) (((x) >> 0) & 0xF) | ||
1218 | #define C_038014_LAST_LEVEL 0xFFFFFFF0 | ||
1219 | #define S_038014_BASE_ARRAY(x) (((x) & 0x1FFF) << 4) | ||
1220 | #define G_038014_BASE_ARRAY(x) (((x) >> 4) & 0x1FFF) | ||
1221 | #define C_038014_BASE_ARRAY 0xFFFE000F | ||
1222 | #define S_038014_LAST_ARRAY(x) (((x) & 0x1FFF) << 17) | ||
1223 | #define G_038014_LAST_ARRAY(x) (((x) >> 17) & 0x1FFF) | ||
1224 | #define C_038014_LAST_ARRAY 0xC001FFFF | ||
1225 | #define R_0288A8_SQ_ESGS_RING_ITEMSIZE 0x0288A8 | ||
1226 | #define S_0288A8_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1227 | #define G_0288A8_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1228 | #define C_0288A8_ITEMSIZE 0xFFFF8000 | ||
1229 | #define R_008C44_SQ_ESGS_RING_SIZE 0x008C44 | ||
1230 | #define S_008C44_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1231 | #define G_008C44_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1232 | #define C_008C44_MEM_SIZE 0x00000000 | ||
1233 | #define R_0288B0_SQ_ESTMP_RING_ITEMSIZE 0x0288B0 | ||
1234 | #define S_0288B0_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1235 | #define G_0288B0_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1236 | #define C_0288B0_ITEMSIZE 0xFFFF8000 | ||
1237 | #define R_008C54_SQ_ESTMP_RING_SIZE 0x008C54 | ||
1238 | #define S_008C54_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1239 | #define G_008C54_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1240 | #define C_008C54_MEM_SIZE 0x00000000 | ||
1241 | #define R_0288C0_SQ_FBUF_RING_ITEMSIZE 0x0288C0 | ||
1242 | #define S_0288C0_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1243 | #define G_0288C0_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1244 | #define C_0288C0_ITEMSIZE 0xFFFF8000 | ||
1245 | #define R_008C74_SQ_FBUF_RING_SIZE 0x008C74 | ||
1246 | #define S_008C74_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1247 | #define G_008C74_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1248 | #define C_008C74_MEM_SIZE 0x00000000 | ||
1249 | #define R_0288B4_SQ_GSTMP_RING_ITEMSIZE 0x0288B4 | ||
1250 | #define S_0288B4_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1251 | #define G_0288B4_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1252 | #define C_0288B4_ITEMSIZE 0xFFFF8000 | ||
1253 | #define R_008C5C_SQ_GSTMP_RING_SIZE 0x008C5C | ||
1254 | #define S_008C5C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1255 | #define G_008C5C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1256 | #define C_008C5C_MEM_SIZE 0x00000000 | ||
1257 | #define R_0288AC_SQ_GSVS_RING_ITEMSIZE 0x0288AC | ||
1258 | #define S_0288AC_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1259 | #define G_0288AC_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1260 | #define C_0288AC_ITEMSIZE 0xFFFF8000 | ||
1261 | #define R_008C4C_SQ_GSVS_RING_SIZE 0x008C4C | ||
1262 | #define S_008C4C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1263 | #define G_008C4C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1264 | #define C_008C4C_MEM_SIZE 0x00000000 | ||
1265 | #define R_0288BC_SQ_PSTMP_RING_ITEMSIZE 0x0288BC | ||
1266 | #define S_0288BC_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1267 | #define G_0288BC_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1268 | #define C_0288BC_ITEMSIZE 0xFFFF8000 | ||
1269 | #define R_008C6C_SQ_PSTMP_RING_SIZE 0x008C6C | ||
1270 | #define S_008C6C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1271 | #define G_008C6C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1272 | #define C_008C6C_MEM_SIZE 0x00000000 | ||
1273 | #define R_0288C4_SQ_REDUC_RING_ITEMSIZE 0x0288C4 | ||
1274 | #define S_0288C4_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1275 | #define G_0288C4_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1276 | #define C_0288C4_ITEMSIZE 0xFFFF8000 | ||
1277 | #define R_008C7C_SQ_REDUC_RING_SIZE 0x008C7C | ||
1278 | #define S_008C7C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1279 | #define G_008C7C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1280 | #define C_008C7C_MEM_SIZE 0x00000000 | ||
1281 | #define R_0288B8_SQ_VSTMP_RING_ITEMSIZE 0x0288B8 | ||
1282 | #define S_0288B8_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1283 | #define G_0288B8_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1284 | #define C_0288B8_ITEMSIZE 0xFFFF8000 | ||
1285 | #define R_008C64_SQ_VSTMP_RING_SIZE 0x008C64 | ||
1286 | #define S_008C64_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) | ||
1287 | #define G_008C64_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) | ||
1288 | #define C_008C64_MEM_SIZE 0x00000000 | ||
1289 | #define R_0288C8_SQ_GS_VERT_ITEMSIZE 0x0288C8 | ||
1290 | #define S_0288C8_ITEMSIZE(x) (((x) & 0x7FFF) << 0) | ||
1291 | #define G_0288C8_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) | ||
1292 | #define C_0288C8_ITEMSIZE 0xFFFF8000 | ||
1293 | #define R_028010_DB_DEPTH_INFO 0x028010 | ||
1294 | #define S_028010_FORMAT(x) (((x) & 0x7) << 0) | ||
1295 | #define G_028010_FORMAT(x) (((x) >> 0) & 0x7) | ||
1296 | #define C_028010_FORMAT 0xFFFFFFF8 | ||
1297 | #define V_028010_DEPTH_INVALID 0x00000000 | ||
1298 | #define V_028010_DEPTH_16 0x00000001 | ||
1299 | #define V_028010_DEPTH_X8_24 0x00000002 | ||
1300 | #define V_028010_DEPTH_8_24 0x00000003 | ||
1301 | #define V_028010_DEPTH_X8_24_FLOAT 0x00000004 | ||
1302 | #define V_028010_DEPTH_8_24_FLOAT 0x00000005 | ||
1303 | #define V_028010_DEPTH_32_FLOAT 0x00000006 | ||
1304 | #define V_028010_DEPTH_X24_8_32_FLOAT 0x00000007 | ||
1305 | #define S_028010_READ_SIZE(x) (((x) & 0x1) << 3) | ||
1306 | #define G_028010_READ_SIZE(x) (((x) >> 3) & 0x1) | ||
1307 | #define C_028010_READ_SIZE 0xFFFFFFF7 | ||
1308 | #define S_028010_ARRAY_MODE(x) (((x) & 0xF) << 15) | ||
1309 | #define G_028010_ARRAY_MODE(x) (((x) >> 15) & 0xF) | ||
1310 | #define C_028010_ARRAY_MODE 0xFFF87FFF | ||
1311 | #define S_028010_TILE_SURFACE_ENABLE(x) (((x) & 0x1) << 25) | ||
1312 | #define G_028010_TILE_SURFACE_ENABLE(x) (((x) >> 25) & 0x1) | ||
1313 | #define C_028010_TILE_SURFACE_ENABLE 0xFDFFFFFF | ||
1314 | #define S_028010_TILE_COMPACT(x) (((x) & 0x1) << 26) | ||
1315 | #define G_028010_TILE_COMPACT(x) (((x) >> 26) & 0x1) | ||
1316 | #define C_028010_TILE_COMPACT 0xFBFFFFFF | ||
1317 | #define S_028010_ZRANGE_PRECISION(x) (((x) & 0x1) << 31) | ||
1318 | #define G_028010_ZRANGE_PRECISION(x) (((x) >> 31) & 0x1) | ||
1319 | #define C_028010_ZRANGE_PRECISION 0x7FFFFFFF | ||
1320 | #define R_028000_DB_DEPTH_SIZE 0x028000 | ||
1321 | #define S_028000_PITCH_TILE_MAX(x) (((x) & 0x3FF) << 0) | ||
1322 | #define G_028000_PITCH_TILE_MAX(x) (((x) >> 0) & 0x3FF) | ||
1323 | #define C_028000_PITCH_TILE_MAX 0xFFFFFC00 | ||
1324 | #define S_028000_SLICE_TILE_MAX(x) (((x) & 0xFFFFF) << 10) | ||
1325 | #define G_028000_SLICE_TILE_MAX(x) (((x) >> 10) & 0xFFFFF) | ||
1326 | #define C_028000_SLICE_TILE_MAX 0xC00003FF | ||
1327 | #define R_028004_DB_DEPTH_VIEW 0x028004 | ||
1328 | #define S_028004_SLICE_START(x) (((x) & 0x7FF) << 0) | ||
1329 | #define G_028004_SLICE_START(x) (((x) >> 0) & 0x7FF) | ||
1330 | #define C_028004_SLICE_START 0xFFFFF800 | ||
1331 | #define S_028004_SLICE_MAX(x) (((x) & 0x7FF) << 13) | ||
1332 | #define G_028004_SLICE_MAX(x) (((x) >> 13) & 0x7FF) | ||
1333 | #define C_028004_SLICE_MAX 0xFF001FFF | ||
1334 | #define R_028800_DB_DEPTH_CONTROL 0x028800 | ||
1335 | #define S_028800_STENCIL_ENABLE(x) (((x) & 0x1) << 0) | ||
1336 | #define G_028800_STENCIL_ENABLE(x) (((x) >> 0) & 0x1) | ||
1337 | #define C_028800_STENCIL_ENABLE 0xFFFFFFFE | ||
1338 | #define S_028800_Z_ENABLE(x) (((x) & 0x1) << 1) | ||
1339 | #define G_028800_Z_ENABLE(x) (((x) >> 1) & 0x1) | ||
1340 | #define C_028800_Z_ENABLE 0xFFFFFFFD | ||
1341 | #define S_028800_Z_WRITE_ENABLE(x) (((x) & 0x1) << 2) | ||
1342 | #define G_028800_Z_WRITE_ENABLE(x) (((x) >> 2) & 0x1) | ||
1343 | #define C_028800_Z_WRITE_ENABLE 0xFFFFFFFB | ||
1344 | #define S_028800_ZFUNC(x) (((x) & 0x7) << 4) | ||
1345 | #define G_028800_ZFUNC(x) (((x) >> 4) & 0x7) | ||
1346 | #define C_028800_ZFUNC 0xFFFFFF8F | ||
1347 | #define S_028800_BACKFACE_ENABLE(x) (((x) & 0x1) << 7) | ||
1348 | #define G_028800_BACKFACE_ENABLE(x) (((x) >> 7) & 0x1) | ||
1349 | #define C_028800_BACKFACE_ENABLE 0xFFFFFF7F | ||
1350 | #define S_028800_STENCILFUNC(x) (((x) & 0x7) << 8) | ||
1351 | #define G_028800_STENCILFUNC(x) (((x) >> 8) & 0x7) | ||
1352 | #define C_028800_STENCILFUNC 0xFFFFF8FF | ||
1353 | #define S_028800_STENCILFAIL(x) (((x) & 0x7) << 11) | ||
1354 | #define G_028800_STENCILFAIL(x) (((x) >> 11) & 0x7) | ||
1355 | #define C_028800_STENCILFAIL 0xFFFFC7FF | ||
1356 | #define S_028800_STENCILZPASS(x) (((x) & 0x7) << 14) | ||
1357 | #define G_028800_STENCILZPASS(x) (((x) >> 14) & 0x7) | ||
1358 | #define C_028800_STENCILZPASS 0xFFFE3FFF | ||
1359 | #define S_028800_STENCILZFAIL(x) (((x) & 0x7) << 17) | ||
1360 | #define G_028800_STENCILZFAIL(x) (((x) >> 17) & 0x7) | ||
1361 | #define C_028800_STENCILZFAIL 0xFFF1FFFF | ||
1362 | #define S_028800_STENCILFUNC_BF(x) (((x) & 0x7) << 20) | ||
1363 | #define G_028800_STENCILFUNC_BF(x) (((x) >> 20) & 0x7) | ||
1364 | #define C_028800_STENCILFUNC_BF 0xFF8FFFFF | ||
1365 | #define S_028800_STENCILFAIL_BF(x) (((x) & 0x7) << 23) | ||
1366 | #define G_028800_STENCILFAIL_BF(x) (((x) >> 23) & 0x7) | ||
1367 | #define C_028800_STENCILFAIL_BF 0xFC7FFFFF | ||
1368 | #define S_028800_STENCILZPASS_BF(x) (((x) & 0x7) << 26) | ||
1369 | #define G_028800_STENCILZPASS_BF(x) (((x) >> 26) & 0x7) | ||
1370 | #define C_028800_STENCILZPASS_BF 0xE3FFFFFF | ||
1371 | #define S_028800_STENCILZFAIL_BF(x) (((x) & 0x7) << 29) | ||
1372 | #define G_028800_STENCILZFAIL_BF(x) (((x) >> 29) & 0x7) | ||
1373 | #define C_028800_STENCILZFAIL_BF 0x1FFFFFFF | ||
909 | 1374 | ||
910 | #endif | 1375 | #endif |