more cleanup
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 29 May 2009 18:55:12 +0000 (14:55 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 29 May 2009 18:55:12 +0000 (14:55 -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_render.c

index 9b057ad1b5fa5b88bc99cc7bfd1ec1b619e90473..bd537160f12f68675211d966f5675a8f32b385eb 100644 (file)
@@ -92,6 +92,7 @@ int hw_tcl_on = 1;
 
 #include "extension_helper.h"
 
+extern const struct tnl_pipeline_stage *r700_pipeline[];
 
 const struct dri_extension card_extensions[] = {
   /* *INDENT-OFF* */
@@ -310,7 +311,7 @@ GLboolean r600CreateContext(const __GLcontextModes * glVisual,
        /* Install the customized pipeline:
         */
        _tnl_destroy_pipeline(ctx);
-       _tnl_install_pipeline(ctx, (const struct tnl_pipeline_stage **)(r600->chipobj.stages));
+       _tnl_install_pipeline(ctx, r700_pipeline);
 
        /* Try and keep materials and vertices separate:
         */
index 6f41bbcbbc0abf26983afa064d3b91857a471aec..8bfcb7b4e03fdaaac013a20915bcb4f04f4409bf 100644 (file)
@@ -140,7 +140,6 @@ typedef struct chip_object
 
     GLuint    (*GetTexObjSize)(void);
 
-    struct tnl_pipeline_stage **stages;
 } chip_object;
 
 /**
index 3db03578ede03290e466444eed7526715be52b68..3ceb2794b09ad62a9c862d9975c8da302ce7d247 100644 (file)
@@ -39,8 +39,6 @@
 #include "r700_vertprog.h"
 #include "r700_ioctl.h"
 
-extern const struct tnl_pipeline_stage *r700_pipeline[];
-
 static GLboolean r700DestroyChipObj(GLcontext * ctx)
 {
     context_t * context = R700_CONTEXT(ctx);
@@ -89,8 +87,6 @@ GLboolean r700InitChipObject(context_t *context)
 
     context->chipobj.GetTexObjSize  = r700GetTexObjSize;
 
-    context->chipobj.stages = r700_pipeline;
-
     context->chipobj.InitFuncs = r700InitFuncs;
 
     context->chipobj.InitState = r700InitState;
index 1f0604da5d31a1077383db23fa79e3139021e067..ded5f51a6a18f70c5415e50407be1e40e473fb35 100644 (file)
@@ -195,7 +195,7 @@ GLboolean r700SyncSurf(context_t *context)
 
 unsigned int r700PrimitiveType(int prim)
 {
-    switch (prim & PRIM_MODE_MASK) 
+    switch (prim & PRIM_MODE_MASK)
     {
     case GL_POINTS:
         return DI_PT_POINTLIST;