#define __NV40_STATE_H__
#include "pipe/p_state.h"
+#include "tgsi/tgsi_scan.h"
struct nv40_sampler_state {
uint32_t fmt;
};
struct nv40_vertex_program {
- const struct pipe_shader_state *pipe;
+ struct pipe_shader_state pipe;
+
+ struct draw_vertex_shader *draw;
boolean translated;
+
+ struct pipe_clip_state ucp;
+
struct nv40_vertex_program_exec *insns;
unsigned nr_insns;
struct nv40_vertex_program_data *consts;
uint32_t ir;
uint32_t or;
+ uint32_t clip_ctrl;
+ struct nouveau_stateobj *so;
};
struct nv40_fragment_program_data {
};
struct nv40_fragment_program {
- const struct pipe_shader_state *pipe;
+ struct pipe_shader_state pipe;
+ struct tgsi_shader_info info;
boolean translated;
unsigned samplers;