#define NOUVEAU_MSG(fmt, args...) \
fprintf(stderr, "nouveau: "fmt, ##args);
-#define NV10_NEW_VERTPROG (1 << 1)
-#define NV10_NEW_FRAGPROG (1 << 2)
-#define NV10_NEW_ARRAYS (1 << 3)
-#define NV10_NEW_VTXFMT (1 << 4)
-#define NV10_NEW_BLEND (1 << 5)
-#define NV10_NEW_BLENDCOL (1 << 6)
-#define NV10_NEW_RAST (1 << 7)
-#define NV10_NEW_DSA (1 << 8)
-#define NV10_NEW_VIEWPORT (1 << 9)
-#define NV10_NEW_SCISSOR (1 << 9)
-#define NV10_NEW_FRAMEBUFFER (1 << 10)
+#define NV10_NEW_VERTPROG (1 << 0)
+#define NV10_NEW_FRAGPROG (1 << 1)
+#define NV10_NEW_VTXARRAYS (1 << 2)
+#define NV10_NEW_BLEND (1 << 3)
+#define NV10_NEW_BLENDCOL (1 << 4)
+#define NV10_NEW_RAST (1 << 5)
+#define NV10_NEW_DSA (1 << 6)
+#define NV10_NEW_VIEWPORT (1 << 7)
+#define NV10_NEW_SCISSOR (1 << 8)
+#define NV10_NEW_FRAMEBUFFER (1 << 9)
#include "nv10_screen.h"
struct pipe_scissor_state *scissor;
struct pipe_framebuffer_state *framebuffer;
+ //struct pipe_buffer *constbuf[PIPE_SHADER_TYPES];
+ float *constbuf[PIPE_SHADER_TYPES][32][4];
+
+ struct vertex_info vertex_info;
+
struct {
struct pipe_buffer *buffer;
uint32_t format;
unsigned delta;
} vb[16];
- struct vertex_info vertex_info;
- struct {
+/* struct {
struct nouveau_resource *exec_heap;
struct nouveau_resource *data_heap;
struct nv10_vertex_program *active;
struct nv10_vertex_program *current;
- struct pipe_buffer *constant_buf;
} vertprog;
-
+*/
struct {
struct nv10_fragment_program *active;
struct pipe_buffer *constant_buf;
} fragprog;
- struct pipe_vertex_buffer vtxbuf[PIPE_ATTRIB_MAX];
- struct pipe_vertex_element vtxelt[PIPE_ATTRIB_MAX];
+ struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS];
+ struct pipe_vertex_element vtxelt[PIPE_MAX_ATTRIBS];
};
static INLINE struct nv10_context *