winsys/svga: use new pb_usage_flags enum type
authorBrian Paul <brianp@vmware.com>
Tue, 5 Mar 2019 21:20:29 +0000 (14:20 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 14:40:35 +0000 (07:40 -0700)
commit76a10fc89e73a21771523a8c343c8f5727fbe16a
tree2efe6e08ff331904bba3c90023367d3e3d514331
parentb5f2b0d6b6ab462d5d8732a17493af2da400a9ef
winsys/svga: use new pb_usage_flags enum type

And add a comment that we're implicitly converting PIPE_TRANSFER_
flags to PB_USAGE_ flags in one place.  And statically assert that
the enum values match.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/winsys/svga/drm/vmw_buffer.c
src/gallium/winsys/svga/drm/vmw_buffer.h
src/gallium/winsys/svga/drm/vmw_context.c