summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi_wayland.c
Commit message (Collapse)AuthorAgeFilesLines
* anv/wsi: remove all anv references from WSI common codeDave Airlie2016-10-191-2/+2
| | | | | | the WSI code should be now be clean for sharing. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv: move common wsi code to x11/wayland common files.Dave Airlie2016-10-191-781/+3
| | | | | | | Next task is to rename all the anv_ out of this, and move to a common location Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi/wayland: add callback to get device format properties.Dave Airlie2016-10-191-5/+12
| | | | | | This avoids having to know the toplevel API name. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi/wl: stop using device in more placesDave Airlie2016-10-191-16/+20
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: split out surface creation to avoid instance APIDave Airlie2016-10-191-11/+23
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: move further away from passing anv displays aroundDave Airlie2016-10-191-14/+7
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: split image alloc/free out to separate fns.Dave Airlie2016-10-191-94/+26
| | | | | | | This moves these outside the wsi platform code, so we can reuse that code Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: switch to using VkDevice in swapchainDave Airlie2016-10-191-7/+8
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: drop device from get formatDave Airlie2016-10-191-2/+2
| | | | | | Just use the wsi_device instead. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: remove device from get_support interfaceDave Airlie2016-10-191-1/+2
| | | | | | replace with wsi_device and allocator. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: abstract wsi interfaces away from device a bit more.Dave Airlie2016-10-191-8/+8
| | | | | | This is a step towards separating out the wsi code for sharing Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: drop device from get capsDave Airlie2016-10-191-1/+0
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wsi: drop get present modes device argDave Airlie2016-10-191-1/+0
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* radv/anv/wsi: drop unneeded parameterDave Airlie2016-10-191-1/+0
| | | | Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* anv: move to using vk_alloc helpers.Dave Airlie2016-10-191-8/+8
| | | | | | | This moves all the alloc/free in anv to the generic helpers. Acked-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
* anv: port to using new u_vector shared helper.Dave Airlie2016-10-191-7/+7
| | | | | | | This just removes the anv vector code and uses the new helper. Acked-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
* anv: fix the wayland wsi busy flag settingDave Airlie2016-10-141-1/+1
| | | | | Cc: "12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
* anv/wsi: fix apps that acquire multiple images up frontDave Airlie2016-10-141-0/+1
| | | | | | | | | | | | This fix was found in the radv codebase when running dota2, no idea if anyone has reported it on anv, but the same problem occurs. Once an image is acquired we need to mark it busy. Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
* anv/wsi: Advertise UNORM formats as well as sRGBJason Ekstrand2016-10-061-0/+4
| | | | | | | | | | | | | | Because WSI images are created with VkImageCreateInfo::flags explicitly set to 0, they don't ever have the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT set. This means that you can't create an image view of it with a different format so applications can't render directly in sRGB (without automatic encoding) unless we actually advertise UNORM formats. There are a lot of applications that want to do their own sRGB conversion, so we should allow for that. We do, however, make UNORM come after sRGB in the list so that the default for dumb apps that just grab the first thing is to render in linear and let the sRGB conversion happen automatically. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* anv/wayland: fix assert typoEric Engestrom2016-08-301-1/+1
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
* anv/wsi: create swapchain images using specified image usageLionel Landwerlin2016-07-041-3/+7
| | | | | | | | | | | | | | | The image usage specified by the caller of vkCreateSwapchainKHR should be passed onto the internal image creation. Otherwise the driver might later crash when the user tries to use the image as a combined sampler even though the creation was explicitly created with VK_IMAGE_USAGE_TRANSFER_SRC_BIT. Leaving the previous VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT as this might be expected even if the swapchain is created without any flag. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96791 Cc: "12.0" <mesa-stable@lists.freedesktop.org>
* anv: Fix use of uninitialized variable.Robert Foss2016-05-301-2/+6
| | | | | | | | | | | | | The return variable was not set for failure paths. It has now been changed to VK_ERROR_INITIALIZATION_FAILED for failure paths. Coverity: 1358944 Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> [Emil Velikov: rebase against master, s/vulkan/anv/] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* anv/wsi: Use vk_format_info for asserts rather than anv_formatJason Ekstrand2016-05-171-1/+2
|
* anv/wayland: Don't allow non-renderable formatsJason Ekstrand2016-05-171-4/+7
|
* anv/wsi: Make WSI per-physical-device rather than per-instanceJason Ekstrand2016-05-171-17/+19
| | | | | This better maps to the Vulkan object model and also allows WSI to at least know the hardware generation which is useful for format checks.
* Move the intel vulkan driver to src/intel/vulkanJason Ekstrand2016-02-181-0/+871