aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_context.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-01-14 08:40:15 +1000
committerDave Airlie <[email protected]>2009-01-14 08:40:15 +1000
commit0217ed2cf9b0a538ca03d26b302a7cd57af7dd21 (patch)
tree50d173b505c7fbc111fc0b6c79a1f290b789f174 /src/mesa/drivers/dri/r200/r200_context.h
parentb6e486906968d82c7b8a869d7ab51697a7cce80c (diff)
radeon/r200: move more stuff closer together in context
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_context.h')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.h b/src/mesa/drivers/dri/r200/r200_context.h
index 4349730bfd5..64f773826c4 100644
--- a/src/mesa/drivers/dri/r200/r200_context.h
+++ b/src/mesa/drivers/dri/r200/r200_context.h
@@ -540,20 +540,12 @@ struct r200_state {
GLuint envneeded;
};
-#define GET_START(rvb) (rmesa->r200Screen->gart_buffer_offset + \
+#define GET_START(rvb) (rmesa->radeonScreen->gart_buffer_offset + \
(rvb)->address - rmesa->dma.buf0_address + \
(rvb)->start)
#define R200_CMD_BUF_SZ (16*1024)
-struct r200_store {
- GLuint statenr;
- GLuint primnr;
- char cmd_buf[R200_CMD_BUF_SZ];
- int cmd_used;
- int elts_start;
-};
-
/* r200_tcl.c
*/
@@ -671,11 +663,11 @@ struct r200_context {
*/
struct radeon_ioctl ioctl;
struct radeon_dma dma;
- struct r200_store store;
+ struct radeon_store store;
/* A full state emit as of the first state emit in the main store, in case
* the context is lost.
*/
- struct r200_store backup_store;
+ struct radeon_store backup_store;
/* Page flipping
*/
@@ -699,7 +691,7 @@ struct r200_context {
unsigned int lastStamp;
GLboolean lost_context;
GLboolean save_on_next_emit;
- radeonScreenPtr r200Screen; /* Screen private DRI data */
+ radeonScreenPtr radeonScreen; /* Screen private DRI data */
drm_radeon_sarea_t *sarea; /* Private SAREA data */
/* TCL stuff