i965: Handle miptree creation failure in intel_alloc_texture_storage()
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Mon, 12 May 2014 12:25:59 +0000 (15:25 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Jun 2014 12:37:14 +0000 (15:37 +0300)
commit78a89d6fa0c0fa35d7d14e50c2f4987ec411afd8
tree822f0c63eec16672c32f114343095ec36a89a7b1
parent375943bc0a99bec6e4d07b07acd0e9004b2a9ea0
i965: Handle miptree creation failure in intel_alloc_texture_storage()

Check intel_miptree_create() return value before using it as
a pointer.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/intel_tex.c