Commit faf53328 authored by Roland Scheidegger's avatar Roland Scheidegger

gallium: fix comments for changed USAGE flags

parent fdcb17be
......@@ -73,9 +73,10 @@ struct pipe_winsys
* window systems must then implement that interface (rather than the
* other way around...).
*
* usage is a bitmask of PIPE_BUFFER_USAGE_PIXEL/VERTEX/INDEX/CONSTANT. This
* usage argument is only an optimization hint, not a guarantee, therefore
* proper behavior must be observed in all circumstances.
* usage is a bitmask of PIPE_BIND_*.
* XXX is this true?
* This usage argument is only an optimization hint, not a guarantee,
* therefore proper behavior must be observed in all circumstances.
*
* alignment indicates the client's alignment requirements, eg for
* SSE instructions.
......@@ -117,7 +118,7 @@ struct pipe_winsys
* display targets) must be allocated with special characteristics, memory
* pools, or obtained directly from the windowing system.
*
* This callback is invoked by the pipe_screenwhen creating a texture marked
* This callback is invoked by the pipe_screen when creating a texture marked
* with the PIPE_BIND_DISPLAY_TARGET flag to get the underlying
* buffer storage.
*/
......
......@@ -230,9 +230,7 @@ struct svga_winsys_screen
/**
* Buffer management. Buffer attributes are mostly fixed over its lifetime.
*
* usage is a bitmask of PIPE_BUFFER_USAGE_PIXEL/VERTEX/INDEX/CONSTANT. This
* usage argument is only an optimization hint, not a guarantee, therefore
* proper behavior must be observed in all circumstances.
* XXX usage seems to be a bitmask of SVGA_BUFFER_USAGE_* flags.
*
* alignment indicates the client's alignment requirements, eg for
* SSE instructions.
......@@ -246,9 +244,9 @@ struct svga_winsys_screen
/**
* Map the entire data store of a buffer object into the client's address.
* flags is a bitmask of:
* - PIPE_BUFFER_USAGE_CPU_READ/WRITE
* - PIPE_BUFFER_USAGE_DONTBLOCK
* - PIPE_BUFFER_USAGE_UNSYNCHRONIZED
* - PB_USAGE_CPU_READ/WRITE
* - PB_USAGE_DONTBLOCK
* - PB_USAGE_UNSYNCHRONIZED
*/
void *
(*buffer_map)( struct svga_winsys_screen *sws,
......
......@@ -131,7 +131,7 @@ struct pipe_screen {
struct pipe_resource *pt);
/** Get a 2D surface which is a "view" into a texture
* \param usage bitmaks of PIPE_BUFFER_USAGE_* read/write flags
* \param usage bitmaks of PIPE_BIND_* flags
*/
struct pipe_surface *(*get_tex_surface)(struct pipe_screen *,
struct pipe_resource *resource,
......
......@@ -110,7 +110,7 @@ struct sw_winsys
struct winsys_handle *whandle );
/**
* \param flags bitmask of PIPE_BUFFER_USAGE_x flags
* \param flags bitmask of PIPE_TRANSFER_x flags
*/
void *
(*displaytarget_map)( struct sw_winsys *ws,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment