summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600/r700_chip.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-05-29 15:37:04 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-05-29 15:37:04 -0400
commitd8694cd3f69dfc40509544293aa35f297571e878 (patch)
treecdeb66b7b68201a6ff71fd09c5bd69298afad933 /src/mesa/drivers/dri/r600/r700_chip.c
parentcb393772530fca46ba699cf33cb213fb28713213 (diff)
get rid of chip_object struct
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_chip.c')
-rw-r--r--src/mesa/drivers/dri/r600/r700_chip.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_chip.c b/src/mesa/drivers/dri/r600/r700_chip.c
index 9b30249231..5ae70c99c7 100644
--- a/src/mesa/drivers/dri/r600/r700_chip.c
+++ b/src/mesa/drivers/dri/r600/r700_chip.c
@@ -31,7 +31,6 @@
#include "r600_context.h"
#include "r600_cmdbuf.h"
-#include "r700_chip.h"
#include "r700_state.h"
#include "r700_tex.h"
#include "r700_oglprog.h"
@@ -39,25 +38,6 @@
#include "r700_vertprog.h"
#include "r700_ioctl.h"
-static GLboolean r700DestroyChipObj(GLcontext * ctx)
-{
- context_t * context = R700_CONTEXT(ctx);
- R700_CHIP_CONTEXT *r700;
-
- if(NULL == context->chipobj.pvChipObj)
- {
- return GL_TRUE;
- }
-
- r700 = (R700_CHIP_CONTEXT *)(context->chipobj.pvChipObj);
-
- FREE(r700->pStateList);
-
- FREE(r700);
-
- return GL_TRUE;
-}
-
#define LINK_STATES(reg) \
do \
{ \
@@ -71,11 +51,7 @@ GLboolean r700InitChipObject(context_t *context)
{
ContextState * pStateListWork;
- R700_CHIP_CONTEXT *r700 = CALLOC( sizeof(R700_CHIP_CONTEXT) );
-
- context->chipobj.pvChipObj = (void*)r700;
-
- context->chipobj.DestroyChipObj = r700DestroyChipObj;
+ R700_CHIP_CONTEXT *r700 = &context->hw;
/* init state list */
r700->pStateList = (ContextState*) MALLOC (sizeof(ContextState)*sizeof(R700_CHIP_CONTEXT)/sizeof(unsigned int));