i965/miptree: Use the tiling from the modifier instead of the BO
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 18 Nov 2017 00:10:54 +0000 (16:10 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 22 Jan 2018 07:07:18 +0000 (23:07 -0800)
commitad424b2243023b0299de700fb2d220c2f7849ce6
tree1496cf76c5175282b3759e44a2a07ab5d88805dd
parent0465dd13d26451e2a57684d1ca6329dfbdeac9f4
i965/miptree: Use the tiling from the modifier instead of the BO

This fixes a bug where we were taking the tiling from the BO regardless
of what the modifier said.  When we got images in from Vulkan where it
doesn't set the tiling on the BO, we would treat them as linear even
though the modifier expressly said to treat it as Y-tiled.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/intel_mipmap_tree.c