projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8da261
)
anv: Ignore unused dimensions in vkCreateImage's anv_image
author
Nanley Chery
<nanley.g.chery@intel.com>
Thu, 18 Feb 2016 01:20:03 +0000
(17:20 -0800)
committer
Nanley Chery
<nanley.g.chery@intel.com>
Thu, 18 Feb 2016 01:32:26 +0000
(17:32 -0800)
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>
src/vulkan/anv_image.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_image.c
b/src/vulkan/anv_image.c
index dfacced92ef8b8f9e965388b9d2efcabfb9281c3..0a412a3f8c668e40ab62620d7e77edef57ba6a7b 100644
(file)
--- 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,