gallium: pipe/p_inlines.h -> util/u_inlines.h
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Feb 2010 14:42:17 +0000 (14:42 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Feb 2010 14:42:17 +0000 (14:42 +0000)
191 files changed:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/auxiliary/draw/draw_pipe_pstipple.c
src/gallium/auxiliary/pipebuffer/pb_buffer.h
src/gallium/auxiliary/tgsi/tgsi_text.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/auxiliary/util/u_debug.c
src/gallium/auxiliary/util/u_draw_quad.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_inlines.h [new file with mode: 0644]
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/util/u_tile.c
src/gallium/auxiliary/util/u_upload_mgr.c
src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/drivers/cell/ppu/cell_clear.c
src/gallium/drivers/cell/ppu/cell_draw_arrays.c
src/gallium/drivers/cell/ppu/cell_fence.c
src/gallium/drivers/cell/ppu/cell_pipe_state.c
src/gallium/drivers/cell/ppu/cell_state_emit.c
src/gallium/drivers/cell/ppu/cell_state_shader.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/failover/fo_state.c
src/gallium/drivers/i915/i915_buffer.c
src/gallium/drivers/i915/i915_context.c
src/gallium/drivers/i915/i915_prim_vbuf.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i915/i915_texture.c
src/gallium/drivers/i965/brw_context.c
src/gallium/drivers/i965/brw_draw.c
src/gallium/drivers/i965/brw_draw_upload.c
src/gallium/drivers/i965/brw_pipe_fb.c
src/gallium/drivers/i965/brw_pipe_sampler.c
src/gallium/drivers/i965/brw_pipe_shader.c
src/gallium/drivers/i965/brw_screen.c
src/gallium/drivers/i965/brw_screen_buffers.c
src/gallium/drivers/i965/brw_winsys.h
src/gallium/drivers/identity/id_objects.c
src/gallium/drivers/llvmpipe/lp_buffer.c
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_state_surface.c
src/gallium/drivers/llvmpipe/lp_tex_cache.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_tile_cache.c
src/gallium/drivers/nv04/nv04_miptree.c
src/gallium/drivers/nv04/nv04_prim_vbuf.c
src/gallium/drivers/nv04/nv04_screen.c
src/gallium/drivers/nv04/nv04_state.c
src/gallium/drivers/nv04/nv04_surface.c
src/gallium/drivers/nv04/nv04_transfer.c
src/gallium/drivers/nv04/nv04_vbo.c
src/gallium/drivers/nv10/nv10_miptree.c
src/gallium/drivers/nv10/nv10_prim_vbuf.c
src/gallium/drivers/nv10/nv10_state.c
src/gallium/drivers/nv10/nv10_surface.c
src/gallium/drivers/nv10/nv10_transfer.c
src/gallium/drivers/nv10/nv10_vbo.c
src/gallium/drivers/nv20/nv20_miptree.c
src/gallium/drivers/nv20/nv20_prim_vbuf.c
src/gallium/drivers/nv20/nv20_state.c
src/gallium/drivers/nv20/nv20_surface.c
src/gallium/drivers/nv20/nv20_transfer.c
src/gallium/drivers/nv20/nv20_vbo.c
src/gallium/drivers/nv20/nv20_vertprog.c
src/gallium/drivers/nv30/nv30_fragprog.c
src/gallium/drivers/nv30/nv30_miptree.c
src/gallium/drivers/nv30/nv30_state.c
src/gallium/drivers/nv30/nv30_surface.c
src/gallium/drivers/nv30/nv30_transfer.c
src/gallium/drivers/nv30/nv30_vbo.c
src/gallium/drivers/nv30/nv30_vertprog.c
src/gallium/drivers/nv40/nv40_draw.c
src/gallium/drivers/nv40/nv40_fragprog.c
src/gallium/drivers/nv40/nv40_miptree.c
src/gallium/drivers/nv40/nv40_state.c
src/gallium/drivers/nv40/nv40_surface.c
src/gallium/drivers/nv40/nv40_transfer.c
src/gallium/drivers/nv40/nv40_vbo.c
src/gallium/drivers/nv40/nv40_vertprog.c
src/gallium/drivers/nv50/nv50_miptree.c
src/gallium/drivers/nv50/nv50_program.c
src/gallium/drivers/nv50/nv50_query.c
src/gallium/drivers/nv50/nv50_state.c
src/gallium/drivers/nv50/nv50_surface.c
src/gallium/drivers/nv50/nv50_transfer.c
src/gallium/drivers/nv50/nv50_vbo.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_state_fs.c
src/gallium/drivers/softpipe/sp_state_surface.c
src/gallium/drivers/softpipe/sp_tex_tile_cache.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/gallium/drivers/softpipe/sp_video_context.c
src/gallium/drivers/softpipe/sp_winsys.c
src/gallium/drivers/svga/svga_context.c
src/gallium/drivers/svga/svga_draw.c
src/gallium/drivers/svga/svga_draw_arrays.c
src/gallium/drivers/svga/svga_draw_elements.c
src/gallium/drivers/svga/svga_pipe_blend.c
src/gallium/drivers/svga/svga_pipe_constants.c
src/gallium/drivers/svga/svga_pipe_depthstencil.c
src/gallium/drivers/svga/svga_pipe_draw.c
src/gallium/drivers/svga/svga_pipe_fs.c
src/gallium/drivers/svga/svga_pipe_misc.c
src/gallium/drivers/svga/svga_pipe_rasterizer.c
src/gallium/drivers/svga/svga_pipe_sampler.c
src/gallium/drivers/svga/svga_pipe_vertex.c
src/gallium/drivers/svga/svga_pipe_vs.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/svga/svga_screen_buffer.c
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/drivers/svga/svga_screen_texture.h
src/gallium/drivers/svga/svga_state_constants.c
src/gallium/drivers/svga/svga_state_framebuffer.c
src/gallium/drivers/svga/svga_state_fs.c
src/gallium/drivers/svga/svga_state_need_swtnl.c
src/gallium/drivers/svga/svga_state_rss.c
src/gallium/drivers/svga/svga_state_tss.c
src/gallium/drivers/svga/svga_state_vdecl.c
src/gallium/drivers/svga/svga_state_vs.c
src/gallium/drivers/svga/svga_swtnl_backend.c
src/gallium/drivers/svga/svga_swtnl_draw.c
src/gallium/drivers/svga/svga_swtnl_state.c
src/gallium/drivers/trace/tr_buffer.c
src/gallium/drivers/trace/tr_screen.c
src/gallium/drivers/trace/tr_texture.c
src/gallium/include/pipe/p_inlines.h [deleted file]
src/gallium/include/pipe/p_refcnt.h
src/gallium/include/pipe/p_state.h
src/gallium/include/pipe/p_video_state.h
src/gallium/state_trackers/egl/x11/sw_winsys.c
src/gallium/state_trackers/python/gallium.i
src/gallium/state_trackers/python/st_device.c
src/gallium/state_trackers/python/st_llvmpipe_winsys.c
src/gallium/state_trackers/python/st_sample.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/api_images.c
src/gallium/state_trackers/vega/api_masks.c
src/gallium/state_trackers/vega/api_path.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/polygon.c
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/shader.c
src/gallium/state_trackers/vega/shaders_cache.c
src/gallium/state_trackers/vega/st_inlines.h
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/vega/vg_tracker.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/state_trackers/xorg/xorg_renderer.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.h
src/gallium/winsys/drm/vmware/core/vmw_buffer.c
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
src/gallium/winsys/drm/vmware/core/vmw_screen_svga.c
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c
src/gallium/winsys/gdi/gdi_softpipe_winsys.c
src/gallium/winsys/xlib/xlib_brw_context.c
src/gallium/winsys/xlib/xlib_cell.c
src/gallium/winsys/xlib/xlib_llvmpipe.c
src/gallium/winsys/xlib/xlib_softpipe.c
src/mesa/es/state_tracker/st_cb_drawtex.c
src/mesa/state_tracker/st_atom_constbuf.c
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_accum.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_blit.c
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c
src/mesa/state_tracker/st_framebuffer.c
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_inlines.h
src/mesa/state_tracker/st_texture.c

index dec830ba93eedc630efbaeb048dffa77888d15c4..c638239e80b44185b7c9621e22bde48da797e1b8 100644 (file)
@@ -36,6 +36,7 @@
   */
 
 #include "pipe/p_state.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "tgsi/tgsi_parse.h"
 
index 4585dcdb48ab8f39dc911d868e0d4fb5a67db27f..e58129b99d85c9f67a36245c0ad84e26b7c7d90f 100644 (file)
@@ -35,6 +35,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_math.h"
index 0cc2b7186416dce314a29d1a3f984360612b0298..f047d8359c42e2c42ccbcfe8da25b44b3bdcfa93 100644 (file)
@@ -37,6 +37,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_math.h"
index eb7e84be84863c1a3336ccde8dacd92bde9cd294..34b1b77df4009a4d5135080baa349bd313a9b92c 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "pipe/p_compiler.h"
 #include "util/u_debug.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 
index 96be353e264f2cf8856ced147a0c20dc1ebd3af0..f918151daaabd0f11ca542d8c188c0e706554280 100644 (file)
@@ -29,7 +29,7 @@
 #include "util/u_memory.h"
 #include "util/u_prim.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "tgsi_text.h"
 #include "tgsi_build.h"
 #include "tgsi_info.h"
index eb63bec7b50f4c6d18e6cba72c8025b7d0527f69..f0bc58a558fdcae04f589531aecbf5e85751f9ef 100644 (file)
@@ -36,7 +36,7 @@
 #include "pipe/p_context.h"
 #include "util/u_debug.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_shader_tokens.h"
 #include "pipe/p_state.h"
 
index 935e11c5d85145a5a856d73568fc569acf0e32c8..f3b4491d17542a1eceef051d9a3f35af70438c0e 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_shader_tokens.h"
 #include "pipe/p_state.h"
 
index 9b4e6ca2a73693e86d600964d89fd481f34e2c8f..892ca8fecf16b84ebff7dc524f81e76e855d1a96 100644 (file)
@@ -63,7 +63,7 @@
 #include "util/u_debug.h" 
 #include "pipe/p_format.h" 
 #include "pipe/p_state.h" 
-#include "pipe/p_inlines.h" 
+#include "util/u_inlines.h" 
 #include "util/u_format.h"
 #include "util/u_memory.h" 
 #include "util/u_string.h" 
index e2e23c3cdd8ddb1334d4d2f8323855af2172ef8e..14506e8451968b238373eba26675b8d238cff26a 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_draw_quad.h"
 
 
index 8611231ed705041d7bbff6920d5fd127d6e9a0aa..4e358d3938c01f25138b13b045a23298cbf3d190 100644 (file)
@@ -37,7 +37,7 @@
 #include "pipe/p_context.h"
 #include "util/u_debug.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_shader_tokens.h"
 #include "pipe/p_state.h"
 
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
new file mode 100644 (file)
index 0000000..53f0de4
--- /dev/null
@@ -0,0 +1,301 @@
+/**************************************************************************
+ * 
+ * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * 
+ **************************************************************************/
+
+#ifndef U_INLINES_H
+#define U_INLINES_H
+
+#include "pipe/p_context.h"
+#include "pipe/p_defines.h"
+#include "pipe/p_screen.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Reference counting helper functions.
+ */
+
+
+static INLINE void
+pipe_reference_init(struct pipe_reference *reference, unsigned count)
+{
+   p_atomic_set(&reference->count, count);
+}
+
+static INLINE boolean
+pipe_is_referenced(struct pipe_reference *reference)
+{
+   return p_atomic_read(&reference->count) != 0;
+}
+
+/**
+ * Update reference counting.
+ * The old thing pointed to, if any, will be unreferenced.
+ * Both 'ptr' and 'reference' may be NULL.
+ * \return TRUE if the object's refcount hits zero and should be destroyed.
+ */
+static INLINE boolean
+pipe_reference(struct pipe_reference *ptr, struct pipe_reference *reference)
+{
+   boolean destroy = FALSE;
+
+   if(ptr != reference) {
+      /* bump the reference.count first */
+      if (reference) {
+         assert(pipe_is_referenced(reference));
+         p_atomic_inc(&reference->count);
+      }
+
+      if (ptr) {
+         assert(pipe_is_referenced(ptr));
+         if (p_atomic_dec_zero(&ptr->count)) {
+            destroy = TRUE;
+         }
+      }
+   }
+
+   return destroy;
+}
+
+static INLINE void
+pipe_buffer_reference(struct pipe_buffer **ptr, struct pipe_buffer *buf)
+{
+   struct pipe_buffer *old_buf = *ptr;
+
+   if (pipe_reference(&(*ptr)->reference, &buf->reference))
+      old_buf->screen->buffer_destroy(old_buf);
+   *ptr = buf;
+}
+
+static INLINE void
+pipe_surface_reference(struct pipe_surface **ptr, struct pipe_surface *surf)
+{
+   struct pipe_surface *old_surf = *ptr;
+
+   if (pipe_reference(&(*ptr)->reference, &surf->reference))
+      old_surf->texture->screen->tex_surface_destroy(old_surf);
+   *ptr = surf;
+}
+
+static INLINE void
+pipe_texture_reference(struct pipe_texture **ptr, struct pipe_texture *tex)
+{
+   struct pipe_texture *old_tex = *ptr;
+
+   if (pipe_reference(&(*ptr)->reference, &tex->reference))
+      old_tex->screen->texture_destroy(old_tex);
+   *ptr = tex;
+}
+
+
+/*
+ * Convenience wrappers for screen buffer functions.
+ */
+
+static INLINE struct pipe_buffer *
+pipe_buffer_create( struct pipe_screen *screen,
+                    unsigned alignment, unsigned usage, unsigned size )
+{
+   return screen->buffer_create(screen, alignment, usage, size);
+}
+
+static INLINE struct pipe_buffer *
+pipe_user_buffer_create( struct pipe_screen *screen, void *ptr, unsigned size )
+{
+   return screen->user_buffer_create(screen, ptr, size);
+}
+
+static INLINE void *
+pipe_buffer_map(struct pipe_screen *screen,
+                struct pipe_buffer *buf,
+                unsigned usage)
+{
+   if(screen->buffer_map_range) {
+      unsigned offset = 0;
+      unsigned length = buf->size;
+      return screen->buffer_map_range(screen, buf, offset, length, usage);
+   }
+   else
+      return screen->buffer_map(screen, buf, usage);
+}
+
+static INLINE void
+pipe_buffer_unmap(struct pipe_screen *screen,
+                  struct pipe_buffer *buf)
+{
+   screen->buffer_unmap(screen, buf);
+}
+
+static INLINE void *
+pipe_buffer_map_range(struct pipe_screen *screen,
+                struct pipe_buffer *buf,
+                unsigned offset,
+                unsigned length,
+                unsigned usage)
+{
+   assert(offset < buf->size);
+   assert(offset + length <= buf->size);
+   assert(length);
+   if(screen->buffer_map_range)
+      return screen->buffer_map_range(screen, buf, offset, length, usage);
+   else
+      return screen->buffer_map(screen, buf, usage);
+}
+
+static INLINE void
+pipe_buffer_flush_mapped_range(struct pipe_screen *screen,
+                               struct pipe_buffer *buf,
+                               unsigned offset,
+                               unsigned length)
+{
+   assert(offset < buf->size);
+   assert(offset + length <= buf->size);
+   assert(length);
+   if(screen->buffer_flush_mapped_range)
+      screen->buffer_flush_mapped_range(screen, buf, offset, length);
+}
+
+static INLINE void
+pipe_buffer_write(struct pipe_screen *screen,
+                  struct pipe_buffer *buf,
+                  unsigned offset, unsigned size,
+                  const void *data)
+{
+   void *map;
+   
+   assert(offset < buf->size);
+   assert(offset + size <= buf->size);
+   assert(size);
+
+   map = pipe_buffer_map_range(screen, buf, offset, size, 
+                               PIPE_BUFFER_USAGE_CPU_WRITE | 
+                               PIPE_BUFFER_USAGE_FLUSH_EXPLICIT |
+                               PIPE_BUFFER_USAGE_DISCARD);
+   assert(map);
+   if(map) {
+      memcpy((uint8_t *)map + offset, data, size);
+      pipe_buffer_flush_mapped_range(screen, buf, offset, size);
+      pipe_buffer_unmap(screen, buf);
+   }
+}
+
+/**
+ * Special case for writing non-overlapping ranges.
+ *
+ * We can avoid GPU/CPU synchronization when writing range that has never
+ * been written before.
+ */
+static INLINE void
+pipe_buffer_write_nooverlap(struct pipe_screen *screen,
+                            struct pipe_buffer *buf,
+                            unsigned offset, unsigned size,
+                            const void *data)
+{
+   void *map;
+
+   assert(offset < buf->size);
+   assert(offset + size <= buf->size);
+   assert(size);
+
+   map = pipe_buffer_map_range(screen, buf, offset, size,
+                               PIPE_BUFFER_USAGE_CPU_WRITE |
+                               PIPE_BUFFER_USAGE_FLUSH_EXPLICIT |
+                               PIPE_BUFFER_USAGE_DISCARD |
+                               PIPE_BUFFER_USAGE_UNSYNCHRONIZED);
+   assert(map);
+   if(map) {
+      memcpy((uint8_t *)map + offset, data, size);
+      pipe_buffer_flush_mapped_range(screen, buf, offset, size);
+      pipe_buffer_unmap(screen, buf);
+   }
+}
+
+static INLINE void
+pipe_buffer_read(struct pipe_screen *screen,
+                 struct pipe_buffer *buf,
+                 unsigned offset, unsigned size,
+                 void *data)
+{
+   void *map;
+   
+   assert(offset < buf->size);
+   assert(offset + size <= buf->size);
+   assert(size);
+
+   map = pipe_buffer_map_range(screen, buf, offset, size, PIPE_BUFFER_USAGE_CPU_READ);
+   assert(map);
+   if(map) {
+      memcpy(data, (const uint8_t *)map + offset, size);
+      pipe_buffer_unmap(screen, buf);
+   }
+}
+
+static INLINE void *
+pipe_transfer_map( struct pipe_transfer *transf )
+{
+   struct pipe_screen *screen = transf->texture->screen;
+   return screen->transfer_map(screen, transf);
+}
+
+static INLINE void
+pipe_transfer_unmap( struct pipe_transfer *transf )
+{
+   struct pipe_screen *screen = transf->texture->screen;
+   screen->transfer_unmap(screen, transf);
+}
+
+static INLINE void
+pipe_transfer_destroy( struct pipe_transfer *transf )
+{
+   struct pipe_screen *screen = transf->texture->screen;
+   screen->tex_transfer_destroy(transf);
+}
+
+static INLINE unsigned
+pipe_transfer_buffer_flags( struct pipe_transfer *transf )
+{
+   switch (transf->usage & PIPE_TRANSFER_READ_WRITE) {
+   case PIPE_TRANSFER_READ_WRITE:
+      return PIPE_BUFFER_USAGE_CPU_READ | PIPE_BUFFER_USAGE_CPU_WRITE;
+   case PIPE_TRANSFER_READ:
+      return PIPE_BUFFER_USAGE_CPU_READ;
+   case PIPE_TRANSFER_WRITE:
+      return PIPE_BUFFER_USAGE_CPU_WRITE;
+   default:
+      debug_assert(0);
+      return 0;
+   }
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* U_INLINES_H */
index f828908f0be44dec1cf0bfc7115347f303e7424a..6053c111e340e4ed0c5e970c22c08f01258b60de 100644 (file)
@@ -35,6 +35,7 @@
 #include "pipe/p_screen.h"
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_surface.h"
 
index c25e1e52e9dc56a3b97f83434b98c888b163a2a3..0051258e22a6d33831294b4438aaf2714a175118 100644 (file)
@@ -32,7 +32,7 @@
 
 
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_math.h"
index 55a65375c81d1f9b619874ed3b5d94e1d295e802..012b2ae23360560b7f579d32abb92dc4fbb7bccf 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 #include "util/u_memory.h"
 #include "util/u_math.h"
index a524e2fdfb3823d76dbfe65dea6aebc2a33f3236..6c5298daabc72ca12cf94f9673f511c00c6ddd48 100644 (file)
@@ -28,7 +28,7 @@
 #include "vl_compositor.h"
 #include <assert.h>
 #include <pipe/p_context.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <tgsi/tgsi_parse.h>
 #include <tgsi/tgsi_build.h>
 #include <util/u_memory.h>
index e43187545c59d9ddc1914108953e98f988645725..c2552f40b4eb190bb3aa3bd64d33dc6223a1af97 100644 (file)
@@ -28,7 +28,7 @@
 #include "vl_mpeg12_mc_renderer.h"
 #include <assert.h>
 #include <pipe/p_context.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_math.h>
 #include <util/u_memory.h>
index 3a3f968a492f8530854c4502d9258c7d55a4160a..246fe210542c53b2aa536b094a298dc50140de97 100644 (file)
@@ -33,7 +33,7 @@
 #include <stdio.h>
 #include <assert.h>
 #include <stdint.h>
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_pack_color.h"
 #include "cell/common.h"
index c674d0be63382f1a8cdfb2b4aa74657bc5f9ce3b..8b939454eb435ca14b8a2679baeeb02e311ec291 100644 (file)
@@ -34,7 +34,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_context.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "cell_context.h"
 #include "cell_draw_arrays.h"
index 13125a9fa303b0b3b114b0627c86fd857fe9be55..e10071529a8fa226d1d9179ee55c2553f45d0b77 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <unistd.h>
 #include "util/u_memory.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "cell_context.h"
 #include "cell_batch.h"
 #include "cell_fence.h"
index c18a5d0635e9264713f0cc9268995546f1264cd9..3259c58687cf1c4b1c114d2448695950b702313d 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 #include "util/u_memory.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "draw/draw_context.h"
 #include "cell_context.h"
 #include "cell_flush.h"
index f1e1dcb9eb0d52094808e1da6b031cf40a3938ab..282f05ba08b16881da94e3484fc69e82d723a420 100644 (file)
@@ -25,7 +25,7 @@
  * 
  **************************************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_math.h"
 #include "cell_context.h"
index 1b09cf7f7d75f740279f53a54fe8156ea95e8578..c5adc6a8979e608741a52cb7cac1fcf11c583edc 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "pipe/p_defines.h"
 #include "util/u_memory.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/internal/p_winsys_screen.h"
 #include "draw/draw_context.h"
 #include "tgsi/tgsi_parse.h"
index 998944f77a399717a86e06d5b50f1b794f3432ce..15bc1eec3264c290854ef5bd67212bea5bb340ae 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/internal/p_winsys_screen.h"
 
 #include "util/u_format.h"
index d6ec4d13136225508d123103d5ef4d982a536aeb..c189d1d82cd3a0cdad16c5e90bdfc3f4e8600ef6 100644 (file)
@@ -28,6 +28,8 @@
 /* Authors:  Keith Whitwell <keith@tungstengraphics.com>
  */
 
+#include "util/u_inlines.h"
+
 #include "fo_context.h"
 
 
index 669964770d41fc6bf7857d917741cba958b41c0b..0f76a59e93aff69bf777bfcba7d17f519b0092e6 100644 (file)
@@ -23,6 +23,7 @@
  *
  **************************************************************************/
 
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "i915_screen.h"
 #include "i915_buffer.h"
index a0c80d022867e1d06636bc0e287acf04c554adff..f8219c9f299a39f90c1399129dcd49171977f60d 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "draw/draw_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "pipe/p_screen.h"
 
index 6b832140a87c3e82f159e1410b74960ed9da7343..cad4109ee6b1816b68d7e7b0752f31b62442edc3 100644 (file)
@@ -41,7 +41,7 @@
 #include "draw/draw_context.h"
 #include "draw/draw_vbuf.h"
 #include "util/u_debug.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "util/u_fifo.h"
index 7b8d66b8aa1530633ae6144950b3dfe38519f038..e6b560bc212d9b21aa19ce9854221ad545a4595b 100644 (file)
@@ -26,7 +26,7 @@
  **************************************************************************/
 
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_string.h"
 
index 23e4d6b993889af9e2eb578a6dfb86c3611e77a2..beb26e996a46260b3da7551794508da6fa8d73aa 100644 (file)
@@ -30,7 +30,7 @@
 
 
 #include "draw/draw_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "tgsi/tgsi_parse.h"
index 612e5c1cdd56eb63050608af239b64ea25a52ed5..e101c8683ec2d10cdeb96f2d357054f2cfe74be6 100644 (file)
@@ -33,7 +33,7 @@
 #include "pipe/p_state.h"
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index d60b7b99b6e1d7d13c05bca26a6c8d4ce70df54b..7cbda05ac583401f90a967bdf9c14a5097238a63 100644 (file)
@@ -31,6 +31,7 @@
 
 
 #include "pipe/p_context.h"
+#include "util/u_inlines.h"
 #include "util/u_simple_list.h"
 
 #include "brw_context.h"
index 1b5cd23995baa8f8b32bdbdec34f062d70aeb0be..9bad61ef72eae82bf0233b53a717cdd728c652f1 100644 (file)
@@ -26,6 +26,7 @@
  **************************************************************************/
 
 
+#include "util/u_inlines.h"
 #include "util/u_prim.h"
 #include "util/u_upload_mgr.h"
 
index a27da5f1c1713e99284725a0840e4f8197fe1527..d59261557b58ba2f9cbcb35d457448e902193b04 100644 (file)
@@ -26,6 +26,7 @@
  **************************************************************************/
 
 #include "pipe/p_context.h"
+#include "util/u_inlines.h"
 
 #include "util/u_upload_mgr.h"
 #include "util/u_math.h"
index c1f049272ac5ce09cf47af72686d139bd655531f..a90b7c73f69eed44bb3190b719230eb807f72cd1 100644 (file)
@@ -1,6 +1,7 @@
 #include "util/u_math.h"
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
+#include "util/u_inlines.h"
 
 #include "brw_context.h"
 
index ef6c1bb3155a04ab0a4a2535d6eecb27bdc31267..6aab561004366d3c496769c88ba2845ac76415b5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
+#include "util/u_inlines.h"
 
 #include "brw_context.h"
 #include "brw_defines.h"
index e389587f3e1122ed15ec8319a690f643a73f7023..c2b18391103797c28f3f5a24289d1e497c802fac 100644 (file)
@@ -29,6 +29,7 @@
   *   Keith Whitwell <keith@tungstengraphics.com>
   */
 
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
   
 #include "tgsi/tgsi_parse.h"
index a8f9892d71dac6eec14b290fc77163b232ab626a..1d79d84dc65ef02d3cf2670050fc8109453df105 100644 (file)
@@ -26,7 +26,7 @@
  **************************************************************************/
 
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_string.h"
 
index d8141a3f5b91a227d2d4a4257eeb6fae9a163256..0b38885f40c880899f54f6e6d7f91b5ca8637397 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "brw_screen.h"
 #include "brw_winsys.h"
index a242e31218af714ab887500a8c212a2a15967bf6..1c63f03429e6aa3b5f9ed0ecc1d59f7ac5b1e5a6 100644 (file)
@@ -29,6 +29,7 @@
 #include "pipe/p_compiler.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_refcnt.h"
+#include "util/u_inlines.h"
 
 struct brw_winsys;
 struct pipe_fence_handle;
index bc9bc7121d58caf5ac2b23267d64c9c5e9b05f3b..07aa01818d383a686f191735c91a2cf449135eda 100644 (file)
@@ -25,6 +25,7 @@
  *
  **************************************************************************/
 
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 
 #include "id_public.h"
index 66f1f8e13837b772fdae240339009d0a56725ff6..8623778f86d5e606627fdb24f6dd63313e07bcdd 100644 (file)
@@ -26,6 +26,7 @@
  **************************************************************************/
 
 
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_math.h"
 
index aaa675aec77999019098870ad216c19b00a315e2..d9adf21b6a6f2a7f889c0d9aca0e87d2563ed8cc 100644 (file)
@@ -33,6 +33,7 @@
 #include "draw/draw_context.h"
 #include "draw/draw_vbuf.h"
 #include "pipe/p_defines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "lp_clear.h"
index ddd0740f1b4054ba6114cf787c5bc95172aaf92d..f3263cf37700610e438b12a45389021b0c7239cb 100644 (file)
@@ -59,6 +59,7 @@
  */
 
 #include "pipe/p_defines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_format.h"
 #include "util/u_debug_dump.h"
index d382f9ca87e1cea4563785e21c423cda04bad305..bda9c138d52291e21975271154f3ee992bffa07b 100644 (file)
@@ -29,6 +29,7 @@
  *  Brian Paul
  */
 
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 
 #include "draw/draw_context.h"
index 3b08b0d1d700db00a35b36938f5e080c2d4d2603..0afa49d0b758edb25fa03027c982673b3f779e7f 100644 (file)
@@ -28,6 +28,8 @@
 /* Authors:  Keith Whitwell <keith@tungstengraphics.com>
  */
 
+#include "util/u_inlines.h"
+
 #include "lp_context.h"
 #include "lp_state.h"
 #include "lp_tile_cache.h"
index 8094625d74d9a1d324e3508790e0cde1b7675c81..e9f7d9002ae06272c6c017bd43492fea5b92d141 100644 (file)
@@ -32,7 +32,7 @@
  *    Brian Paul
  */
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_tile.h"
 #include "util/u_format.h"
index 3701219dcf9dd88140e2403e244154ae5393673a..8c20625430c61c3b3f3e2b6ef0e1a52c56c92813 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_math.h"
index 971d933333153eb507b85632086fd3846b0d1c93..196826870db55adbafead2ecc2d32e5329390cca 100644 (file)
@@ -32,7 +32,7 @@
  *    Brian Paul
  */
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_math.h"
 #include "util/u_tile.h"
index e0a6948aeb45eef0017ca1e0d87c1716048646c8..e4c38ac98e237e4c2516631637eea9bfa27020a2 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 
 #include "nv04_context.h"
index 0b795ea24301b35d256b98d62fb4aa96eb642667..dc0c1d04b79d802ed5d0b89009d618b81078dbcb 100644 (file)
@@ -1,6 +1,6 @@
 
 #include "util/u_debug.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_compiler.h"
 
index 97538964af85a07c428f1d828c9905d33bd07cca..212b47bc3d20e1fcb53111caa69409c57a84a56d 100644 (file)
@@ -1,5 +1,5 @@
 #include "pipe/p_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv04_context.h"
 #include "nv04_screen.h"
index 1fdb764b5323a5a38033f9bbf4b428fa4a1014d3..226aae35659217bb884cdd16c8074643a0a3278e 100644 (file)
@@ -2,7 +2,7 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "tgsi/tgsi_parse.h"
 
index 0387ff4e78b4db5232bc2079678563d100d11c04..92840910e653fa082f85126ff7b221a9ed63ec12 100644 (file)
@@ -29,7 +29,7 @@
 #include "nv04_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_tile.h"
 
 static void
index 2dd2e146a8f30f22e6f0c7184de98b1791c8fcd6..2e151483851643218cc737b66fe2b3684bd57147 100644 (file)
@@ -1,6 +1,6 @@
 #include <pipe/p_state.h>
 #include <pipe/p_defines.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_memory.h>
 #include <util/u_math.h>
index 2db61d894123b111e0618a43349ca9c565baaf9d..606ce65fabdc91acf9cc295db34bde10a319c58a 100644 (file)
@@ -1,7 +1,7 @@
 #include "draw/draw_context.h"
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv04_context.h"
 #include "nv04_state.h"
index 908482ad854890eaee16fa33006f395714292de6..55bd6f76b3ee4bf8f46bf96fa3e6c5c9b80c042d 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 
index c5dbe43dbc8ebc5411b1994c86bc0cd7b7d29e91..0309465ab8d88d6a86e2019cd5aa57e84ad20591 100644 (file)
@@ -39,7 +39,7 @@
 
 
 #include "util/u_debug.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv10_context.h"
 #include "nv10_state.h"
index 9aafc604116b265a30a3149305e35b0fc46624f4..11e23b21c5c5ba26605e64304b5a50200474b242 100644 (file)
@@ -2,7 +2,7 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "tgsi/tgsi_parse.h"
 
index 5b52246a9caa4bd41df50fef03e09555c1ecb230..acf898917cfa9c7fbac36d775e39d13393602536 100644 (file)
@@ -29,7 +29,7 @@
 #include "nv10_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_tile.h"
 
 static void
index eb04af9782eed62b06782f956fda3e178fc942b0..e554a5873017f1433360c32ed20f6af6655ccfa1 100644 (file)
@@ -1,6 +1,6 @@
 #include <pipe/p_state.h>
 #include <pipe/p_defines.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_memory.h>
 #include <util/u_math.h>
index da5c93f081458d4d46c3b4641226153b16375072..31b34b5c0a8c06195a3d4e50895ff6b9e8d9af67 100644 (file)
@@ -1,7 +1,7 @@
 #include "draw/draw_context.h"
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv10_context.h"
 #include "nv10_state.h"
index 8f7538e7f576af2528ee1383c6f800f5ccab8bdd..2d3473b0869c322305520247fa80ea6f918cf804 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 
index 2e145672da116a28a66787deb66ba73a8586bed7..84faa87095edb80f80f768b7748858b4f23a5c4d 100644 (file)
@@ -39,7 +39,7 @@
 
 
 #include "util/u_debug.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/internal/p_winsys_screen.h"
 
 #include "nv20_context.h"
index 83335c790a039a7dbdf67b34b840ac2ddc4dce93..923dc61cfb25dd48b897f42e9168865aa46a7f18 100644 (file)
@@ -2,7 +2,7 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "tgsi/tgsi_parse.h"
 
index 4224bdd6afae374b6f4d7398341fdbfb72240d64..7beb0f0c83d79c79ee349f4b303cac84ba893661 100644 (file)
@@ -29,7 +29,7 @@
 #include "nv20_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_tile.h"
 
 static void
index 699773e8e6f99146e087dc8a7add07b448c38ec2..c91f8b12cc2291cc9533dfb36592822cc9931724 100644 (file)
@@ -1,6 +1,6 @@
 #include <pipe/p_state.h>
 #include <pipe/p_defines.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_memory.h>
 #include <util/u_math.h>
index 6dc9538901363a98f6cd026b0dcebf9b89bc0343..263f18706a5d884bc6ce86067fb6472ce122334d 100644 (file)
@@ -1,7 +1,7 @@
 #include "draw/draw_context.h"
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv20_context.h"
 #include "nv20_state.h"
index 7886c2af7e62d75d66deb3d61824d013358c7ddf..7283ed4d0057a71eccfb5b9610c3412865357c73 100644 (file)
@@ -1,7 +1,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_parse.h"
index 2d565cb631b66d221d8f958f65b23a17c9f42f53..2c432c6dfa7caff343a5b7effa8eb0bea3a4ca5d 100644 (file)
@@ -1,7 +1,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_dump.h"
index 8fbba38e78f30d9cf59f6f4e8465f4c1fdf64103..ea8a610fe69c99c00d3b9ec3427bc2ae599ac389 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 
index 1f4c964270583470f124fd1acff826d8c508b32c..25532e3a544cdcb8e2da5777a997a1a0bcfdd497 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "tgsi/tgsi_parse.h"
 
index 5e237e13eb54d8423d6025bdbad79bf0dd5546f5..b72a63ee76a87900b106cdea210291f95eae3899 100644 (file)
@@ -29,7 +29,7 @@
 #include "nv30_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_tile.h"
 
 static void
index 65598991c689c1a242a7c0d4eb3b8efe9ce70a0f..554bcbbdd0ebb385f1affa4864f0b4e0ae20bc57 100644 (file)
@@ -1,6 +1,6 @@
 #include <pipe/p_state.h>
 #include <pipe/p_defines.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_memory.h>
 #include <util/u_math.h>
index 1c5db03ea240293c420d95740cfa3a34a8d56941..d50055fdd33996583e0059868e72489db692a3b0 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv30_context.h"
 #include "nv30_state.h"
index e77a5be3f23152a6cc1ee4bbf8c17c9e8b7f9350..809be3712da606a7ade686cade77f9cc2f8fb108 100644 (file)
@@ -1,7 +1,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_parse.h"
index a2fd5f6c02fed75d086e8b72f38a1f0e345fd999..60ab49fad1ceab569b71dbce48b3461e28dd7a1c 100644 (file)
@@ -1,5 +1,5 @@
 #include "pipe/p_shader_tokens.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_pack_color.h"
 
index 1237066c3981df27e338487ffff7ddb63102d0c6..dc24f9b08a5e596ea208cbe4ec32222cb4f8fd7f 100644 (file)
@@ -1,7 +1,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_parse.h"
index 89bd155ff493ace556940c692e5f211d6d9d3c2d..d62627daa55c500ac4d24e87fe7781c6e43ca02d 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 
index 7a63fba18c5bfafaa138ea3f084cdd6ec3f9140e..b09c450dc29edea2d679ee20ac991a3b6e36f721 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "draw/draw_context.h"
 
index a596547974ab27a21fb1c278f54cae45d99bee51..02ecfd7bbb77caa8a6a8243e2f834bacaaeec01d 100644 (file)
@@ -27,7 +27,7 @@
  **************************************************************************/
 
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_tile.h"
 
index 791ee6823d332ab3dd9ec36846995b92fa365073..ee266c6cfb19cf4d997f768fee3ce41ccdaacf2f 100644 (file)
@@ -1,6 +1,6 @@
 #include <pipe/p_state.h>
 #include <pipe/p_defines.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_memory.h>
 #include <util/u_math.h>
index a777898f6880dafa9586febcccb3eec360f70a53..d1c76c03cddf4793ca8df112b309530d7ab9a064 100644 (file)
@@ -1,6 +1,6 @@
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv40_context.h"
 #include "nv40_state.h"
index 8d80fcad38e51104bd7d85096c3ec32c47f203e8..b289eef0fc252d052b5eb11c88ac33396445b78f 100644 (file)
@@ -1,7 +1,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_parse.h"
index dc8364ced7e8150cb86074c9bd81412a4f805ba5..7297c74a83c6ad9a16dc4bd0a99dc65fa23e49d4 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 
 #include "nv50_context.h"
index e74a526c626f71fb834920b691ca57c9dc488c5a..3653e606ef56c070676b68e996da1bad5d308643 100644 (file)
@@ -23,7 +23,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/tgsi_parse.h"
index 9eba4c961158b1e3a61769c1bf0c24c9bb55ab33..57b16a355dc1ff0bde3766aeb25ab13b84c08125 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "nv50_context.h"
 
index da8dc933b030f03f30b07144744ae12cf9ba83ba..7eb326adf5b16cb31dc463e887b6aa34e215fb7d 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "tgsi/tgsi_parse.h"
 
index 6378132979ed16e4af90083ad7e6ec4d6ab755b6..38a9dfdde7ac572124538056160b71965ca3c554 100644 (file)
@@ -26,7 +26,7 @@
 #include "nv50_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_tile.h"
 
index a2f1db2914cf7523443fb1babee3196473463569..d08b4d7354ca219cff034f86aeabea047a8debb8 100644 (file)
@@ -1,6 +1,6 @@
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 
index bfb1b34d27aee58afe0ded3c37c182067be65de9..ca2f8061f321da5273560afe207422877c54168e 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 
index 3f461640a03ddd5a5883812214b5f701ae50d89b..ea9b4abfdebcee11cec43980dfef4276067f55db 100644 (file)
@@ -28,7 +28,7 @@
 #include "util/u_blitter.h"
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "r300_screen.h"
 
index 38636dc8e449d277108bd1d6e1a9e5d5682a8424..cd4971ae1364d449d99b180d309684f967fed89c 100644 (file)
@@ -26,7 +26,7 @@
 #include "draw/draw_context.h"
 #include "draw/draw_vbuf.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_memory.h"
index 4cef9a028afc242d3d7e1d8fc0be82394aec7d58..18eecf7c135828825894eb4f0186245611f4f3ec 100644 (file)
@@ -20,7 +20,7 @@
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_memory.h"
 #include "util/u_simple_screen.h"
index 53133d288886b498280ddef471ed180272a512ef..b1cfe59bc1847e1b9a3b7e0e846a5d635c4a1579 100644 (file)
@@ -35,6 +35,7 @@
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
+#include "util/u_inlines.h"
 #include "sp_clear.h"
 #include "sp_context.h"
 #include "sp_flush.h"
index 2b82427d5461cdfb31c5802c41fc07bd25127c01..f7e736df849d052aee7d3e8304b822024f0cee15 100644 (file)
@@ -34,7 +34,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_context.h"
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_prim.h"
 
 #include "sp_context.h"
index de3edde97603cb637e51ca37272bdfc3d49a05da..c88e213751092320e127ff2c9523ddf8b29d9026 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "pipe/p_defines.h"
 #include "util/u_memory.h"
+#include "util/u_inlines.h"
 #include "draw/draw_context.h"
 #include "draw/draw_vs.h"
 #include "tgsi/tgsi_dump.h"
index 39466782195adaf5176866e67c4952251288366e..2db6faeca465ae838193f20a33f7b4c19f852781 100644 (file)
@@ -35,6 +35,7 @@
 #include "draw/draw_context.h"
 
 #include "util/u_format.h"
+#include "util/u_inlines.h"
 
 
 /**
index 50242d5bd69d9bd41356a2ea5ee51fad4e3053cf..a0b95c88846f0b121d627d9d4208af53fabab6cd 100644 (file)
@@ -32,7 +32,7 @@
  *    Brian Paul
  */
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_tile.h"
 #include "util/u_math.h"
index a5fff915077ad2d999a74e5ff0701a9f3a446957..371c4e2025121082a196133e8c4075d3be8f2db4 100644 (file)
@@ -31,7 +31,7 @@
   */
 
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_math.h"
index 112a6fe0cf36cf09425a953fbf6538b3a04e8a05..1b50bd7ffe5d5b10e1d08bf79ed56138e6042c6e 100644 (file)
@@ -32,7 +32,7 @@
  *    Brian Paul
  */
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_memory.h"
 #include "util/u_tile.h"
index d0723ebe9e05b945bd7acf31b7eab12b8a0b3ade..7a8b132ddcdf775c2180a848fce7cf79ef3cadfc 100644 (file)
@@ -26,7 +26,7 @@
  **************************************************************************/
 
 #include "sp_video_context.h"
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_memory.h>
 #include "softpipe/sp_winsys.h"
 #include "softpipe/sp_texture.h"
index 38bcd64c6a5c3aa94e8fa6698bc6824ccd1adec7..e515d1d838d47c6174d7aee60af71e6a010b7246 100644 (file)
@@ -42,6 +42,7 @@
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
+#include "util/u_inlines.h"
 #include "softpipe/sp_winsys.h"
 
 
index af99c9de37ccb91de8795cf73fa25d919096aacd..e88ef8d8fe3a955fd2a1fd4e35630283c579a4d2 100644 (file)
@@ -26,7 +26,7 @@
 #include "svga_cmd.h"
 
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 #include "util/u_memory.h"
 #include "util/u_bitmask.h"
index ca73cf9d5a3a4bcdc573e3c40ea7b1ad16eb6c8e..f4d2d8992c8b844f0469064c3d9b8c013b40e7f4 100644 (file)
@@ -24,7 +24,7 @@
  **********************************************************/
 
 #include "pipe/p_compiler.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_memory.h"
 #include "util/u_math.h"
index 6b6ebc9b585b0a092ddf59d65a3adbd7d9c503f6..6192aa96b11728e2221756a80fe8634269a2bd0c 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "svga_cmd.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "indices/u_indices.h"
 
 #include "svga_hw_reg.h"
index 022b444eb9162992abc590a97d35cb8759430958..e8097d82f16244efca376042a2478c19532dfa75 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_upload_mgr.h"
 #include "indices/u_indices.h"
 
index 9df5485f462e93609dce23b033726aa7fad8b0fe..9dd6fb068c5083a5b2c6baa0bf06248a34ea0854 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 9022f7c43943fb0a9b3ef72001a6c4a37745f6ff..73a0cd6b3a82f99f70c149ad94dcec803bd5017b 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "tgsi/tgsi_parse.h"
index 34e60cb341abf25280db6c4f17cc574742cd6fb6..12bbd233a58a843d51a374d8e9967f3c94886830 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 4e0c499dc3ec91fcec0fe5a847b9da2fd1e64b57..f1d23c0e743bb7dd88d3ea7d4c90adb4131658be 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "svga_cmd.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_prim.h"
 #include "util/u_time.h"
 #include "indices/u_indices.h"
index 32f07fb2616c744fc4e74b525c5c823ebd35effd..2baeb4aa6c3e712f84935c05d69b0393c2ecf1aa 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "util/u_bitmask.h"
index 8cf1f2e083ad0acfb80784a75a5516a9a1f54997..49b43bebc2967f0850600b04220edd75e73eacb5 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "svga_cmd.h"
 
+#include "util/u_inlines.h"
+
 #include "svga_context.h"
 #include "svga_screen_texture.h"
 
index 9ea11aad9a9f52c281779e5aa17f416f14ee979c..2f0b54092b6f4ff8250e56a5a2738a68b849fa52 100644 (file)
@@ -24,7 +24,7 @@
  **********************************************************/
 
 #include "draw/draw_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 161c66dd4ffd001b303a295251657f9cdb7883f6..b70081343d10fa2e722aff7e6a7106e0adfbbcc8 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 724166a3352641886e9c1871a9cacc363235d516..ffc0f99565b09cd6e268e7142ec13c8b1184aa2e 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "tgsi/tgsi_parse.h"
index c4ac5304ac6ae758f33133090cb2726067e0471c..de8c919e125926c104f2ef26a9b97b0adf6acf5d 100644 (file)
@@ -24,7 +24,7 @@
  **********************************************************/
 
 #include "draw/draw_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "util/u_bitmask.h"
index c9db9ac874748efd7b3291d5cdedd93232c31394..6933d5156293dc5a39eba6232709899cb7bfd0c5 100644 (file)
@@ -24,7 +24,7 @@
  **********************************************************/
 
 #include "util/u_memory.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_string.h"
 #include "util/u_math.h"
 
index 430a6970fde490622aade880b9d37c9ca6f643c6..73f939cd8b907809b62d85473902888bd4c99f4f 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_thread.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 0d69007fd87316ae6eeed7c879b23f1839b16647..2d8705f99bc8cd784689ad4f98a302a49db95220 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_thread.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
index 89ae24219fd7f23fdd09da7035712b41f1a60b2c..43853d48f880d29ee6ccd1cbb76b2e0cb6693fa3 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "pipe/p_compiler.h"
 #include "pipe/p_state.h"
+#include "util/u_inlines.h"
 #include "svga_screen_cache.h"
 
 struct pipe_context;
index 6b0e511cec1d51554c35a7445f02a2bf55cbe21c..bb92f818eaee28c1fc84676376f0da1bd0f5e7a9 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 
 #include "svga_context.h"
index eda1aefd67afe2000b5fcf210db524b30ba0e2fe..b4cafb8f219f90f75f9d883a8b78bf28afde9902 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 
index ec2886348b9c24aaa9e8f8b7131bf8679ef94c1a..adc7120217b400df007cbb4d75aff4c18759de1d 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_bitmask.h"
index 3c35a8579f714f0826f33b45472a56ad482b00c0..dd13a89d24db35921a9ee6aae5f838e0eea40e95 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_state.h"
 
 
index 2f9adaeb56149c8a825a17223b39c163d18a2064..ff656a7e053f2e575c262c89aaf0f077ba209f16 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 
index b3c9687b1a4445623541b77411b6e60a2015b913..17b47859781823a6204f41bf3b84e341c6abc64c 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 
index c534308f50307464f681be6cec47a11e3f8d2972..d1066ce13b082fb04cd837811f39319d79116719 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_math.h"
 #include "util/u_upload_mgr.h"
index e7e6c084321cb00423a3e218f47e44b5f184d25a..d7999fe53d2e01e74a89375acde8796c65a69ed2 100644 (file)
@@ -23,7 +23,7 @@
  *
  **********************************************************/
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_defines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
index aafb3e26b0b9b7f134191f13fd774173294acece..e9d7942fb57a8e097cda74e3fb98b7659073e85c 100644 (file)
@@ -28,7 +28,7 @@
 #include "draw/draw_vertex.h"
 
 #include "util/u_debug.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 
index 5e6e30c7dfb503d1321b804e5f2b2593706ad9eb..da15be155c8e7c34a17c9fbc522da20f2c1cdc46 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "draw/draw_context.h"
 #include "draw/draw_vbuf.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_state.h"
 
 #include "svga_context.h"
index fe03e207fffb375a317796b887fa47b5f725b36d..35f36a828fdffd99b04023002995aea217836998 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "draw/draw_context.h"
 #include "draw/draw_vbuf.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_state.h"
 
 #include "svga_context.h"
index 4f0eff6a5a4c37b7bebe5eae7c77d6f59d1b7c69..fa2ac068ebc7e22811c15282b2d848f5dfa4d515 100644 (file)
@@ -26,6 +26,7 @@
  **************************************************************************/
 
 
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "util/u_simple_list.h"
 
index 117503aaff694c8346e14fd53365362a7a2eb849..6cdb4c04a81e86c14116cac9d6ea8a6a0f4cfb7b 100644 (file)
@@ -35,7 +35,7 @@
 #include "tr_texture.h"
 #include "tr_screen.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_format.h"
 
 
index 1f25fe38d4cc097dcb2acc226b7fca3d4a68737e..5321d68ec0c2a6606752a13ad46f925d3a9e4e49 100644 (file)
@@ -25,6 +25,7 @@
  *
  **************************************************************************/
 
+#include "util/u_inlines.h"
 #include "util/u_hash_table.h"
 #include "util/u_memory.h"
 #include "util/u_simple_list.h"
diff --git a/src/gallium/include/pipe/p_inlines.h b/src/gallium/include/pipe/p_inlines.h
deleted file mode 100644 (file)
index 72f5c1d..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-/**************************************************************************
- * 
- * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
- * All Rights Reserved.
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sub license, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- * 
- * The above copyright notice and this permission notice (including the
- * next paragraph) shall be included in all copies or substantial portions
- * of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
- * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
- * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- * 
- **************************************************************************/
-
-#ifndef P_INLINES_H
-#define P_INLINES_H
-
-#include "p_context.h"
-#include "p_defines.h"
-#include "p_screen.h"
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/**
- * Convenience wrappers for screen buffer functions.
- */
-
-static INLINE struct pipe_buffer *
-pipe_buffer_create( struct pipe_screen *screen,
-                    unsigned alignment, unsigned usage, unsigned size )
-{
-   return screen->buffer_create(screen, alignment, usage, size);
-}
-
-static INLINE struct pipe_buffer *
-pipe_user_buffer_create( struct pipe_screen *screen, void *ptr, unsigned size )
-{
-   return screen->user_buffer_create(screen, ptr, size);
-}
-
-static INLINE void *
-pipe_buffer_map(struct pipe_screen *screen,
-                struct pipe_buffer *buf,
-                unsigned usage)
-{
-   if(screen->buffer_map_range) {
-      unsigned offset = 0;
-      unsigned length = buf->size;
-      return screen->buffer_map_range(screen, buf, offset, length, usage);
-   }
-   else
-      return screen->buffer_map(screen, buf, usage);
-}
-
-static INLINE void
-pipe_buffer_unmap(struct pipe_screen *screen,
-                  struct pipe_buffer *buf)
-{
-   screen->buffer_unmap(screen, buf);
-}
-
-static INLINE void *
-pipe_buffer_map_range(struct pipe_screen *screen,
-                struct pipe_buffer *buf,
-                unsigned offset,
-                unsigned length,
-                unsigned usage)
-{
-   assert(offset < buf->size);
-   assert(offset + length <= buf->size);
-   assert(length);
-   if(screen->buffer_map_range)
-      return screen->buffer_map_range(screen, buf, offset, length, usage);
-   else
-      return screen->buffer_map(screen, buf, usage);
-}
-
-static INLINE void
-pipe_buffer_flush_mapped_range(struct pipe_screen *screen,
-                               struct pipe_buffer *buf,
-                               unsigned offset,
-                               unsigned length)
-{
-   assert(offset < buf->size);
-   assert(offset + length <= buf->size);
-   assert(length);
-   if(screen->buffer_flush_mapped_range)
-      screen->buffer_flush_mapped_range(screen, buf, offset, length);
-}
-
-static INLINE void
-pipe_buffer_write(struct pipe_screen *screen,
-                  struct pipe_buffer *buf,
-                  unsigned offset, unsigned size,
-                  const void *data)
-{
-   void *map;
-   
-   assert(offset < buf->size);
-   assert(offset + size <= buf->size);
-   assert(size);
-
-   map = pipe_buffer_map_range(screen, buf, offset, size, 
-                               PIPE_BUFFER_USAGE_CPU_WRITE | 
-                               PIPE_BUFFER_USAGE_FLUSH_EXPLICIT |
-                               PIPE_BUFFER_USAGE_DISCARD);
-   assert(map);
-   if(map) {
-      memcpy((uint8_t *)map + offset, data, size);
-      pipe_buffer_flush_mapped_range(screen, buf, offset, size);
-      pipe_buffer_unmap(screen, buf);
-   }
-}
-
-/**
- * Special case for writing non-overlapping ranges.
- *
- * We can avoid GPU/CPU synchronization when writing range that has never
- * been written before.
- */
-static INLINE void
-pipe_buffer_write_nooverlap(struct pipe_screen *screen,
-                            struct pipe_buffer *buf,
-                            unsigned offset, unsigned size,
-                            const void *data)
-{
-   void *map;
-
-   assert(offset < buf->size);
-   assert(offset + size <= buf->size);
-   assert(size);
-
-   map = pipe_buffer_map_range(screen, buf, offset, size,
-                               PIPE_BUFFER_USAGE_CPU_WRITE |
-                               PIPE_BUFFER_USAGE_FLUSH_EXPLICIT |
-                               PIPE_BUFFER_USAGE_DISCARD |
-                               PIPE_BUFFER_USAGE_UNSYNCHRONIZED);
-   assert(map);
-   if(map) {
-      memcpy((uint8_t *)map + offset, data, size);
-      pipe_buffer_flush_mapped_range(screen, buf, offset, size);
-      pipe_buffer_unmap(screen, buf);
-   }
-}
-
-static INLINE void
-pipe_buffer_read(struct pipe_screen *screen,
-                 struct pipe_buffer *buf,
-                 unsigned offset, unsigned size,
-                 void *data)
-{
-   void *map;
-   
-   assert(offset < buf->size);
-   assert(offset + size <= buf->size);
-   assert(size);
-
-   map = pipe_buffer_map_range(screen, buf, offset, size, PIPE_BUFFER_USAGE_CPU_READ);
-   assert(map);
-   if(map) {
-      memcpy(data, (const uint8_t *)map + offset, size);
-      pipe_buffer_unmap(screen, buf);
-   }
-}
-
-static INLINE void *
-pipe_transfer_map( struct pipe_transfer *transf )
-{
-   struct pipe_screen *screen = transf->texture->screen;
-   return screen->transfer_map(screen, transf);
-}
-
-static INLINE void
-pipe_transfer_unmap( struct pipe_transfer *transf )
-{
-   struct pipe_screen *screen = transf->texture->screen;
-   screen->transfer_unmap(screen, transf);
-}
-
-static INLINE void
-pipe_transfer_destroy( struct pipe_transfer *transf )
-{
-   struct pipe_screen *screen = transf->texture->screen;
-   screen->tex_transfer_destroy(transf);
-}
-
-static INLINE unsigned
-pipe_transfer_buffer_flags( struct pipe_transfer *transf )
-{
-   switch (transf->usage & PIPE_TRANSFER_READ_WRITE) {
-   case PIPE_TRANSFER_READ_WRITE:
-      return PIPE_BUFFER_USAGE_CPU_READ | PIPE_BUFFER_USAGE_CPU_WRITE;
-   case PIPE_TRANSFER_READ:
-      return PIPE_BUFFER_USAGE_CPU_READ;
-   case PIPE_TRANSFER_WRITE:
-      return PIPE_BUFFER_USAGE_CPU_WRITE;
-   default:
-      debug_assert(0);
-      return 0;
-   }
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* P_INLINES_H */
index 468e8d87f9e695417855564136a0edfe85105add..6609f94510acee0fedd9be8d399e11fa1678d06f 100644 (file)
@@ -45,50 +45,6 @@ struct pipe_reference
 };
 
 
-static INLINE void
-pipe_reference_init(struct pipe_reference *reference, unsigned count)
-{
-   p_atomic_set(&reference->count, count);
-}
-
-
-static INLINE boolean
-pipe_is_referenced(struct pipe_reference *reference)
-{
-   return p_atomic_read(&reference->count) != 0;
-}
-
-
-/**
- * Update reference counting.
- * The old thing pointed to, if any, will be unreferenced.
- * Both 'ptr' and 'reference' may be NULL.
- * \return TRUE if the object's refcount hits zero and should be destroyed.
- */
-static INLINE boolean
-pipe_reference(struct pipe_reference *ptr, struct pipe_reference *reference)
-{
-   boolean destroy = FALSE;
-
-   if(ptr != reference) {
-      /* bump the reference.count first */
-      if (reference) {
-         assert(pipe_is_referenced(reference));
-         p_atomic_inc(&reference->count);
-      }
-   
-      if (ptr) {
-         assert(pipe_is_referenced(ptr));
-         if (p_atomic_dec_zero(&ptr->count)) {
-            destroy = TRUE;
-         }
-      }
-   }
-
-   return destroy;
-}
-
-
 #ifdef __cplusplus
 }
 #endif
index 03cd74efed3a8d98d3a5f4b60fde6ae79eede2e1..f293df57334305822e656dd544143c835d7e7e56 100644 (file)
@@ -383,38 +383,6 @@ struct pipe_vertex_element
 };
 
 
