Mesa (master): svga: Update flags documentation.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun May 2 23:13:43 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sun May  2 22:33:43 2010 +0100

svga: Update flags documentation.

---

 src/gallium/drivers/svga/svga_winsys.h |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h
index 3892add..c155f5d 100644
--- a/src/gallium/drivers/svga/svga_winsys.h
+++ b/src/gallium/drivers/svga/svga_winsys.h
@@ -85,7 +85,7 @@ struct svga_winsys_context
    /**
     * Emit a relocation for a host surface.
     * 
-    * @param flags PIPE_BUFFER_USAGE_GPU_READ/WRITE
+    * @param flags bitmask of SVGA_RELOC_* flags
     * 
     * NOTE: Order of this call does matter. It should be the same order
     * as relocations appear in the command buffer.
@@ -99,7 +99,7 @@ struct svga_winsys_context
    /**
     * Emit a relocation for a guest memory region.
     * 
-    * @param flags PIPE_BUFFER_USAGE_GPU_READ/WRITE
+    * @param flags bitmask of SVGA_RELOC_* flags
     * 
     * NOTE: Order of this call does matter. It should be the same order
     * as relocations appear in the command buffer.
@@ -230,7 +230,7 @@ struct svga_winsys_screen
    /**
     * Buffer management. Buffer attributes are mostly fixed over its lifetime.
     *
-    * XXX usage seems to be a bitmask of SVGA_BUFFER_USAGE_* flags.
+    * @param usage bitmask of SVGA_BUFFER_USAGE_* flags.
     *
     * alignment indicates the client's alignment requirements, eg for
     * SSE instructions.
@@ -243,15 +243,12 @@ struct svga_winsys_screen
 
    /** 
     * Map the entire data store of a buffer object into the client's address.
-    * flags is a bitmask of:
-    * - PB_USAGE_CPU_READ/WRITE
-    * - PB_USAGE_DONTBLOCK
-    * - PB_USAGE_UNSYNCHRONIZED
+    * flags is a bitmaks of PIPE_TRANSFER_*
     */
    void *
    (*buffer_map)( struct svga_winsys_screen *sws, 
 	          struct svga_winsys_buffer *buf,
-		  unsigned usage );
+		  unsigned flags );
    
    void 
    (*buffer_unmap)( struct svga_winsys_screen *sws, 




More information about the mesa-commit mailing list