diff options
author | Marek Olšák <[email protected]> | 2011-11-20 03:24:00 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-11-20 16:24:11 +0100 |
commit | b5b7cc19d82c8761a6b56268aecdccbc1ed2f911 (patch) | |
tree | f95acb12fefcfa6a4c5bed2f18a0fc29eec590b5 /src | |
parent | df49b0ce9009e867f6d44fd48e31a16e5a933c64 (diff) |
u_vbuf_mgr: add comments
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_vbuf_mgr.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c index 7926b4244b7..5d3f137ecb3 100644 --- a/src/gallium/auxiliary/util/u_vbuf_mgr.c +++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c @@ -57,19 +57,29 @@ struct u_vbuf_elements { struct u_vbuf_priv { struct u_vbuf_mgr b; struct pipe_context *pipe; - struct translate_cache *translate_cache; - unsigned translate_vb_slot; + /* Whether there is any user buffer. */ + boolean any_user_vbs; + + /* Vertex element state bound by the state tracker. */ + void *saved_ve; + /* and its associated helper structure for this module. */ struct u_vbuf_elements *ve; - void *saved_ve, *fallback_ve; /* Vertex elements used for the translate fallback. */ struct pipe_vertex_element fallback_velems[PIPE_MAX_ATTRIBS]; + /* If non-NULL, this is a vertex element state used for the translate + * fallback and therefore used for rendering too. */ + void *fallback_ve; + /* The vertex buffer slot index where translated vertices have been + * stored in. */ + unsigned translate_vb_slot; + /* When binding the fallback vertex element state, we don't want to + * change saved_ve and ve. This is set to TRUE in such cases. */ boolean ve_binding_lock; - boolean any_user_vbs; - + /* Whether there is a buffer with a non-native layout. */ boolean incompatible_vb_layout; /* Per-buffer flags. */ boolean incompatible_vb[PIPE_MAX_ATTRIBS]; |