r700InitChipObject(r600); /* let the eag... */
- (r600->chipobj.InitFuncs)(&functions);
+ r700InitStateFuncs(&functions);
+ r700InitTextureFuncs(&functions);
+ r700InitShaderFuncs(&functions);
+ r700InitIoctlFuncs(&functions);
if (!radeonInitContext(&r600->radeon, &functions,
glVisual, driContextPriv,
r600InitCmdBuf(r600);
- (r600->chipobj.InitState)(r600->radeon.glCtx);
+ r700InitState(r600->radeon.glCtx);
TNL_CONTEXT(ctx)->Driver.RunPipeline = r600RunPipeline;
/* ------------ OUT ------------------- */
GLboolean (*DestroyChipObj)(GLcontext * ctx);
- void (*InitFuncs)(struct dd_function_table *functions);
-
- void (*InitState)(GLcontext * ctx);
-
- GLuint (*GetTexObjSize)(void);
-
} chip_object;
/**
return GL_TRUE;
}
-static void r700InitFuncs(struct dd_function_table *functions)
-{
- r700InitStateFuncs(functions);
- r700InitTextureFuncs(functions);
- r700InitShaderFuncs(functions);
- r700InitIoctlFuncs(functions);
-}
-
#define LINK_STATES(reg) \
do \
{ \
context->chipobj.DestroyChipObj = r700DestroyChipObj;
- context->chipobj.GetTexObjSize = r700GetTexObjSize;
-
- context->chipobj.InitFuncs = r700InitFuncs;
-
- context->chipobj.InitState = r700InitState;
-
/* init state list */
r700->pStateList = (ContextState*) MALLOC (sizeof(ContextState)*sizeof(R700_CHIP_CONTEXT)/sizeof(unsigned int));
pStateListWork = r700->pStateList;
#include "r700_tex.h"
-GLuint r700GetTexObjSize(void)
-{
- return sizeof(r700TexObj);
-}
/* to be enable */
void r700SetTexBuffer(__DRIcontext *pDRICtx, GLint target,