anv: Ignore unused dimensions in vkCreateImage's anv_image

We ignore unused dimensions in the isl surface; do the same for the
resulting anv_image.

Reviewed-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
This commit is contained in:
Nanley Chery
2016-02-17 17:20:03 -08:00
parent b8da261dc7
commit 9963af8bbd
+2
View File
@@ -139,6 +139,8 @@ make_surface(const struct anv_device *dev,
unreachable("invalid image type");
}
image->extent = extent;
ok = isl_surf_init(&dev->isl_dev, &anv_surf->isl,
.dim = vk_to_isl_surf_dim[vk_info->imageType],
.format = anv_get_isl_format(vk_info->format, aspect,