remove dead code, remove intel_fbo.h includes
authorBrian <brian@i915.localnet.net>
Thu, 9 Aug 2007 18:36:47 +0000 (12:36 -0600)
committerBrian <brian@i915.localnet.net>
Thu, 9 Aug 2007 20:29:48 +0000 (14:29 -0600)
src/mesa/drivers/dri/intel_winsys/intel_blit.c
src/mesa/drivers/dri/intel_winsys/intel_buffers.c
src/mesa/drivers/dri/intel_winsys/intel_buffers.h
src/mesa/drivers/dri/intel_winsys/intel_context.c
src/mesa/drivers/dri/intel_winsys/intel_fbo.h
src/mesa/drivers/dri/intel_winsys/intel_screen.c
src/mesa/drivers/dri/intel_winsys/intel_surface.c

index 7e30c7d034e56cc5c2a1b58225ada109ea062116..48bbbbeac9b82172e1dff37989cc1eb9ae61f9ea 100644 (file)
@@ -34,7 +34,6 @@
 #include "intel_blit.h"
 #include "intel_buffers.h"
 #include "intel_context.h"
-#include "intel_fbo.h"
 #include "intel_reg.h"
 #include "vblank.h"
 
index d0139d5b2ad4cb25b12704dd6f46c4e72373b87e..cbf6ea38b3b7a29c1ddf57e2db644ff38f268170 100644 (file)
@@ -30,7 +30,6 @@
 #include "intel_blit.h"
 #include "intel_buffers.h"
 #include "intel_depthstencil.h"
-#include "intel_fbo.h"
 #include "intel_batchbuffer.h"
 #include "intel_reg.h"
 #include "context.h"
@@ -93,6 +92,7 @@ intel_intersect_cliprects(drm_clip_rect_t * dst,
    return GL_TRUE;
 }
 
+<<<<<<< HEAD:src/mesa/drivers/dri/intel_winsys/intel_buffers.c
 /**
  * Return pointer to current color drawing region, or NULL.
  */
@@ -107,7 +107,10 @@ intel_drawbuf_region(struct intel_context *intel)
    else
       return NULL;
 }
+=======
+>>>>>>> remove dead code, remove intel_fbo.h includes:src/mesa/drivers/dri/intel_winsys/intel_buffers.c
 
+<<<<<<< HEAD:src/mesa/drivers/dri/intel_winsys/intel_buffers.c
 /**
  * Return pointer to current color reading region, or NULL.
  */
@@ -122,6 +125,8 @@ intel_readbuf_region(struct intel_context *intel)
       return NULL;
 }
 #endif
+=======
+>>>>>>> remove dead code, remove intel_fbo.h includes:src/mesa/drivers/dri/intel_winsys/intel_buffers.c
 
 /**
  * This will be called whenever the currently bound window is moved/resized.
@@ -520,4 +525,3 @@ intelCopySubBuffer(__DRIdrawablePrivate * dPriv, int x, int y, int w, int h)
       fprintf(stderr, "%s: drawable has no context!\n", __FUNCTION__);
    }
 }
-
index 5834e3950100d1bc4b9547e95314b4a884886276..3e1597e3c4c7c1d98a9fe0ede0e137bf12ba4f95 100644 (file)
 struct intel_context;
 struct intel_framebuffer;
 
+/**
+ * Intel framebuffer, derived from gl_framebuffer.
+ */
+struct intel_framebuffer
+{
+   struct gl_framebuffer Base;
+
+   /* Drawable page flipping state */
+   GLboolean pf_active;
+   GLuint pf_seq;
+   GLint pf_pipes;
+   GLint pf_current_page;
+   GLint pf_num_pages;
+
+   /* VBI
+    */
+   GLuint vbl_seq;
+   GLuint vblank_flags;
+   GLuint vbl_waited;
+
+   int64_t swap_ust;
+   int64_t swap_missed_ust;
+
+   GLuint swap_count;
+   GLuint swap_missed_count;
+
+   GLuint vbl_pending[3];  /**< [number of color buffers] */
+};
+
 
 extern GLboolean
 intel_intersect_cliprects(drm_clip_rect_t * dest,
                           const drm_clip_rect_t * a,
                           const drm_clip_rect_t * b);
 
-extern struct pipe_region *intel_readbuf_region(struct intel_context *intel);
-
-extern struct pipe_region *intel_drawbuf_region(struct intel_context *intel);
-
 extern void intel_wait_flips(struct intel_context *intel, GLuint batch_flags);
 
 extern void intelSwapBuffers(__DRIdrawablePrivate * dPriv);
 
 extern void intelWindowMoved(struct intel_context *intel);
 
-extern void intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb);
-
-extern void intelInitBufferFuncs(struct dd_function_table *functions);
-
 #endif /* INTEL_BUFFERS_H */
index 0d83d4efd61a917c0d1c26d1f39e1b02915c0971..5aba4ef584760351ed831ca64c896c44b1dd33e7 100644 (file)
@@ -51,8 +51,8 @@
 #include "intel_ioctl.h"
 #include "intel_batchbuffer.h"
 #include "intel_blit.h"
-#include "intel_fbo.h"
 #include "intel_tex_layout.h"
+#include "intel_surface.h"
 
 #include "state_tracker/st_public.h"
 #include "state_tracker/st_context.h"
@@ -311,8 +311,6 @@ intelInitDriverFunctions(struct dd_function_table *functions)
    functions->GetString = intelGetString;
    functions->UpdateState = intelInvalidateState;
 
-   intelInitBufferFuncs(functions);
-
    st_init_driver_functions(functions);
 }
 
index 2801c7345d0380d5737fb7296dd887136a8613bb..0487c27600e70a1bb762a3c49849af971ad4b8ad 100644 (file)
@@ -36,7 +36,7 @@
 struct intel_context;
 struct pipe_region;
 
-
+#if 0
 /**
  * Intel framebuffer, derived from gl_framebuffer.
  */
@@ -65,6 +65,7 @@ struct intel_framebuffer
 
    GLuint vbl_pending[3];  /**< [number of color buffers] */
 };
+#endif
 
 
 /**
index e5f7b365274f78016449c35c57f946ee34abb601..b765c2b4b2c64bae6d29a0e3fd2b0e9c5b50b669 100644 (file)
@@ -38,9 +38,7 @@
 #include "intel_screen.h"
 #include "intel_batchbuffer.h"
 #include "intel_buffers.h"
-/*#include "intel_tex.h"*/
 #include "intel_ioctl.h"
-#include "intel_fbo.h"
 
 #include "i830_dri.h"
 #include "dri_bufpool.h"
index 20b6bda83f7f6b02ef291efedae22980a772c04c..13c34e6c8ecfc322b305fef1c8059c1f5b4d9a3c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "intel_context.h"
 #include "intel_buffers.h"
-#include "intel_fbo.h"
+#include "intel_surface.h"
 
 #include "pipe/p_state.h"
 #include "pipe/p_context.h"