llvmpipe: llvmpipe_flush_texture -> llvmpipe_flush_resource
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 25 Apr 2010 14:49:03 +0000 (15:49 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 25 Apr 2010 14:54:32 +0000 (15:54 +0100)
src/gallium/drivers/llvmpipe/lp_flush.c
src/gallium/drivers/llvmpipe/lp_flush.h
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/llvmpipe/lp_texture.c

index 3627dbd759ca1d75482fb36904351e5767e611f2..153491378ae12a118dbc105d4b9c2b7959134845 100644 (file)
@@ -97,19 +97,16 @@ llvmpipe_flush( struct pipe_context *pipe,
  * Flush context if necessary.
  *
  * TODO: move this logic to an auxiliary library?
- *
- * FIXME: We must implement DISCARD/DONTBLOCK/UNSYNCHRONIZED/etc for
- * textures to avoid blocking.
  */
 boolean
-llvmpipe_flush_texture(struct pipe_context *pipe,
-                       struct pipe_resource *texture,
-                       unsigned face,
-                       unsigned level,
-                       unsigned flush_flags,
-                       boolean read_only,
-                       boolean cpu_access,
-                       boolean do_not_flush)
+llvmpipe_flush_resource(struct pipe_context *pipe,
+                        struct pipe_resource *texture,
+                        unsigned face,
+                        unsigned level,
+                        unsigned flush_flags,
+                        boolean read_only,
+                        boolean cpu_access,
+                        boolean do_not_flush)
 {
    unsigned referenced;
 
index 2375d22b854a2da84a2708b10018cdb78d34e6f8..e516cee37896d95f08806c7078cd414db12e384c 100644 (file)
@@ -37,7 +37,7 @@ void llvmpipe_flush(struct pipe_context *pipe, unsigned flags,
                     struct pipe_fence_handle **fence);
 
 boolean
-llvmpipe_flush_texture(struct pipe_context *pipe,
+llvmpipe_flush_resource(struct pipe_context *pipe,
                        struct pipe_resource *texture,
                        unsigned face,
                        unsigned level,
index ca03440d5d669e8888d80a4a9bbb43b742476224..4934055bc6fe2b4456141fd92a50f2fab2e4b0d2 100644 (file)
@@ -59,14 +59,14 @@ lp_surface_copy(struct pipe_context *pipe,
    struct llvmpipe_resource *dst_tex = llvmpipe_resource(dst->texture);
    const enum pipe_format format = src_tex->base.format;
 
-   llvmpipe_flush_texture(pipe,
+   llvmpipe_flush_resource(pipe,
                           dst->texture, dst->face, dst->level,
                           0, /* flush_flags */
                           FALSE, /* read_only */
                           FALSE, /* cpu_access */
                           FALSE); /* do_not_flush */
 
-   llvmpipe_flush_texture(pipe,
+   llvmpipe_flush_resource(pipe,
                           src->texture, src->face, src->level,
                           0, /* flush_flags */
                           TRUE, /* read_only */
index 0c66f4ad503012070bb70dd0bd8b7dd4847e6265..e1aed7fdb5bba2d8b7a0c7881335df8ecb564892 100644 (file)
@@ -566,7 +566,7 @@ llvmpipe_transfer_map( struct pipe_context *pipe,
     * Transfers, like other pipe operations, must happen in order, so flush the
     * context if necessary.
     */
-   llvmpipe_flush_texture(pipe,
+   llvmpipe_flush_resource(pipe,
                           transfer->resource,
                          transfer->sr.face,
                          transfer->sr.level,