commit | 7bb4387105491e9efd4c412002fb4a6e72a4ceda | [log] [tgz] |
---|---|---|
author | Chad Versace <chadversary@chromium.org> | Fri Nov 03 16:42:16 2017 -0700 |
committer | Chad Versace <chadversary@chromium.org> | Thu Nov 09 16:01:59 2017 -0800 |
tree | 651702154c43ce921e01fa1f0b26124eb9936d35 | |
parent | 3ee7f4bc2f56f7c9c23de52fbe77125deef6be86 [diff] |
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>