Mesa (master): 33 new commits

Jason Ekstrand jekstrand at kemper.freedesktop.org
Mon Dec 4 18:04:38 UTC 2017


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e565bc6cea7e82925f066f797b3425cd2e69280
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 17:15:27 2017 -0800

    radv: Implement VK_KHR_get_surface_capabilities2
    
    The WSI core code does all the hard work.  Just add the wrappers and
    turn it on.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a10e3770f79e5e5c450e31ff1bfc2d045940b56
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 12:49:27 2017 -0800

    vulkan/wsi: Initialize individual WSI interfaces in wsi_device_init
    
    Now that we have anv_device_init/finish functions, there's no reason to
    have the individual driver do any more work than that.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e3e55110b0b528f23339453e9acf73513dfd6bb
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 12:38:26 2017 -0800

    vulkan/wsi: Drop some unneeded cruft from the API
    
    This drops the unneeded callbacks struct as well as the queue_get_family
    callback we were using before we'd pulled QueuePresent inside.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1b1be5196f38776405b58c01a6f138a0f031edb
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 12:26:26 2017 -0800

    vulkan/wsi: Add wrappers for all of the surface queries
    
    This lets us move wsi_interface to wsi_common_private.h
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=82931dc007bf6e485a4add7a875133b8ed48de55
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 12:05:35 2017 -0800

    vulkan/wsi: Drop the can_handle_different_gpu parameter from get_support
    
    Both anv and radv can handle prime now.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3131fd9dec2332f40c19f33cceb7128173e5cbbf
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 10:46:26 2017 -0800

    vulkan/wsi: Move wsi_swapchain to wsi_common_private.h
    
    The drivers no longer poke at this directly.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=516dfb34e10ae178b9754ce7fe22b7e88193440f
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 10:44:41 2017 -0800

    vulkan/wsi: Add a helper for AcquireNextImage
    
    Unfortunately, due to the fact that AcquireNextImage does not take a
    queue, the ANV trick for triggering the fence won't work in general.  We
    leave dealing with the fence up to the caller for now.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ff49951c30bf47f29d8ed7c9ea7ab655417391b
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Nov 16 12:02:04 2017 +1000

    vulkan/wsi: move swapchain create/destroy to common code
    
    v2 (Jason Ekstrand):
     - Rebase
     - Alter the names of the helpers to better match the vulkan entrypoints
     - Use the helpers in anv
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad4c60d6b87eb92191c638bf52ad38e7dd59f627
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 09:30:16 2017 -0800

    vulkan/wsi: Move prime blitting into queue_present
    
    This lets us save a QueueSubmit and it also makes prime a lot less
    X11-specific.  Also, it means we can only wait on the semaphores once
    instead of on every blit.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=393aa3f6c929fdbcaa599597e28a3206aa09dcc2
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 09:56:37 2017 -0800

    vulkan/wsi: Move get_images into common code
    
    This moves bits out of all four corners (anv, radv, x11, wayland) and
    into the wsi common code.  We also switch to using an outarray to ensure
    we get our return code right.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1117f843fe6223a50aeedfd943696ac4a7b4691f
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 11:56:00 2017 -0800

    anv/wsi: Enable prime support
    
    Now that we're using the same common code as radv, we get prime support
    for free.  Just enable it.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac95335b614c0be8ef025013dc01a67131a8dcfd
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 09:46:50 2017 -0800

    anv/wsi: Use the common QueuePresent code
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d25a0f21e17c52633d3190273f8f7135e715f807
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 09:18:48 2017 -0800

    vulkan/wsi: Set a proper pWaitDstStageMask on the dummy submit
    
    Neither mesa driver really cares, but we should set it none the less for
    the sake of correctness.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=59e58c348e6af16a5f2ddb3dd2dcfcef116471a4
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 09:07:58 2017 -0800

    vulkan/wsi: Only wait on semaphores on the first swapchain
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b91a1953e81ef502d61a9ae2a01ec531a1cfa537
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 08:59:21 2017 -0800

    vulkan/wsi: Refactor result handling in queue_present
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6dc3a5e8f0c07d1f1ed6ff3fb71d8f2f6eb32d7c
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Nov 16 11:52:39 2017 +1000

    radv/wsi: Move the guts of QueuePresent to wsi common
    
    v2 (Jason Ekstrand):
     - Better comit message
     - Rebase
     - Re-indent to follow wsi_common style
     - Drop the unneeded _swapchain from the newly added helper
     - Make the clone more true to the original (as per the rebase)
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=42dd06d957036ae68d6e670af8b156f15ac750ea
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 09:39:50 2017 -0800

    vulkan/wsi: Add a WSI_FROM_HANDLE macro
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69365d72de7086bf10017ba896e68e3ebdf7b956
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Nov 16 11:03:22 2017 +1000

    radv/wsi: drop allocate memory special case
    
    Just check if image has scanout flag set
    
    v2 (Jason Ekstrand):
     - Rebase
     - Also drop the now unused radv_mem_flag_bits enum
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e12688f365258f6f719983528a2af9b6ca4e25c5
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 22:30:20 2017 -0800

    vulkan/wsi: Do image creation in common code
    
    This uses the mock extension created in a previous commit to tell the
    driver that the image it's just been asked to create is, in fact, a
    window system image with whatever assumptions that implies.  There was a
    lot of redundant code between the two drivers to do basically exactly
    the same thing.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d50937f137201e1d90ce18bbea1383af7a7ebd5d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 19:04:10 2017 -0800

    vulkan/wsi: Implement prime in a completely generic way
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df4fc684920840220bb1fb92281e40157b4db618
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Sat Nov 18 15:30:34 2017 -0800

    radv: Move wsi initialization later in physical_device_init
    
    We need it to happen after memory type setup so that we can query memory
    types in wsi_device_init.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a50f93ecfbfbf94d661f90119d304ae13fcea9c8
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Nov 16 08:27:01 2017 -0800

    radv/image: Implement the wsi "extension"
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dabb4011f5336545df54acf80d1e3be17e9e34d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 22:11:46 2017 -0800

    anv/image: Implement the wsi "extension"
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a44744e01d73f7187406200d57dd67aa235a7d13
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Nov 28 08:49:29 2017 -0800

    anv: Require a dedicated allocation for modified images
    
    This lets us set the BO tiling when we allocate the memory.  This is
    required for GL to work properly.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d19e570e141c66867f463c75fa34f265a9f5c50
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Nov 28 09:28:12 2017 -0800

    anv/image: Add a drm_format_mod field
    
    At the moment, this is always initialized to DRM_FORMAT_MOD_INVALID.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=546e747867c91a0738a145ff5bc0825f4afac1a3
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Nov 27 18:43:43 2017 -0800

    radv: Implement VK_EXT_external_memory_dma_buf
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab18e8e59b6212003eb223d633070b3f9efd6e4d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Nov 27 18:33:44 2017 -0800

    anv: Implement VK_EXT_external_memory_dma_buf
    
    This is a modified version of the patch originally sent by Chad Versace.
    The primary difference is that this version claims that OPQAUE_FD and
    DMA_BUF are compatible handle types.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66dc61821576a16f118162ca979b404b388bce40
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 22:11:23 2017 -0800

    vulkan/wsi: Add a mock image creation extension
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd881dafad9bdb5a8f94ae272c56c7e30ee28d09
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 20:08:53 2017 -0800

    vulkan/wsi: Add wsi_swapchain_init/finish functions
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=764fc1643c10ca1f336a99ddbe727313c995b6bb
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 18:50:44 2017 -0800

    vulkan/wsi: Add a wsi_device_init function
    
    This gives the opportunity to collect some function pointers if we'd
    like which will be very useful in future.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3991098f3b10519b4308763fb77cd15e3218a044
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Nov 15 19:59:01 2017 -0800

    vulkan/wsi/x11: Handle the geometry check earlier in create_swapchain
    
    This fixes a potential leak if allocating the swapchain fails.  Since
    geometry checking and bit-depth fetching is self-contained, it makes
    sense to just do it first so we can delete the geometry reply.
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1163f7b1c3f56bb268f61205a67f019806ae785
Author: Daniel Stone <daniels at collabora.com>
Date:   Thu Jul 20 11:51:48 2017 +0100

    vulkan/wsi: Add a wsi_image structure
    
    This is used to hold information about the allocated image, rather than
    an ever-growing function argument list.
    
    v2 (Jason Ekstrand):
     - Rename wsi_image_base to wsi_image
    
    Signed-off-by: Daniel Stone <daniels at collabora.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Chad Versace <chadversary at chromium.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2cbeb32555421ae302222e6e730b412c82742d74
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Nov 16 08:46:41 2017 +1000

    vulkan/wsi: use function ptr definitions from the spec.
    
    This just seems cleaner, and we may expand this in future.
    
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>




More information about the mesa-commit mailing list