nouveau: only try to get new storage if there are any levels
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 10 Aug 2014 15:52:55 +0000 (11:52 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 13 Aug 2014 14:09:01 +0000 (10:09 -0400)
commitd72d67832bd7a5f2aa0c402333a7de6804ad35ef
tree32a80b59fcabb2998644cc38b5a1b2368f4dd177
parentddcbea91f11a96b154b7e31c1b60816583056234
nouveau: only try to get new storage if there are any levels

This would try to allocate 0-sized bo's when the max level was below the
base level.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/nouveau/nouveau_texture.c