From 70a0301c5bd683646b08d32ad2fca4160295cd18 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Fri, 29 May 2009 13:41:00 -0400 Subject: [PATCH] Remove unused functions --- src/mesa/drivers/dri/r600/r600_context.c | 29 ------------------------ src/mesa/drivers/dri/r600/r600_context.h | 14 ------------ 2 files changed, 43 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r600_context.c b/src/mesa/drivers/dri/r600/r600_context.c index cbb63ba1f90..8baaa6aca85 100644 --- a/src/mesa/drivers/dri/r600/r600_context.c +++ b/src/mesa/drivers/dri/r600/r600_context.c @@ -207,32 +207,6 @@ static void r600_init_vtbl(radeonContextPtr radeon) radeon->vtbl.fallback = r600_fallback; } -/* to be enabled */ -static GLboolean r600LoadMemSurf(context_t *context, - GLuint dst_offset, /* gpu addr */ - GLuint dst_pitch_in_pixel, - GLuint src_width_in_pixel, - GLuint height, - GLuint byte_per_pixel, - unsigned char* pSrc) /* source data */ -{ - return GL_TRUE; -} -/* to be enabled */ -static GLboolean r600AllocMemSurf(context_t *context, - void **ppmemBlock, - void **ppheap, - GLuint *prefered_heap, /* Now used RADEON_LOCAL_TEX_HEAP, return actual heap used. */ - GLuint totalSize) -{ - return GL_TRUE; -} - -/* to be enabled */ -static void r600MemUse(context_t *context, int id) -{ -} - /* Create the device specific rendering context. */ GLboolean r600CreateContext(const __GLcontextModes * glVisual, @@ -279,9 +253,6 @@ GLboolean r600CreateContext(const __GLcontextModes * glVisual, (r600->chipobj.InitFuncs)(&functions); r600->chipobj.EmitShader = r600EmitShader; r600->chipobj.DeleteShader = r600DeleteShader; - r600->chipobj.LoadMemSurf = r600LoadMemSurf; - r600->chipobj.AllocMemSurf = r600AllocMemSurf; - r600->chipobj.MemUse = r600MemUse; if (!radeonInitContext(&r600->radeon, &functions, glVisual, driContextPriv, diff --git a/src/mesa/drivers/dri/r600/r600_context.h b/src/mesa/drivers/dri/r600/r600_context.h index 2740c0a1f8f..454cc7bad53 100644 --- a/src/mesa/drivers/dri/r600/r600_context.h +++ b/src/mesa/drivers/dri/r600/r600_context.h @@ -175,20 +175,6 @@ typedef struct chip_object char * szShaderUsage); GLboolean (*DeleteShader)(GLcontext * ctx, void * shaderbo); - void (*MemUse)(context_t *context, int id); - GLboolean (*LoadMemSurf)(context_t *context, - GLuint dst_offset, /* gpu addr */ - GLuint dst_pitch_in_pixel, - GLuint src_width_in_pixel, - GLuint height, - GLuint byte_per_pixel, - unsigned char* pSrc); /* source data */ - GLboolean (*AllocMemSurf)(context_t *context, - void **ppmemBlock, - void **ppheap, - GLuint *prefered_heap, - GLuint totalSize); - struct tnl_pipeline_stage **stages; } chip_object; -- 2.30.2