-/* Reference counting helper functions */
-static INLINE void
-pipe_buffer_reference(struct pipe_buffer **ptr, struct pipe_buffer *buf)
-{
-   struct pipe_buffer *old_buf = *ptr;
-
-   if (pipe_reference(&(*ptr)->reference, &buf->reference))
-      old_buf->screen->buffer_destroy(old_buf);
-   *ptr = buf;
-}
-
-static INLINE void
-pipe_surface_reference(struct pipe_surface **ptr, struct pipe_surface *surf)
-{
-   struct pipe_surface *old_surf = *ptr;
-
-   if (pipe_reference(&(*ptr)->reference, &surf->reference))
-      old_surf->texture->screen->tex_surface_destroy(old_surf);
-   *ptr = surf;
-}
-
-static INLINE void
-pipe_texture_reference(struct pipe_texture **ptr, struct pipe_texture *tex)
-{
-   struct pipe_texture *old_tex = *ptr;
-
-   if (pipe_reference(&(*ptr)->reference, &tex->reference))
-      old_tex->screen->texture_destroy(old_tex);
-   *ptr = tex;
-}
-
-
 #ifdef __cplusplus
 }
 #endif
index 86293821192b9b3d09e1afc459fa5c8e9a2731cc..842860f74bd914a632151a2fcbc9448f9e641a30 100644 (file)
@@ -35,6 +35,7 @@
 #include <pipe/p_format.h>
 #include <pipe/p_refcnt.h>
 #include <pipe/p_screen.h>
+#include <util/u_inlines.h>
 
 #ifdef __cplusplus
 extern "C" {
index 6ee3ede38cb0d772cb1c5ca4d96dcebfcf89ef15..6cf8e5c6c9f63aee1456279859374e4ce5595f00 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 68797228459a28518a2c6b21d10a67cadee8cb52..99e177b0be4f203d372abd16e5764161c0c38aa0 100644 (file)
@@ -40,9 +40,9 @@
 
 #include "pipe/p_screen.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
 #include "pipe/p_shader_tokens.h"
 #include "cso_cache/cso_context.h"
+#include "util/u_inlines.h"
 #include "util/u_draw_quad.h"
 #include "util/u_tile.h"
 #include "util/u_math.h"
index e41125f6f9940d24be280300eae613d2795fbdd0..467e20207a399c6f174dfb123c2a524c92ac8d15 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipe/p_screen.h"
 #include "pipe/p_context.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "cso_cache/cso_context.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 0096b18c99498a251cb2c56a619945f67cc05898..c5ee1679f04275ba546671c04d4fed5cc6404630 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "pipe/p_format.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "llvmpipe/lp_winsys.h"
index 963774142112d37761a6bbae1fc678dc6f3f8a14..32a6551a87a7a360b99203b8874ebfe2d70cd2cb 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipe/p_compiler.h"
 #include "pipe/p_format.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_tile.h"
 #include "util/u_math.h"
index cf4a11bb142ce0ef349600767f136c0c7a9ec8de..20c72c1ff5456074462e7175e7c18b61a8a0248c 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 #include "pipe/p_shader_tokens.h"
 
index c437553bc237e228fa2bc09db6d75218ca8dfb05..015241498ed4cc00fc6aa7879c1201e16eaf1a47 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_blit.h"
 #include "util/u_tile.h"
 #include "util/u_memory.h"
index e6070c7353b49988743096bb9acffd2940e02acc..9c123a4cf955bcb9ea443df4afb31b4de6ee375c 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "vg_context.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_pack_color.h"
 #include "util/u_draw_quad.h"
index 15ac1900f4b1e503cade9fc49f16d9fbc57c3846..58ebb3b60eaf3c24d94be8e68944aeab1ae091cd 100644 (file)
@@ -32,7 +32,7 @@
 #include "paint.h"
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_draw_quad.h"
 
 VGPath vgCreatePath(VGint pathFormat,
index 1112ad9839d5811304d9b4c4ad777e51e451f47f..2e10965be4f41768fad8e05cd3aa7adf7c1245c7 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_blit.h"
 #include "util/u_format.h"
 #include "util/u_tile.h"
index ba8ecef1d2db6bf100a2edc0b937feb8a41c6989..467b95b7519a7fabb1d10df6c38cb8263b9db3b4 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_memory.h"
 
index d8f6299b2db0f99d5bbe8dbdb10ca73d038e1017..3405d635f0cf1c7c59e40f74f6dad881161fa518 100644 (file)
@@ -32,7 +32,7 @@
 #include "st_inlines.h"
 
 #include "pipe/p_compiler.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 #include "util/u_memory.h"
index f5352ee84e52539a89db36207ac96b0a9cf950e2..f56ea0c8b44619d9e1bc12a1aa00bd2f40b729da 100644 (file)
@@ -37,7 +37,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 
 #include "util/u_draw_quad.h"
index 47e18dc1e23199a2b81992a01f6699b61ab8c968..05620efa9c0d38f5464fd95f6ede265390dbab2d 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 #include "pipe/p_shader_tokens.h"
 
index 8e59d53dc7a816ba1fee5570007aad227dccf424..0e71a507bff2565cc8337f91c7260809ac0bd642 100644 (file)
@@ -35,7 +35,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 
 #define MAX_CONSTANTS 20
index f620075d0bc95a34e3a78a6298494a151e25f8d5..593e60fc63a66743e929e21566cc395b9de898a2 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 #include "pipe/p_shader_tokens.h"
 
index 610755e0636441e1a62de7707e6e9aa8a730085a..419151c3aee59eecfb228ab1eabaf32ceb172a0b 100644 (file)
@@ -38,7 +38,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_state.h"
 
 static INLINE struct pipe_transfer *
index 64207d97bac620101e45a2d11bdf04e3db34f03f..426bf9bc62b091a26b23ea8b4a5df9c038ba1c72 100644 (file)
@@ -34,7 +34,7 @@
 #include "st_inlines.h"
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_shader_tokens.h"
 
 #include "cso_cache/cso_context.h"
index 617c174eb6a0054565cb46525e199b421289571a..a94dfb160c9cbf9628fae430872999c38cd2e657 100644 (file)
@@ -29,7 +29,7 @@
 #include "mask.h"
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_screen.h"
 #include "util/u_format.h"
 #include "util/u_memory.h"
index 2395d549752d29041bf892634f6db633e1f3b92d..221ce772af9a79c7b9599b8814ce73bbe53e0804 100644 (file)
@@ -49,7 +49,7 @@
 #include <X11/extensions/dpms.h>
 #endif
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_rect.h"
 
 #ifdef HAVE_LIBKMS
index 59588f0ff753e6195b77f44646c0d7549f488400..7457fe1c6d68da138e38f4aac5bc5196ee06026b 100644 (file)
@@ -38,7 +38,7 @@
 #include "dri2.h"
 
 #include "pipe/p_state.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "util/u_format.h"
 
index a3c3993ab8198bec088129ab14293cc6d46b923d..83b0d31e38d8156b80517563ab6aac602a19f93e 100644 (file)
@@ -9,7 +9,7 @@
 #include "util/u_memory.h"
 #include "util/u_rect.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include <math.h>
 
index de71cb2f42d84a9635348b7303552e9bd7dc212e..9379021911a7b98a2e1e3bcf5cc33869dee05c86 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "pipebuffer/pb_buffer.h"
 
index b812fb59d39f2231214c3336bb67505aad35ad80..eca174a6c56028f77f16a1e0ca2a36c2df0aebc5 100644 (file)
@@ -41,7 +41,7 @@
 
 #include "svga_cmd.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "pipebuffer/pb_buffer.h"
 #include "pipebuffer/pb_bufmgr.h"
index d9abde307939bf650478672fb767fc22bd806ac4..454e9a5236d5bc52ae2810f1056b6c2e8901779d 100644 (file)
@@ -25,7 +25,7 @@
 
 
 #include "pipe/p_compiler.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_memory.h"
 #include "vmw_screen.h"
 
index d7d008859b30b58dd7b4f35fe2bdaf8d3084acc2..2b4e80f003929e2f49541abed9b58916b20ba3cf 100644 (file)
@@ -36,7 +36,7 @@
 #include "svga_cmd.h"
 #include "svga3d_caps.h"
 
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "pipebuffer/pb_buffer.h"
index f15bcd37b501ec11a144b166d955049c93996896..6a7e8c9b592b26197fc8865ef76581b68f3cc5b5 100644 (file)
@@ -29,7 +29,7 @@
 #include <X11/Xutil.h>
 #include <pipe/internal/p_winsys_screen.h>
 #include <pipe/p_state.h>
-#include <pipe/p_inlines.h>
+#include <util/u_inlines.h>
 #include <util/u_format.h>
 #include <util/u_memory.h>
 #include <util/u_math.h>
index 7d076be3a31c5264cb3d2db74069651a0e19c230..33c83210eb3bf281914d491241c9fdaa070564c2 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "pipe/p_format.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 2ad794c3f0fcfca1d1887d5a5dfe517a2dd3c7f1..4db9776280b01d8a46c1cde5dd4b11b114d49106 100644 (file)
@@ -41,7 +41,7 @@
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_format.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index fc9addd09e316e6aa9b350b45770748cd67adbc3..5558654d7b7268acd93704e1d280a9054e193239 100644 (file)
@@ -37,7 +37,7 @@
 /* #include "xmesaP.h" */
 
 #include "pipe/internal/p_winsys_screen.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "i965simple/brw_winsys.h"
index 47ae0519a4baa5fcdab7b3abd14cdf3daacb1fd3..8dc18efbf3d4cf8c3badc223dc4768e7e7eeb925 100644 (file)
@@ -44,7 +44,7 @@
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_format.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 2a434b5fd216c45488715cb759b0d2bec9e4ba7c..cdf92d8b5e34a3b1bf25f24e4b6bdff7108e71fe 100644 (file)
@@ -43,7 +43,7 @@
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_format.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index bf78aca6869fc9860fec4c5ed25c34792d9d468f..87a1325ca4d2e839ba3c9f9f55d2b542111bd50e 100644 (file)
@@ -41,7 +41,7 @@
 #include "pipe/internal/p_winsys_screen.h"
 #include "pipe/p_format.h"
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
index 3b98b9c40b3555559a07f72e03b8a8ac24188c93..0a5cba9d927fd885c8b8f050b7f29e62068f01ce 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_shader_tokens.h"
 #include "util/u_tile.h"
 #include "util/u_draw_quad.h"
index d70cf877e84973eaec0062e1e736fbc88d4c8fa3..d975cd66f7dc0e51b86784d2fc99dc94e02b5525 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "st_debug.h"
 #include "st_context.h"
index 8d045f2c6c06734aa8c15a154359f63091bd2cc5..fba7bfe2cea6d7a81b40fc0a78275341ad03bb94 100644 (file)
@@ -40,6 +40,7 @@
 #include "cso_cache/cso_context.h"
 #include "util/u_rect.h"
 #include "util/u_math.h"
+#include "util/u_inlines.h"
 
 
 
index 0b68447d2122364daf4ab5402ddfac344faba5af..57b71c1e7b02d6d2cfa01d463886ee62d0e33668 100644 (file)
@@ -39,6 +39,7 @@
 #include "st_texture.h"
 #include "st_cb_texture.h"
 #include "pipe/p_context.h"
+#include "util/u_inlines.h"
 #include "cso_cache/cso_context.h"
 
 
index 798081ec8996c4981bd2a8530275f5e3d60a2584..1be72e729e4b83d46688542e7a122809cf8efe2b 100644 (file)
@@ -43,7 +43,7 @@
 #include "st_inlines.h"
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_tile.h"
 
 
index d1b35f796ecd08518f24d86640e5275e50505c70..c70bbc880c0649c9a3ba78abd6f7b4cee225ff74 100644 (file)
@@ -47,7 +47,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_draw_quad.h"
 #include "util/u_simple_shaders.h"
 #include "shader/prog_instruction.h"
index 65aa2a28ac29fea8782d91388c61a363b74265bd..416969164843e9376eac454a18cf1c0524ef424d 100644 (file)
@@ -41,6 +41,7 @@
 #include "st_cb_fbo.h"
 
 #include "util/u_blit.h"
+#include "util/u_inlines.h"
 
 #include "cso_cache/cso_context.h"
 
index 0102d8a6f7d42047d8e35af6e4c26eb426041b97..3ff589034ae3a587b9fa1dc338ca2df28fc02cc1 100644 (file)
@@ -42,7 +42,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 
 /**
index 94693d91f3903bf268bb19536143edadc7780568..0c7bcb85973c686d7c1ce56c8cb2d63147d14f7a 100644 (file)
@@ -47,7 +47,7 @@
 #include "st_inlines.h"
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
 #include "util/u_format.h"
index 7afdc31ede98e3298f96b7660b9465eb32467074..9b1d2103f17a17e031aaac0c7eff1b7aa7dbba31 100644 (file)
@@ -53,7 +53,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "tgsi/tgsi_ureg.h"
 #include "util/u_tile.h"
 #include "util/u_draw_quad.h"
index f7350ef1e3c9ec5a5e3bc33cd11c08c44a97e806..9f2fe7420d4b0168fd0a8aa01425ea14ed9a5a82 100644 (file)
@@ -50,6 +50,7 @@
 
 #include "util/u_format.h"
 #include "util/u_rect.h"
+#include "util/u_inlines.h"
 
 
 /**
index 8eb825a6a4183f6b0b002f566fe0029cbc4155f2..6b1fdf3ecd0704cda99250ca4025802d20315cdf 100644 (file)
@@ -40,7 +40,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_tile.h"
 
 #include "st_debug.h"
index cee2452eafee47e5164b610b5f34d00eae05dd76..7c5664be1d8e684fa0350c8819fa3a43fe39297c 100644 (file)
@@ -57,7 +57,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_shader_tokens.h"
 #include "util/u_tile.h"
 #include "util/u_blit.h"
index a62ff248ce5992d7b611147f8a36fd2ce832b825..8f6a0c2423b1fea315b77bec12a12d1090a1e456 100644 (file)
@@ -63,6 +63,7 @@
 #include "st_gen_mipmap.h"
 #include "st_program.h"
 #include "pipe/p_context.h"
+#include "util/u_inlines.h"
 #include "draw/draw_context.h"
 #include "cso_cache/cso_context.h"
 
index 381c68474d602795adc75ffe7f654b1ac48d2dd0..e1dcb154c1b3ba75e2d29a10734239f39facbb31 100644 (file)
@@ -55,7 +55,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 
 static GLuint double_types[4] = {
index cdaee2a353e637915cad55b8b567d41d9adc2e9c..75ad1a97cf2eeb4e7cc95e59ebb256fd6feed369 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 
 #include "draw/draw_private.h"
 #include "draw/draw_context.h"
index 835142e3d41b3d4eb53ab1e6595ffcaeabd9ec45..ed9c0ff5b76cf9f11781bd1449c8974e27c1ce7b 100644 (file)
@@ -35,6 +35,7 @@
 #include "st_cb_fbo.h"
 #include "st_public.h"
 #include "pipe/p_defines.h"
+#include "util/u_inlines.h"
 
 
 struct st_framebuffer *
index 3823a59d37a63149920a40c038b8d86c33558f9c..f67d7b4cb5cbbfd427de370d341aa5e2b6736008 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_gen_mipmap.h"
 #include "util/u_math.h"
index dccc46f12d7d32039405ebedbb3051e573a7e30f..e105870bc7581522a4773cffd6e2afd5e53f6568 100644 (file)
@@ -36,7 +36,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "pipe/p_state.h"
 
 #include "st_context.h"
index b210ac9187362ef03d4e228946a01946ebd87277..5a45c4358a95980c6e0f3d6971857b0b5f9296f2 100644 (file)
@@ -41,7 +41,7 @@
 #include "pipe/p_state.h"
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/p_inlines.h"
+#include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_rect.h"
 #include "util/u_math.h"