i965g: consolidate some includes
authorKeith Whitwell <keithw@vmware.com>
Wed, 4 Nov 2009 23:37:52 +0000 (23:37 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 4 Nov 2009 23:37:52 +0000 (23:37 +0000)
src/gallium/drivers/i965/brw_batchbuffer.c
src/gallium/drivers/i965/brw_batchbuffer.h
src/gallium/drivers/i965/brw_draw_upload.c
src/gallium/drivers/i965/brw_pipe_clear.c
src/gallium/drivers/i965/brw_winsys.h
src/gallium/drivers/i965/brw_wm.c
src/gallium/drivers/i965/brw_wm_fp.c
src/gallium/winsys/drm/i965/xlib/xlib_i965.c

index 64d6754df5542e82319e0c2dee627dff5b769ff5..673bd1ed44d9898317fc53f914bdd2d6d3eaa85d 100644 (file)
@@ -27,8 +27,6 @@
 
 #include "util/u_memory.h"
 
-#include "pipe/p_error.h"
-
 #include "brw_batchbuffer.h"
 //#include "brw_decode.h"
 #include "brw_reg.h"
index b051638296c8c92e90ee00defe8dd66d3157de89..781cd698e44384e95efb32c1d1757b1991b09883 100644 (file)
@@ -3,8 +3,6 @@
 
 #include "util/u_debug.h"
 
-#include "pipe/p_error.h"
-
 #include "brw_types.h"
 #include "brw_winsys.h"
 #include "brw_reg.h"
index 6e12e8f4b3fd81916335db2553b28eb272f2bc4a..acebd4408011a7e5cf22ca082976accda1594910 100644 (file)
@@ -26,7 +26,6 @@
  **************************************************************************/
 
 #include "pipe/p_context.h"
-#include "pipe/p_error.h"
 
 #include "util/u_upload_mgr.h"
 #include "util/u_math.h"
index 69bc95e51aa8ac71fcb03d01f01a150f8ed1b730..34cad629770dfdb8d53305be52ae045140fc125a 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "util/u_pack_color.h"
 
-#include "pipe/p_error.h"
 #include "pipe/p_state.h"
 
 #include "brw_batchbuffer.h"
index b2ba3e86f97fdd357fd238d752ddcab91a80654b..f5ce9d13d737f4a259186e4618720b1e2607324a 100644 (file)
@@ -27,6 +27,7 @@
 #define BRW_WINSYS_H
 
 #include "pipe/p_compiler.h"
+#include "pipe/p_error.h"
 
 struct brw_winsys;
 struct pipe_fence_handle;
@@ -123,9 +124,9 @@ struct brw_winsys_screen {
    /* XXX: couldn't this be handled by returning true/false on
     * bo_emit_reloc?
     */
-   boolean (*check_aperture_space)( struct brw_winsys_screen *iws,
-                                   struct brw_winsys_buffer **buffers,
-                                   unsigned count );
+   enum pipe_error (*check_aperture_space)( struct brw_winsys_screen *iws,
+                                           struct brw_winsys_buffer **buffers,
+                                           unsigned count );
 
    /**
     * Map a buffer.
index 90780272da57cfac47780af7fe7a4f1447037682..815ae8c51aabbd32cbddb8cc9879d85918565d6e 100644 (file)
@@ -28,8 +28,6 @@
   * Authors:
   *   Keith Whitwell <keith@tungstengraphics.com>
   */
-#include "pipe/p_error.h"
-
 #include "tgsi/tgsi_info.h"
 
 #include "brw_context.h"
index 58f1d35b7df7a79975aaa63ecbb0eef8b21f473c..bba448815b6dddf01d9454e30cc97ddef4c993cf 100644 (file)
@@ -31,7 +31,6 @@
                
 
 #include "pipe/p_shader_tokens.h"
-#include "pipe/p_error.h"
 
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 08fce4b20b881f69221db0104fc760d324afd5f1..71d8f4bafc8d3ec348bd5acf27cb3756defcd441 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "util/u_memory.h"
 #include "util/u_math.h"
+#include "pipe/p_error.h"
 #include "pipe/p_context.h"
 
 #include "xm_winsys.h"
@@ -226,7 +227,7 @@ xlib_brw_bo_references(struct brw_winsys_buffer *a,
    return TRUE;
 }
 
-static boolean 
+static enum pipe_error
 xlib_brw_check_aperture_space( struct brw_winsys_screen *iws,
                                 struct brw_winsys_buffer **buffers,
                                 unsigned count )
@@ -241,7 +242,7 @@ xlib_brw_check_aperture_space( struct brw_winsys_screen *iws,
                 __FUNCTION__, count, 
                 (tot_size + 1023) / 1024);
 
-   return TRUE;
+   return PIPE_OK;
 }
 
 static void *