1 #ifndef __R300_FIXED_PIPELINES_H__
2 #define __R300_FIXED_PIPELINES_H__
4 /******** Flat color pipeline **********/
5 static struct r300_vertex_shader_state FLAT_COLOR_VERTEX_SHADER
={
10 EASY_VSF_OP(MUL
, 0, ALL
, TMP
),
13 EASY_VSF_SOURCE(0, W
, W
, W
, W
, NONE
, NONE
),
15 EASY_VSF_OP(MUL
, 1, ALL
, RESULT
),
20 EASY_VSF_OP(MAD
, 0, ALL
, TMP
),
25 EASY_VSF_OP(MAD
, 0, ALL
, TMP
),
30 EASY_VSF_OP(MAD
, 0, ALL
, RESULT
),
95 static struct r300_pixel_shader_state FLAT_COLOR_PIXEL_SHADER
={
103 {0x50a80, 0x1c020800, 0x40889, 0x1020800},
104 {0x50a80, 0x1c020800, 0x40889, 0x1020800}
114 first_node_has_tex
: 0,
115 temp_register_count
: 0,
127 /******** Single texture pipeline ***********/
128 static struct r300_vertex_shader_state SINGLE_TEXTURE_VERTEX_SHADER
={
133 EASY_VSF_OP(MUL
, 0, ALL
, TMP
),
136 EASY_VSF_SOURCE(0, W
, W
, W
, W
, NONE
, NONE
),
138 EASY_VSF_OP(MUL
, 2, ALL
, RESULT
),
143 EASY_VSF_OP(MAD
, 0, ALL
, TMP
),
148 EASY_VSF_OP(MUL
, 1, ALL
, RESULT
),
153 EASY_VSF_OP(MAD
, 0, ALL
, TMP
),
158 EASY_VSF_OP(MAD
, 0, ALL
, RESULT
),
229 static struct r300_pixel_shader_state SINGLE_TEXTURE_PIXEL_SHADER
={
238 {0x50a80, 0x1c020800, 0x40889, 0x1020800},
239 {0x50200, 0x1c020040, 0x40889, 0x1020801},
240 {0x50a80, 0x1c020800, 0x40889, 0x1020800}
251 first_node_has_tex
: 1,
252 temp_register_count
: 1,
262 { 0.0, 0.0, 0.0, 0.0},
263 { 0.0, 0.0, 0.0, 0.0},
264 { 0.0, 0.0, 0.0, 0.0},
265 { 0.0, 0.0, 0.0, 0.0},
266 { 0.0, 0.0, 0.0, 0.0},
267 { 0.0, 0.0, 0.0, 0.0},
268 { 0.0, 0.0, 0.0, 0.0},
269 { 0.0, 0.0, 0.0, 0.0}