mesa: add MaxNumLevels to gl_texture_image, remove MaxLog2
authorMarek Olšák <maraeo@gmail.com>
Sun, 11 Nov 2012 14:22:32 +0000 (15:22 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 12 Nov 2012 20:36:56 +0000 (21:36 +0100)
commit8111342e814304730bed34446ea816cbc17a5775
tree90260b9415bd64076d679125fd8adfd75c787ea3
parent26097c4855b97ee6e362c19df11d51fb7fd42192
mesa: add MaxNumLevels to gl_texture_image, remove MaxLog2

MaxLog2 led to bugs, because it didn't work well with 1D and 3D textures.

NOTE: This is a candidate for the stable branches.

v2: correct the comment at MaxNumlevels

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
src/mesa/main/mtypes.h
src/mesa/main/teximage.c
src/mesa/main/teximage.h