Created attachment 124873 [details] [review]
anv: wsi: create swapchain images using specified image usage
Using images created from the swapchain for sampling leads to uninitialized memory access and sometimes crashes.
Turns out the right flags aren't set for X11/Wayland.
Thanks for the bug report and the patch! The convention in the mesa project is to send patches to the email@example.com mailing list. You can do so easily with "git send-email my_patch_name.patch". Please do so and I will ensure that it gets reviewed and committed.
I only have two comments on the patch:
1) The prefix "anv/wsi:" fits the mesa convention better.
2) I don't think you need to OR in COLOR_ATTACHMENT_BIT, just use the bits the user requested.
Sure, closing here.
It's still a bug, so let's leave it open until the patch lands.
Fixed by the following commit:
Author: Lionel Landwerlin <firstname.lastname@example.org>
Date: Mon Jul 4 18:06:58 2016 +0100
anv/wsi: create swapchain images using specified image usage