minor cleanups, disable debugging
authorRoland Scheidegger <sroland@tungstengraphics.com>
Fri, 20 Jul 2007 09:33:24 +0000 (11:33 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Fri, 20 Jul 2007 09:33:24 +0000 (11:33 +0200)
src/mesa/drivers/dri/i915tex/i830_vtbl.c
src/mesa/drivers/dri/i915tex/intel_buffers.c
src/mesa/drivers/dri/i915tex/intel_context.c
src/mesa/drivers/dri/i915tex/intel_context.h
src/mesa/drivers/dri/i915tex/intel_screen.c
src/mesa/drivers/dri/i915tex/intel_state.c

index e432648ada09969d5328890630a63145edca6173..03d4788be1abf6281f222f9bf32d567b8b311957 100644 (file)
@@ -597,25 +597,6 @@ i830_set_draw_region(struct intel_context *intel,
    i830_state_draw_region(intel, &i830->state, color_region, depth_region);
 }
 
-#if 0
-static void
-i830_update_color_z_regions(intelContextPtr intel,
-                            const intelRegion * colorRegion,
-                            const intelRegion * depthRegion)
-{
-   i830ContextPtr i830 = I830_CONTEXT(intel);
-
-   i830->state.Buffer[I830_DESTREG_CBUFADDR1] =
-      (BUF_3D_ID_COLOR_BACK | BUF_3D_PITCH(colorRegion->pitch) |
-       BUF_3D_USE_FENCE);
-   i830->state.Buffer[I830_DESTREG_CBUFADDR2] = colorRegion->offset;
-
-   i830->state.Buffer[I830_DESTREG_DBUFADDR1] =
-      (BUF_3D_ID_DEPTH | BUF_3D_PITCH(depthRegion->pitch) | BUF_3D_USE_FENCE);
-   i830->state.Buffer[I830_DESTREG_DBUFADDR2] = depthRegion->offset;
-}
-#endif
-
 
 /* This isn't really handled at the moment.
  */
index ee3266e09bde14b58d078630baf1ddb757320907..4b2a4acaf98130cf9d59285647c74d8123149f00 100644 (file)
@@ -645,7 +645,7 @@ intelScheduleSwap(const __DRIdrawablePrivate * dPriv, GLboolean *missed_target)
 
    return ret;
 }
-  
+
 void
 intelSwapBuffers(__DRIdrawablePrivate * dPriv)
 {
index 769287ba6a86a6cf4e78a20a31cc13a8de31847c..f032c97dfbb02382c4fcb27e666f20066492055c 100644 (file)
@@ -703,8 +703,7 @@ intelContendedLock(struct intel_context *intel, GLuint flags)
 }
 
 
-
-/* Lock the hardware and validate our state.  
+/* Lock the hardware and validate our state.
  */
 void LOCK_HARDWARE( struct intel_context *intel )
 {
index 628a15f8de59ce342369bebbd6ac3266705cdd89..535a93effacba146ca8ffa6dd4a0efdc031143e3 100644 (file)
@@ -335,7 +335,7 @@ __memcpy(void *to, const void *from, size_t n)
 /* ================================================================
  * Debugging:
  */
-#define DO_DEBUG               1
+#define DO_DEBUG               0
 #if DO_DEBUG
 extern int INTEL_DEBUG;
 #else
index 5ad0932e2ebce22583a76d6ceaeef61aaefdfc9d..3c0ae854e466cd71ac256d886df64fa75cc440a8 100644 (file)
@@ -118,7 +118,7 @@ intel_recreate_static(intelScreenPrivate *intelScreen,
  * Only used for real front buffer now.
  *
  * Note that these don't allocate video memory, just describe
- * allocations alread made by the X server.
+ * allocations already made by the X server.
  */
 static void
 intel_recreate_static_regions(intelScreenPrivate *intelScreen)
@@ -222,7 +222,7 @@ intelUpdateScreenFromSAREA(intelScreenPrivate * intelScreen,
    intelScreen->front.handle = sarea->front_handle;
    intelScreen->front.size = sarea->front_size;
 
-   if (1)
+   if (0)
       intelPrintSAREA(sarea);
 }
 
index b2773990e4b15d7240c56e874a1f3abd0b6d1511..5c5f2c6de5c7e843e524c24cc658415c54c6af5f 100644 (file)
@@ -194,7 +194,7 @@ intelClearColor(GLcontext * ctx, const GLfloat color[4])
  * Update the viewport transformation matrix.  Depends on:
  *  - viewport pos/size
  *  - depthrange
- *  - window pos/size or FBO size
+ *  - window size or FBO size
  */
 static void
 intelCalcViewport(GLcontext * ctx)