intel: Fix performance regression in Lightsmark since HiZ changes.
authorEric Anholt <eric@anholt.net>
Fri, 16 Dec 2011 21:18:55 +0000 (13:18 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 29 Dec 2011 17:33:56 +0000 (09:33 -0800)
commit7f854a5028ef00a0e041e78a770456204dc58eef
tree91424ee3e4c8601a51289589ebe530329446cbdb
parentab7794cada02f3b3b5e3a642c20eeedeb17b65a6
intel: Fix performance regression in Lightsmark since HiZ changes.

Since the refactor in d7b33309fe160212f2eb73f471f3aedcb5d0b5c1, depth
in the miptree changed from 1 to 6, so we always decided it didn't
match, and we would relayout to something that would still not
"match".

Improves performance 23.8% (+/- 1.1%, n=4)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43329
src/mesa/drivers/dri/intel/intel_mipmap_tree.c