anv: Refactor anv_get_format_plane() - explicit unsupported
authorChad Versace <chadversary@chromium.org>
Fri, 3 Nov 2017 23:42:16 +0000 (16:42 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit7bb4387105491e9efd4c412002fb4a6e72a4ceda
tree651702154c43ce921e01fa1f0b26124eb9936d35
parent3ee7f4bc2f56f7c9c23de52fbe77125deef6be86
anv: Refactor anv_get_format_plane() - explicit unsupported

The same local variable, 'plane_format', was returned on success *and*
failure. Be more explicit in distinguishing the two cases: return
'plane_format' on success and return 'unsupported' on failure.

This simplifies the diff in upcoming patches for
VK_EXT_image_drm_format_modifier.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_formats.c