summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_context.h
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-11-11 00:00:45 +0000
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-11-11 00:00:45 +0000
commitf82bc9110b3b06f3313e584e860d0e41d11965f0 (patch)
tree82b87beaeeadeb5f3ee02d8991ce14d7c67011b8 /src/mesa/drivers/dri/nouveau/nouveau_context.h
parent20802a7b695cdb580c479352bc3eab84d1481b2c (diff)
Some work on nv30 state, heavily based on jkolb's work
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_context.h')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_context.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.h b/src/mesa/drivers/dri/nouveau/nouveau_context.h
index be0785f453..d1abde6856 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_context.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_context.h
@@ -83,6 +83,7 @@ typedef struct nouveau_context {
/* The read-only regs */
volatile unsigned char* mmio;
+ /* FIXME : do we want to put all state into a separate struct ? */
/* State for tris */
GLuint color_offset;
GLuint specular_offset;
@@ -93,10 +94,11 @@ typedef struct nouveau_context {
struct tnl_attr_map vertex_attrs[VERT_ATTRIB_MAX];
GLuint vertex_attr_count;
- /* Clear state */
- GLuint clear_color;
- GLuint clear_depth;
- GLuint clear_stencil;
+ /* Depth/stencil clear state */
+ uint32_t clear_value;
+
+ /* Light state */
+ uint32_t enabled_lights;
/* The drawing fallbacks */
GLuint Fallback;