On Thu, Jul 21, 2016 at 9:21 PM, Jason Ekstrand <[email protected]> wrote: > Signed-off-by: Jason Ekstrand <[email protected]> > Cc: "12.0" <[email protected]> > Cc: Nanley Chery <[email protected]> > --- > src/intel/vulkan/anv_meta_clear.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/intel/vulkan/anv_meta_clear.c > b/src/intel/vulkan/anv_meta_clear.c > index 18dfae8..fe750c8 100644 > --- a/src/intel/vulkan/anv_meta_clear.c > +++ b/src/intel/vulkan/anv_meta_clear.c > @@ -761,9 +761,11 @@ anv_cmd_clear_image(struct anv_cmd_buffer *cmd_buffer, > > for (uint32_t r = 0; r < range_count; r++) { > const VkImageSubresourceRange *range = &ranges[r]; > - > for (uint32_t l = 0; l < anv_get_levelCount(image, range); ++l) { > - for (uint32_t s = 0; s < anv_get_layerCount(image, range); ++s) { > + const uint32_t layer_count = image->type == VK_IMAGE_TYPE_3D ? > + anv_minify(image->extent.depth, l) : > + anv_get_layerCount(image, range); > + for (uint32_t s = 0; s < layer_count; ++s) { > struct anv_image_view iview; > anv_image_view_init(&iview, cmd_buffer->device, > &(VkImageViewCreateInfo) { > -- > 2.5.0.400.gff86faf > > _______________________________________________ > mesa-stable mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/mesa-stable
This is a resend of series which has already landed. So no review is required. _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
