diff options
author | Keith Whitwell <[email protected]> | 2008-12-12 16:46:34 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-12-12 16:57:39 +0000 |
commit | d2c2e9316d043ab584794a3524f22776deb4c777 (patch) | |
tree | 1d6045093cd7c935ceb26a3afb6c57b177c0ac62 /src/gallium/auxiliary/util/u_gen_mipmap.h | |
parent | eb20e2984e51e632ef1a51620db7aca3eb89dafa (diff) |
gallium: avoid mapping same vertex buffer in subsequent frames
Quite a few util modules were maintaining a single vertex buffer over multiple
frames, and potentially reusing it in subsequent frames. Unfortunately that
would force us into syncrhonous rendering as the buffer manager would be
forced to wait for the previous rendering to complete prior to allowing the
map.
This resolves that issue, but requires the state tracker to issue a few new
flush() calls at the end of each frame.
Diffstat (limited to 'src/gallium/auxiliary/util/u_gen_mipmap.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_gen_mipmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.h b/src/gallium/auxiliary/util/u_gen_mipmap.h index 3277024f07d..54608f9466d 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.h +++ b/src/gallium/auxiliary/util/u_gen_mipmap.h @@ -50,6 +50,11 @@ util_create_gen_mipmap(struct pipe_context *pipe, struct cso_context *cso); extern void util_destroy_gen_mipmap(struct gen_mipmap_state *ctx); +/* Release vertex buffer at end of frame to avoid synchronous + * rendering. + */ +extern void +util_gen_mipmap_flush( struct gen_mipmap_state *ctx ); extern void |