radeon: update miptree code a little
authorMaciej Cencora <m.cencora@gmail.com>
Sun, 29 Nov 2009 14:40:13 +0000 (15:40 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Sun, 29 Nov 2009 16:27:48 +0000 (17:27 +0100)
commit63c00c53a3019b801c5eee8a12f7862422f79f10
tree55a106bc7772bebb5fd22714356c351e69581945
parent2773556d55fe6043bee3d4c86f7b78906e5d60e0
radeon: update miptree code a little

Simplify gl image level <-> miptree level mapping (are equal now).
Don't allocate miptree for images that won't fit in it (fixes #25230).
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h
src/mesa/drivers/dri/radeon/radeon_texture.c