i965/miptree: Tell when brw_miptree_layout() fails
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 17 Jan 2017 08:10:17 +0000 (10:10 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 27 Jan 2017 06:57:25 +0000 (08:57 +0200)
commitbcec4113cc812f604deb8dff2bb91a32340984fa
treea8276eb78c5752b3cfc90222873a865a53fb7e2a
parentaa9e21a316f2f180433801ba69c818b9f2ca0948
i965/miptree: Tell when brw_miptree_layout() fails

In addition, let intel_miptree_create_layout() release the
miptree - it is the allocator.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h