OSDN Git Service

move dri_bo() to a header file
authorkeithw <keithw@keithw-laptop.(none)>
Fri, 10 Aug 2007 15:03:38 +0000 (16:03 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 10 Aug 2007 15:04:17 +0000 (16:04 +0100)
src/mesa/drivers/dri/intel_winsys/intel_winsys.h
src/mesa/drivers/dri/intel_winsys/intel_winsys_i915.c
src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c

index 6d4a5a4..2c8aa20 100644 (file)
@@ -31,6 +31,8 @@
 struct intel_context;
 struct pipe_context;
 struct pipe_winsys;
+struct pipe_buffer_handle;
+struct _DriBufferObject;
 
 struct pipe_winsys *
 intel_create_pipe_winsys( struct intel_context *intel );
@@ -42,4 +44,22 @@ struct pipe_context *
 intel_create_i915simple( struct intel_context *intel );
 
 
+
+/* Turn the pipe opaque buffer pointer into a dri_bufmgr opaque
+ * buffer pointer...
+ */
+static INLINE struct _DriBufferObject *
+dri_bo( struct pipe_buffer_handle *bo )
+{
+   return (struct _DriBufferObject *)bo;
+}
+
+static INLINE struct pipe_buffer_handle *
+pipe_bo( struct _DriBufferObject *bo )
+{
+   return (struct pipe_buffer_handle *)bo;
+}
+
+
+
 #endif
index 51e3055..56a27a9 100644 (file)
@@ -116,7 +116,7 @@ static void intel_i915_batch_flush( struct i915_winsys *sws )
    struct intel_context *intel = intel_i915_winsys(sws)->intel;
 
    intel_batchbuffer_flush( intel->batch );
-   if (0) intel_i915_batch_wait_idle( sws );
+//   if (0) intel_i915_batch_wait_idle( sws );
 }
 
 
index 22daac6..7f47b93 100644 (file)
@@ -51,21 +51,6 @@ struct intel_pipe_winsys {
 
 
 
-/* Turn the pipe opaque buffer pointer into a dri_bufmgr opaque
- * buffer pointer...
- */
-static inline struct _DriBufferObject *
-dri_bo( struct pipe_buffer_handle *bo )
-{
-   return (struct _DriBufferObject *)bo;
-}
-
-static inline struct pipe_buffer_handle *
-pipe_bo( struct _DriBufferObject *bo )
-{
-   return (struct pipe_buffer_handle *)bo;
-}
-
 /* Turn a pipe winsys into an intel/pipe winsys:
  */
 static inline struct intel_pipe_winsys *