Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5564 | serge | 1 | |
2 | #define __NVC0_PROGRAM_H__ |
||
3 | |||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
10 | uint32_t stride[4]; |
||
11 | uint8_t stream[4]; |
||
12 | uint8_t varying_count[4]; |
||
13 | uint8_t varying_index[4][128]; |
||
14 | }; |
||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
20 | struct pipe_shader_state pipe; |
||
21 | |||
22 | |||
23 | boolean translated; |
||
24 | boolean need_tls; |
||
25 | uint8_t num_gprs; |
||
26 | |||
27 | |||
28 | uint32_t *immd_data; |
||
29 | unsigned code_base; |
||
30 | unsigned code_size; |
||
31 | unsigned immd_base; |
||
32 | unsigned immd_size; /* size of immediate array data */ |
||
33 | unsigned parm_size; /* size of non-bindable uniforms (c0[]) */ |
||
34 | |||
35 | |||
36 | uint32_t flags[2]; |
||
37 | |||
38 | |||
39 | uint32_t clip_mode; /* clip/cull selection */ |
||
40 | uint8_t clip_enable; /* mask of defined clip planes */ |
||
41 | uint8_t num_ucps; /* also set to max if ClipDistance is used */ |
||
42 | uint8_t edgeflag; /* attribute index of edgeflag input */ |
||
43 | boolean need_vertex_id; |
||
44 | } vp; |
||
45 | struct { |
||
46 | uint8_t early_z; |
||
47 | uint8_t in_pos[PIPE_MAX_SHADER_INPUTS]; |
||
48 | uint8_t sample_interp; |
||
49 | } fp; |
||
50 | struct { |
||
51 | uint32_t tess_mode; /* ~0 if defined by the other stage */ |
||
52 | uint32_t input_patch_size; |
||
53 | } tp; |
||
54 | struct { |
||
55 | uint32_t lmem_size; /* local memory (TGSI PRIVATE resource) size */ |
||
56 | uint32_t smem_size; /* shared memory (TGSI LOCAL resource) size */ |
||
57 | void *syms; |
||
58 | unsigned num_syms; |
||
59 | } cp; |
||
60 | uint8_t num_barriers; |
||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | }; |
||
68 | |||
69 | |||
70 |