dri/nouveau: only reallocate texture when needed
authorXavier Chantry <chantry.xavier@gmail.com>
Sat, 13 Mar 2010 18:28:07 +0000 (19:28 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 18 Mar 2010 14:02:34 +0000 (15:02 +0100)
commit50be9bc6ce8582b3d3cd4fa47976cbeac28b8c26
treef428f467b77522af3fb9e27237c6f98a5dc13470
parent9d48a621d2a0e55a76a2cfd0aea3b773e907ed50
dri/nouveau: only reallocate texture when needed

nouveau reallocated the mipmap tree on every MIN_FILTER call to account
for mipmap change. We only need to do this if the texture does not fit
in the existing mipmap tree. This gives a big performance boost for a
game like bzflag which changes MIN_FILTER all the time for its font
rendering.

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/nouveau/nouveau_texture.c