summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-10 21:59:38 +0200
committerMarek Olšák <[email protected]>2012-09-13 20:18:45 +0200
commit150decffb4352a8290b149b10fba5f0ef5cd74fb (patch)
treec7a0e4656bb6c78cb07ad5d60a162aff351a9461 /src/gallium/drivers/r600/r600_pipe.h
parentc56dca909a0dc1410301c48618768adf58023fe7 (diff)
r600g: emit the primitive type and associated regs only if the type is changed
Reviewed-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
index 9797304ed21..27d57d17547 100644
--- a/src/gallium/drivers/r600/r600_pipe.h
+++ b/src/gallium/drivers/r600/r600_pipe.h
@@ -475,6 +475,9 @@ struct r600_context {
* for anything useful. */
struct r600_resource *dummy_fmask;
struct r600_resource *dummy_cmask;
+
+ /* Last primitive type used in draw_vbo. */
+ int last_primitive_type;
};
static INLINE void r600_emit_atom(struct r600_context *rctx, struct r600_atom *atom)