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 ...@@ -73,9 +73,10 @@ struct pipe_winsys
* window systems must then implement that interface (rather than the * window systems must then implement that interface (rather than the
* other way around...). * other way around...).
* *
* usage is a bitmask of PIPE_BUFFER_USAGE_PIXEL/VERTEX/INDEX/CONSTANT. This * usage is a bitmask of PIPE_BIND_*.
* usage argument is only an optimization hint, not a guarantee, therefore * XXX is this true?
* proper behavior must be observed in all circumstances. * 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 * alignment indicates the client's alignment requirements, eg for
* SSE instructions. * SSE instructions.
...@@ -117,7 +118,7 @@ struct pipe_winsys ...@@ -117,7 +118,7 @@ struct pipe_winsys
* display targets) must be allocated with special characteristics, memory * display targets) must be allocated with special characteristics, memory
* pools, or obtained directly from the windowing system. * 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 * with the PIPE_BIND_DISPLAY_TARGET flag to get the underlying
* buffer storage. * buffer storage.
*/ */
......
...@@ -230,9 +230,7 @@ struct svga_winsys_screen ...@@ -230,9 +230,7 @@ struct svga_winsys_screen
/** /**
* Buffer management. Buffer attributes are mostly fixed over its lifetime. * Buffer management. Buffer attributes are mostly fixed over its lifetime.
* *
* usage is a bitmask of PIPE_BUFFER_USAGE_PIXEL/VERTEX/INDEX/CONSTANT. This * XXX usage seems to be a bitmask of SVGA_BUFFER_USAGE_* flags.
* 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 * alignment indicates the client's alignment requirements, eg for
* SSE instructions. * SSE instructions.
...@@ -246,9 +244,9 @@ struct svga_winsys_screen ...@@ -246,9 +244,9 @@ struct svga_winsys_screen
/** /**
* Map the entire data store of a buffer object into the client's address. * Map the entire data store of a buffer object into the client's address.
* flags is a bitmask of: * flags is a bitmask of:
* - PIPE_BUFFER_USAGE_CPU_READ/WRITE * - PB_USAGE_CPU_READ/WRITE
* - PIPE_BUFFER_USAGE_DONTBLOCK * - PB_USAGE_DONTBLOCK
* - PIPE_BUFFER_USAGE_UNSYNCHRONIZED * - PB_USAGE_UNSYNCHRONIZED
*/ */
void * void *
(*buffer_map)( struct svga_winsys_screen *sws, (*buffer_map)( struct svga_winsys_screen *sws,
......
...@@ -131,7 +131,7 @@ struct pipe_screen { ...@@ -131,7 +131,7 @@ struct pipe_screen {
struct pipe_resource *pt); struct pipe_resource *pt);
/** Get a 2D surface which is a "view" into a texture /** 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_surface *(*get_tex_surface)(struct pipe_screen *,
struct pipe_resource *resource, struct pipe_resource *resource,
......
...@@ -110,7 +110,7 @@ struct sw_winsys ...@@ -110,7 +110,7 @@ struct sw_winsys
struct winsys_handle *whandle ); struct winsys_handle *whandle );
/** /**
* \param flags bitmask of PIPE_BUFFER_USAGE_x flags * \param flags bitmask of PIPE_TRANSFER_x flags
*/ */
void * void *
(*displaytarget_map)( struct sw_winsys *ws, (*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