more cleanup
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 29 May 2009 18:23:04 +0000 (14:23 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 29 May 2009 18:23:04 +0000 (14:23 -0400)
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/drivers/dri/r600/r600_context.h
src/mesa/drivers/dri/r600/r700_chip.c
src/mesa/drivers/dri/r600/r700_fragprog.c
src/mesa/drivers/dri/r600/r700_oglprog.c
src/mesa/drivers/dri/r600/r700_vertprog.c

index 01440705c396f4e5c38f015734f924fe5bf2966a..9b057ad1b5fa5b88bc99cc7bfd1ec1b619e90473 100644 (file)
@@ -251,8 +251,6 @@ GLboolean r600CreateContext(const __GLcontextModes * glVisual,
        r700InitChipObject(r600);  /* let the eag... */
 
     (r600->chipobj.InitFuncs)(&functions);
-    r600->chipobj.EmitShader     = r600EmitShader;
-    r600->chipobj.DeleteShader   = r600DeleteShader;
 
        if (!radeonInitContext(&r600->radeon, &functions,
                               glVisual, driContextPriv,
index 63c018dc9b596d6b07172b286d9c6f5ec242c6b3..6f41bbcbbc0abf26983afa064d3b91857a471aec 100644 (file)
@@ -140,14 +140,6 @@ typedef struct chip_object
 
     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;
 
index 81eacc74eb664b5e5f0bd59cf97b6382567d6b40..5cd0d72d6e5dd135cc90d43906804d12a67f8814 100644 (file)
@@ -55,12 +55,12 @@ static GLboolean r700DestroyChipObj(GLcontext * ctx)
 
     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);
index 3aacad99197b75cc9b907a87f98ab473fec6adba..c46094dcd7ee1957fcee578981828562f14f03a1 100644 (file)
@@ -278,7 +278,7 @@ GLboolean r700SetupFragmentProgram(GLcontext * ctx)
            }
 
         /* Load fp to gpu */
-        (context->chipobj.EmitShader)(ctx, 
+        r600EmitShader(ctx, 
                        &(fp->shaderbo), 
                        (GLvoid *)(fp->r700Shader.pProgram),
                        fp->r700Shader.uShaderBinaryDWORDSize,
index dc8c936165954755a2b90c9a846dba08d7881806..ba49367dc4fbf5cb2861d9d0bd4dfdf2b5956688 100644 (file)
@@ -97,7 +97,7 @@ static void r700DeleteProgram(GLcontext * ctx, struct gl_program *prog)
         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));
@@ -108,7 +108,7 @@ static void r700DeleteProgram(GLcontext * ctx, struct gl_program *prog)
                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));
index 932555376cb26eb90345b99c035273669290ef3b..2861918c4234d59b0d7eacb5017ab5b62401ac57 100644 (file)
@@ -357,7 +357,7 @@ GLboolean r700SetupVertexProgram(GLcontext * ctx)
            }
 
         /* Load vp to gpu */
-        (context->chipobj.EmitShader)(ctx, 
+        r600EmitShader(ctx, 
                        &(vp->shaderbo), 
                        (GLvoid *)(vp->r700Shader.pProgram),
                        vp->r700Shader.uShaderBinaryDWORDSize,\r