summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_state.h
blob: dd352b658567e5693a5c1e668a4bba64e3c3175c (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
#ifndef __NV50_STATE_H__
#define __NV50_STATE_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 {
	struct pipe_shader_state pipe;
	struct tgsi_shader_info info;
	boolean translated;

	enum {
		NV50_PROG_VERTEX,
		NV50_PROG_FRAGMENT
	} type;
	unsigned *insns;
	unsigned insns_nr;

	struct pipe_buffer *buffer;

	float *immd;
	unsigned immd_nr;

	struct nouveau_resource *data;

	struct {
		unsigned high_temp;
		struct {
			unsigned attr[2];
		} vp;
	} cfg;
};

#endif