* 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;
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,
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 */
* 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,