anv: factor out common code for determining surface usage from a VkDescriptorType Signed-off-by: Rohan Garg <rohan.garg@intel.com>