r700InitChipObject(r600); /* let the eag... */
(r600->chipobj.InitFuncs)(&functions);
- r600->chipobj.EmitShader = r600EmitShader;
- r600->chipobj.DeleteShader = r600DeleteShader;
if (!radeonInitContext(&r600->radeon, &functions,
glVisual, driContextPriv,
GLuint (*GetTexObjSize)(void);
- /* ------------ IN ------------------- */
- GLboolean (*EmitShader)( GLcontext * ctx,
- void ** shaderbo,
- GLvoid * data,
- int sizeinDWORD,
- char * szShaderUsage);
- GLboolean (*DeleteShader)(GLcontext * ctx,
- void * shaderbo);
struct tnl_pipeline_stage **stages;
} chip_object;
if(0 != r700->pbo_vs_clear)
{
- (context->chipobj.DeleteShader)(context, r700->pbo_vs_clear);
+ r600DeleteShader(context, r700->pbo_vs_clear);
}
if(0 != r700->pbo_fs_clear)
{
- (context->chipobj.DeleteShader)(context, r700->pbo_fs_clear);
+ r600DeleteShader(context, r700->pbo_fs_clear);
}
FREE(r700->pStateList);
}
/* Load fp to gpu */
- (context->chipobj.EmitShader)(ctx,
+ r600EmitShader(ctx,
&(fp->shaderbo),
(GLvoid *)(fp->r700Shader.pProgram),
fp->r700Shader.uShaderBinaryDWORDSize,
vp = (struct r700_vertex_program*)prog;
/* Release DMA region */
- (context->chipobj.DeleteShader)(ctx, vp->shaderbo);
+ r600DeleteShader(ctx, vp->shaderbo);
/* Clean up */
Clean_Up_Assembler(&(vp->r700AsmCode));
fp = (struct r700_fragment_program*)prog;
/* Release DMA region */
- (context->chipobj.DeleteShader)(ctx, fp->shaderbo);
+ r600DeleteShader(ctx, fp->shaderbo);
/* Clean up */
Clean_Up_Assembler(&(fp->r700AsmCode));
}
/* Load vp to gpu */
- (context->chipobj.EmitShader)(ctx,
+ r600EmitShader(ctx,
&(vp->shaderbo),
(GLvoid *)(vp->r700Shader.pProgram),
vp->r700Shader.uShaderBinaryDWORDSize,\r