anv/image: Refactor choice of isl_tiling_flags_t
authorChad Versace <chadversary@chromium.org>
Tue, 7 Nov 2017 02:51:53 +0000 (18:51 -0800)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit69e3f0b02ee10f9704238c8957cd270007236ec4
treea490f5c4489fd4867f2bffb49efd7d90ddf7de4c
parent7bb4387105491e9efd4c412002fb4a6e72a4ceda
anv/image: Refactor choice of isl_tiling_flags_t

Instead of choosing the tiling flags inside make_surface(), which is
called once per aspect in a loop, and which chooses the same tiling for
each aspect, choose the tiling flags exactly once before entering the
aspect loop.

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