i965: miptree: silence coverity warning

This probably can't happen, but we're better off with initialized
variables.

CID: 1415114
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
Lionel Landwerlin 2017-07-16 15:17:25 +01:00
parent 0d190913bf
commit f03f893cb8
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ miptree_create_for_planar_image(struct brw_context *brw,
__DRIimage *image, GLenum target)
{
struct intel_image_format *f = image->planar_format;
struct intel_mipmap_tree *planar_mt;
struct intel_mipmap_tree *planar_mt = NULL;
for (int i = 0; i < f->nplanes; i++) {
const int index = f->planes[i].buffer_index;