Remove unused functions
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 29 May 2009 17:41:00 +0000 (13:41 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 29 May 2009 17:41:00 +0000 (13:41 -0400)
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/drivers/dri/r600/r600_context.h

index cbb63ba1f90ee56793338b6548070a33f6d6641a..8baaa6aca85a54e6bf3a867fee3d2ac8a19b84dc 100644 (file)
@@ -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,
index 2740c0a1f8f8788bba373d7c3b4e871c24e47d5d..454cc7bad5334c0ad914e99d744aa159a6a4edbd 100644 (file)
@@ -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;