1 #include "d3d1xstutil.h"
2 
3 unsigned d3d_to_pipe_prim[D3D_PRIMITIVE_TOPOLOGY_COUNT] =
4 {
5 	0,
6 	PIPE_PRIM_POINTS,
7 	PIPE_PRIM_LINES,
8 	PIPE_PRIM_LINE_STRIP,
9 	PIPE_PRIM_TRIANGLES,
10 	PIPE_PRIM_TRIANGLE_STRIP,
11 	PIPE_PRIM_LINES_ADJACENCY,
12 	PIPE_PRIM_LINE_STRIP_ADJACENCY,
13 	PIPE_PRIM_TRIANGLES_ADJACENCY,
14 	PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY,
15 	/* gap */
16 	0, 0, 0, 0, 0, 0,
17 	0, 0, 0, 0, 0, 0, 0, 0,
18 	0, 0, 0, 0, 0, 0, 0, 0,
19 	0,
20 	/* patches */
21 	0, 0, 0, 0, 0, 0, 0, 0,
22 	0, 0, 0, 0, 0, 0, 0, 0,
23 	0, 0, 0, 0, 0, 0, 0, 0,
24 	0, 0, 0, 0, 0, 0, 0, 0,
25 };
26 
27 unsigned d3d_to_pipe_prim_type[D3D_PRIMITIVE_COUNT] =
28 {
29 	0,
30 	PIPE_PRIM_POINTS,
31 	PIPE_PRIM_LINES,
32 	PIPE_PRIM_TRIANGLES,
33 	0,
34 	PIPE_PRIM_POINTS,
35 	PIPE_PRIM_LINES_ADJACENCY,
36 	PIPE_PRIM_TRIANGLES_ADJACENCY,
37 	/* patches */
38 	0, 0, 0, 0, 0, 0, 0, 0,
39 	0, 0, 0, 0, 0, 0, 0, 0,
40 	0, 0, 0, 0, 0, 0, 0, 0,
41 	0, 0, 0, 0, 0, 0, 0, 0,
42 };
43