asst clean-ups
authorBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 20:37:12 +0000 (13:37 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 20:37:12 +0000 (13:37 -0700)
src/mesa/drivers/dri/intel_winsys/intel_context.c
src/mesa/drivers/dri/intel_winsys/intel_context.h
src/mesa/drivers/dri/intel_winsys/intel_lock.c
src/mesa/drivers/dri/intel_winsys/intel_screen.c
src/mesa/drivers/dri/intel_winsys/intel_winsys.h

index 2a29c2ab2700024f0f4e71f3843b1f07dce86155..607d316e36a2bb9135127c7d075092551f2e3fb7 100644 (file)
@@ -40,7 +40,6 @@
 #include "pipe/p_context.h"
 
 #include "utils.h"
-#include "xmlpool.h"            /* for symbolic values of enum-type options */
 
 
 #ifdef DEBUG
index 15d849d52b5a46c5af8f975a860900723c43cd0c..eac5cd8b4c7a010f5d937dccbdce0aead294f7b7 100644 (file)
@@ -25,8 +25,8 @@
  * 
  **************************************************************************/
 
-#ifndef INTELCONTEXT_INC
-#define INTELCONTEXT_INC
+#ifndef INTEL_CONTEXT_H
+#define INTEL_CONTEXT_H
 
 
 #include "drm.h"
index 65d3eb3b3a6cb6318cb9ccfaf1752c1bf3eea3d1..55606dba8b6a9bc052398fd846b57592f3ae7f4e 100644 (file)
 
 
 #include "state_tracker/st_public.h"
-
-#include "intel_screen.h"
 #include "intel_context.h"
-#include "intel_batchbuffer.h"
-#include "intel_swapbuffers.h"
-
 #include "i830_dri.h"
 
 
@@ -73,13 +68,10 @@ intelContendedLock(struct intel_context *intel, uint flags)
 void LOCK_HARDWARE( struct intel_context *intel )
 {
     char __ret=0;
-    int curbuf;
 
     _glthread_LOCK_MUTEX(lockMutex);
     assert(!intel->locked);
 
-    curbuf = 0; /* current draw buf: 0 = front, 1 = back */
-
     DRM_CAS(intel->driHwLock, intel->hHWContext,
             (DRM_LOCK_HELD|intel->hHWContext), __ret);
 
index c14e84ebd6bc6c2a0072dd743f8667ccc3b334fd..fa5c19ecd7f5a9c33fe990c2b0bc33b89240e0d8 100644 (file)
@@ -52,14 +52,14 @@ PUBLIC const char __driConfigOptions[] =
    DRI_CONF_FORCE_S3TC_ENABLE(false)
    DRI_CONF_ALLOW_LARGE_TEXTURES(1)
    DRI_CONF_SECTION_END DRI_CONF_END;
-     const GLuint __driNConfigOptions = 4;
+
+const GLuint __driNConfigOptions = 4;
 
 #ifdef USE_NEW_INTERFACE
-     static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
+static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
 #endif /*USE_NEW_INTERFACE */
 
-     extern const struct dri_extension card_extensions[];
-
+extern const struct dri_extension card_extensions[];
 
 
 
@@ -255,7 +255,7 @@ intelDestroyScreen(__DRIscreenPrivate * sPriv)
 {
    struct intel_screen *intelScreen = intel_screen(sPriv);
 
-//   intelUnmapScreenRegions(intelScreen);
+   /*  intelUnmapScreenRegions(intelScreen); */
 
    if (intelScreen->havePools) {
       driPoolTakeDown(intelScreen->regionPool);
index 2c8aa20c2a3f544e886915c5683d9b9baf8752c5..78f5cb6519bde603cfe38e260fa0e62b7259ee28 100644 (file)
@@ -25,8 +25,8 @@
  * 
  **************************************************************************/
 
-#ifndef INTEL_PIPE_H
-#define INTEL_PIPE_H
+#ifndef INTEL_WINSYS_H
+#define INTEL_WINSYS_H
 
 struct intel_context;
 struct pipe_context;