OSDN Git Service

anv: Refactor anv_GetImageSubresourceLayout()
authorChad Versace <chadversary@chromium.org>
Tue, 7 Nov 2017 03:35:43 +0000 (19:35 -0800)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit2a4798ad98b973f8cecad25f2e5cccb9024c9576
tree0ef1e0378a40ed4dda71254415181ea9d39bb6ca
parent69e3f0b02ee10f9704238c8957cd270007236ec4
anv: Refactor anv_GetImageSubresourceLayout()

Its helper function, anv_surface_get_subresource_layout(), was not very
helpful. So fold it into the main function.

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