1 #ifndef __NV40_STATE_H__
2 #define __NV40_STATE_H__
4 #include "pipe/p_state.h"
6 struct nv40_sampler_state
{
14 struct nv40_vertex_program_exec
{
16 boolean has_branch_offset
;
20 struct nv40_vertex_program_data
{
21 int index
; /* immediates == -1 */
25 struct nv40_vertex_program
{
26 const struct pipe_shader_state
*pipe
;
29 struct nv40_vertex_program_exec
*insns
;
31 struct nv40_vertex_program_data
*consts
;
34 struct nouveau_resource
*exec
;
36 struct nouveau_resource
*data
;
38 unsigned data_start_min
;
44 struct nv40_fragment_program_data
{
49 struct nv40_fragment_program
{
50 const struct pipe_shader_state
*pipe
;
59 struct nv40_fragment_program_data
*consts
;
62 struct pipe_buffer
*buffer
;
65 struct nouveau_stateobj
*so
;
69 struct pipe_texture base
;
71 struct pipe_buffer
*buffer
;
77 } level
[PIPE_MAX_TEXTURE_LEVELS
];