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 mesa-dev@list.freedesktop.org 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: commit dbbc4fb4cc8792fa25125a9c828b649d61113362 Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Date: Mon Jul 4 18:06:58 2016 +0100 anv/wsi: create swapchain images using specified image usage
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.