i965: Skip reallocating the private MSAA miptree, unless it's resized.
authorEric Anholt <eric@anholt.net>
Fri, 21 Mar 2014 23:20:13 +0000 (16:20 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Mar 2014 18:15:04 +0000 (11:15 -0700)
commitdd4b2261841421ec7f4389afffb27d6a1dba870e
tree22cab886ffbcd53ee189811430b847c6244bb2f0
parent44e944c87cafd55c00c8837d8223be074436015c
i965: Skip reallocating the private MSAA miptree, unless it's resized.

Even if the singlesample_mt got reopened from DRI due to
pageflipping/buffer swapping, our private miptree shouldn't need any
changes.

Improves performance of a little swapbuffers-loving microbenchmark with
MSAA forced on, by 1.2371% +/- 0.624802% (n=102)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c