blob: b056e19ea503df51770184cc4c9a598c92e33622 (
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
52
53
|
#ifndef __NV50_STATEOBJ_H__
#define __NV50_STATEOBJ_H__
#include "pipe/p_state.h"
#define NV50_SCISSORS_CLIPPING
#define SB_BEGIN_3D(so, m, s) \
(so)->state[(so)->size++] = NV50_FIFO_PKHDR(NV50_3D(m), s)
#define SB_BEGIN_3D_(so, m, s) \
(so)->state[(so)->size++] = NV50_FIFO_PKHDR(SUBC_3D(m), s)
#define SB_DATA(so, u) (so)->state[(so)->size++] = (u)
#include "nv50_stateobj_tex.h"
struct nv50_blend_stateobj {
struct pipe_blend_state pipe;
int size;
uint32_t state[84]; // TODO: allocate less if !independent_blend_enable
};
struct nv50_rasterizer_stateobj {
struct pipe_rasterizer_state pipe;
int size;
uint32_t state[48];
};
struct nv50_zsa_stateobj {
struct pipe_depth_stencil_alpha_state pipe;
int size;
uint32_t state[29];
};
struct nv50_vertex_element {
struct pipe_vertex_element pipe;
uint32_t state;
};
struct nv50_vertex_stateobj {
struct translate *translate;
unsigned num_elements;
uint32_t instance_elts;
uint32_t instance_bufs;
boolean need_conversion;
unsigned vertex_size;
unsigned packet_vertex_limit;
struct nv50_vertex_element element[0];
};
#endif
|