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
;
34 struct nouveau_bo
*bo
;
36 struct pipe_buffer
*buffer
;
42 } level
[PIPE_MAX_TEXTURE_LEVELS
];
45 struct nv04_fragment_program_data
{
50 struct nv04_fragment_program
{
51 struct pipe_shader_state pipe
;
52 struct tgsi_shader_info info
;
61 struct nv04_fragment_program_data
*consts
;
64 struct pipe_buffer
*buffer
;
67 uint32_t fp_reg_control
;