anv/image: Fix choose_isl_surf_usage()
authorChad Versace <chad.versace@intel.com>
Tue, 9 Feb 2016 20:35:39 +0000 (12:35 -0800)
committerChad Versace <chad.versace@intel.com>
Tue, 9 Feb 2016 20:54:04 +0000 (12:54 -0800)
commit2f4bb00c2bdf56ae4db3810f049263dae42aecd5
tree71eeb58509f75475a634025f389706c64a42fee1
parentbdab29a312cfad29dc05ed11adc9c96faaa4501d
anv/image: Fix choose_isl_surf_usage()

Don't translate VkImageCreateInfo::usage into an isl_surf_usage bitmask.
Instead, translate anv_image::usage, which is a superset of
VkImageCreateInfo::usage.

For-Issue: https://gitlab.khronos.org/vulkan/mesa/issues/26
src/vulkan/anv_image.c