1 #ifndef __NV04_STATE_H__
2 #define __NV04_STATE_H__
4 #include "pipe/p_state.h"
5 #include "tgsi/tgsi_scan.h"
7 struct nv04_blend_state
{
13 struct nv04_fragtex_state
{
17 struct nv04_sampler_state
{
22 struct nv04_depth_stencil_alpha_state
{
26 struct nv04_rasterizer_state
{
29 const struct pipe_rasterizer_state
*templ
;
33 struct pipe_texture base
;
35 struct pipe_buffer
*buffer
;
38 struct pipe_texture
*shadow_tex
;
39 struct pipe_surface
*shadow_surface
;
44 } level
[PIPE_MAX_TEXTURE_LEVELS
];
47 struct nv04_fragment_program_data
{
52 struct nv04_fragment_program
{
53 struct pipe_shader_state pipe
;
54 struct tgsi_shader_info info
;
63 struct nv04_fragment_program_data
*consts
;
66 struct pipe_buffer
*buffer
;
69 uint32_t fp_reg_control
;