aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-02-17 17:20:03 -0800
committerNanley Chery <[email protected]>2016-02-17 17:32:26 -0800
commit9963af8bbdcf424c4f1ff16d2122d003f7c99154 (patch)
treee85e0ab7f7f95b021e42100b146ada9f8d61e6f3 /src
parentb8da261dc7e842f3a5f5256ea424c403543d40c9 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/anv_image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c
index dfacced92ef..0a412a3f8c6 100644
--- a/src/vulkan/anv_image.c
+++ b/src/vulkan/anv_image.c
@@ -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,