summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_context.h
diff options
context:
space:
mode:
authorPeter Zubaj <pzubaj@gaya.sk>2005-03-14 20:35:00 +0000
committerPeter Zubaj <pzubaj@gaya.sk>2005-03-14 20:35:00 +0000
commite2e4a5c992c7655cdd4374b962d339ec62bb5f5c (patch)
tree4b023848a1f6d1e04aa16189d2b870b5e71cd12c /src/mesa/drivers/dri/r300/r300_context.h
parent02eb36fa8d51b9652fba546ea3e88e7be1d2ace8 (diff)
Stencil support
Reflex from mesa demos doesn't work TODO - double side stencil I hope that I didn't break anything
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h
index d956848dd1..75aeb3eff7 100644
--- a/src/mesa/drivers/dri/r300/r300_context.h
+++ b/src/mesa/drivers/dri/r300/r300_context.h
@@ -500,6 +500,12 @@ struct r300_depthbuffer_state {
GLfloat scale;
};
+struct r300_stencilbuffer_state {
+ GLuint clear;
+ GLboolean hw_stencil;
+
+};
+
struct r300_vap_reg_state {
/* input register assigments */
int i_coords;
@@ -678,7 +684,9 @@ struct r300_state {
struct {
int transform_offset; /* Transform matrix offset, -1 if none */
} vap_param; /* vertex processor parameter allocation - tells where to write parameters */
- int hw_stencil;
+
+ struct r300_stencilbuffer_state stencil;
+
};