i965/miptree: Loosen the format check in miptree_match_image
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Oct 2017 22:06:11 +0000 (15:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Feb 2018 02:18:16 +0000 (18:18 -0800)
commit344b57b10b85c9e466367d83dcfc5b578e73efca
treedd9e08ff6482f8509c19692335fb1d91c8f2babd
parent5b1b710e6f5321bed06b8c28524d8360412545f7
i965/miptree: Loosen the format check in miptree_match_image

This function is used to determine when we need to re-allocate a
miptree.  Since we do nothing different in miptree allocation for
sRGB vs. linear, loosening this should be safe and may lead to less
copying and reallocating in some odd cases.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_tex.c
src/mesa/drivers/dri/i965/intel_tex_obj.h
src/mesa/drivers/dri/i965/intel_tex_validate.c