gallium/util: comments, var renaming in u_inlines.h
authorBrian Paul <brianp@vmware.com>
Thu, 25 Jul 2013 17:17:52 +0000 (11:17 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 31 Jul 2013 12:53:48 +0000 (06:53 -0600)
commit30f1770cb193ab2fd316b9c28486eb9738e46185
treefd790979d142b7ef81fb0c4a8a4781b99be37860
parent365f38f3dfef292c4917e10cdf3011f22f37dc51
gallium/util: comments, var renaming in u_inlines.h

The variable 'usage' was being used for two different things.
Sometimes for PIPE_USAGE_x and other times for PIPE_TRANSFER_x.
This renames usage to access when we're talking about PIPE_TRANSFER_x
flags.  Plus, add a bunch of comments to remind us what's going on.

Also, use unsigned for PIPE_TRANSFER_x bitmask to be consistent with
other places.  And add a missing const qualifier.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_inlines.h