blob: 6dafe56fbb6f36e8a6b34ae5988060f8f4be09a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef __NV50_PROGRAM_H__
#define __NV50_PROGRAM_H__
#include "pipe/p_state.h"
#include "tgsi/util/tgsi_scan.h"
struct nv50_program_data {
int index;
int component;
float value;
};
struct nv50_program_exec {
struct nv50_program_exec *next;
unsigned inst[2];
struct {
int index;
unsigned mask;
unsigned shift;
} param;
};
struct nv50_program {
struct pipe_shader_state pipe;
struct tgsi_shader_info info;
boolean translated;
unsigned type;
struct nv50_program_exec *exec_head;
struct nv50_program_exec *exec_tail;
unsigned exec_size;
struct nv50_program_data *data;
struct nouveau_resource *data_res;
unsigned data_nr;
unsigned data_start;
struct pipe_buffer *buffer;
float *immd;
unsigned immd_nr;
struct {
unsigned high_temp;
struct {
unsigned attr[2];
} vp;
} cfg;
};
#endif
|