summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_context.h
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2004-12-30 06:06:54 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2004-12-30 06:06:54 +0000
commit74bf43051c5a0abbe83f431ca8e1d8d4d2b068c4 (patch)
treedf567d3c5f0324f346a06ae4b7f570209839a288 /src/mesa/drivers/dri/r300/r300_context.h
parent5be14fd59a24612afd09da13688d611a1711d6da (diff)
Port viewport setting code from R200.
Take it outside R300ResetHwState.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h
index be27659259..5863ee52f2 100644
--- a/src/mesa/drivers/dri/r300/r300_context.h
+++ b/src/mesa/drivers/dri/r300/r300_context.h
@@ -308,7 +308,13 @@ struct r300_cmdbuf {
/**
* State cache
*/
+
+struct r300_depthbuffer_state {
+ GLfloat scale;
+};
+
struct r300_state {
+ struct r300_depthbuffer_state depth;
};
@@ -321,6 +327,11 @@ struct r300_context {
struct r300_hw_state hw;
struct r300_cmdbuf cmdbuf;
struct r300_state state;
+
+ /* Vertex buffers */
+ int elt_count; /* size of the buffer for vertices */
+ int attrib_count; /* size of the buffer for vertex attributes.. Somehow it can be different ? */
+
};
#define R300_CONTEXT(ctx) ((r300ContextPtr)(ctx->DriverCtx))