i965: Only call create_for_planar_image for multiple planes
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 31 Jul 2017 20:33:45 +0000 (13:33 -0700)
committerDaniel Stone <daniels@collabora.com>
Tue, 8 Aug 2017 08:32:20 +0000 (09:32 +0100)
commitbe0e13e49f0709b59cdf0f8618bac156bd8f3efd
tree0648a84da437a813ecb1d76aba8349b54879c831
parentda154786ce3a8f6a18ecfd238f1ade05d011c10c
i965: Only call create_for_planar_image for multiple planes

Before, we ended up always calling miptree_create_for_planar_image in
almost all cases because most images have image->planar_format != NULL.
This commit makes us only take that path if we have a multi-planar
format.

Reviewed-by: Daniel Stone <daniels@collabora.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c