Mesa (master): gallium: added comments to pipe_transfer

Brian Paul brianp at kemper.freedesktop.org
Sat Jan 29 03:26:20 UTC 2011


Module: Mesa
Branch: master
Commit: f9a36a496f874dd3ab20c0f2439a461f4b25dece
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9a36a496f874dd3ab20c0f2439a461f4b25dece

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Jan 28 20:25:27 2011 -0700

gallium: added comments to pipe_transfer

---

 src/gallium/include/pipe/p_state.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index d5c767a..574a7a8 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -390,11 +390,11 @@ struct pipe_stream_output_state
 struct pipe_transfer
 {
    struct pipe_resource *resource; /**< resource to transfer to/from  */
-   unsigned level;
+   unsigned level;                 /**< texture mipmap level */
    enum pipe_transfer_usage usage;
-   struct pipe_box box;
-   unsigned stride;
-   unsigned layer_stride;
+   struct pipe_box box;            /**< region of the resource to access */
+   unsigned stride;                /**< row stride in bytes */
+   unsigned layer_stride;          /**< image/layer stride in bytes */
    void *data;
 };
 




More information about the mesa-commit mailing list