summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-06-25 02:16:43 +0200
committerMarek Olšák <maraeo@gmail.com>2010-06-26 17:57:20 +0200
commitfcacc6a076ee5bc894eb7f5a7943715ff1ddf9ee (patch)
tree606e16631f1e669f4f58293b4b2fc149b1dde461 /src/gallium/drivers/r300/r300_context.h
parent8350d1d6f18d5c48fab4949d8b3c087b8390a49c (diff)
r300g: introduce VAP invariant state
Unlike other invariant states, this one must be emitted after VAP flush.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h
index 976ef20510..dc96d21f31 100644
--- a/src/gallium/drivers/r300/r300_context.h
+++ b/src/gallium/drivers/r300/r300_context.h
@@ -224,6 +224,10 @@ struct r300_vertex_stream_state {
unsigned count;
};
+struct r300_vap_invariant_state {
+ uint32_t cb[9];
+};
+
struct r300_viewport_state {
float xscale; /* R300_VAP_VPORT_XSCALE: 0x2098 */
float xoffset; /* R300_VAP_VPORT_XOFFSET: 0x209c */
@@ -471,6 +475,8 @@ struct r300_context {
struct r300_atom ztop_state;
/* PVS flush. */
struct r300_atom pvs_flush;
+ /* VAP invariant state. */
+ struct r300_atom vap_invariant_state;
/* Texture cache invalidate. */
struct r300_atom texture_cache_inval;
/* GPU flush. */