nouveau: nv40 swizzled mipmap fixes.
[mesa.git] / src / gallium / drivers / nv40 / nv40_state.h
index ab2866eb7a54a0da106bccdef7eadc04eb412ba2..9c55903ae309cfc16362cfbb68e55e752b8e2749 100644 (file)
@@ -2,7 +2,7 @@
 #define __NV40_STATE_H__
 
 #include "pipe/p_state.h"
-#include "tgsi/util/tgsi_scan.h"
+#include "tgsi/tgsi_scan.h"
 
 struct nv40_sampler_state {
        uint32_t fmt;
@@ -29,6 +29,9 @@ struct nv40_vertex_program {
        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;
@@ -42,6 +45,7 @@ struct nv40_vertex_program {
 
        uint32_t ir;
        uint32_t or;
+       uint32_t clip_ctrl;
        struct nouveau_stateobj *so;
 };
 
@@ -75,6 +79,9 @@ struct nv40_miptree {
        struct pipe_buffer *buffer;
        uint total_size;
 
+       struct pipe_texture *shadow_tex;
+       struct pipe_surface *shadow_surface;
+
        struct {
                uint pitch;
                uint *image_offset;