#include "intel_blit.h"
#include "intel_buffers.h"
#include "intel_context.h"
-#include "intel_fbo.h"
#include "intel_reg.h"
#include "vblank.h"
#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"
return GL_TRUE;
}
+<<<<<<< HEAD:src/mesa/drivers/dri/intel_winsys/intel_buffers.c
/**
* Return pointer to current color drawing region, or NULL.
*/
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.
*/
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.
fprintf(stderr, "%s: drawable has no context!\n", __FUNCTION__);
}
}
-
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 */
#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"
functions->GetString = intelGetString;
functions->UpdateState = intelInvalidateState;
- intelInitBufferFuncs(functions);
-
st_init_driver_functions(functions);
}
struct intel_context;
struct pipe_region;
-
+#if 0
/**
* Intel framebuffer, derived from gl_framebuffer.
*/
GLuint vbl_pending[3]; /**< [number of color buffers] */
};
+#endif
/**
#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"
#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"