i965: Fix validation of ETC miptrees.
authorEric Anholt <eric@anholt.net>
Tue, 18 Dec 2012 20:03:49 +0000 (12:03 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 22 Dec 2012 21:46:04 +0000 (13:46 -0800)
commit46386816a77c6e5751a0685776c0a6320f46f8fe
tree23b39e02e3c6e447a1e356a23adb840d15f17a51
parent3b99d094c99566e92a05d2a2d22a83939305c30b
i965: Fix validation of ETC miptrees.

When comparing to the teximage's format, we have to look at the
format-the-mt-was-created-for not the format-actually-stored-in-the-mt.

Improves glbenchmark 2.1 offscreen test performance 159% +/- 17% (n=3).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54582
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c