Mesa (main): 21 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 8 12:34:14 UTC 2022


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=53e83b7031be488e4d120b1d56456ade509e84d3
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Apr 4 13:55:00 2022 +0200

    dzn: Support independent depth/stencil access
    
    Needed for VK_KHR_maintenance2. While at it, fix various places where
    we were only issuing resource state transition on the first sub-resource
    instead of doing it per-layer/aspect.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69e8a6042ff310f2e3f0d865eee6613aa419e8fd
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Apr 4 13:50:02 2022 +0200

    dzn: Fix 2D <-> 3D blits
    
    layer_count == 1 doesn't imply image_is_3d. So let's add explicit
    is_3d checks where appropriate.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=451a43ae1eef099f2f885b6d2ef55e5cc524577f
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Apr 4 13:45:06 2022 +0200

    dzn: Lower partial copy of multisample resources to blits
    
    Unfortunately that won't work on transfer queues, but we don't have a
    better option right now.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0667be8b5c10020c64a6bac088f75861d1bbbba
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Fri Apr 1 07:16:56 2022 -0700

    vulkan/util: Make STACK_ARRAY() C++-friendly
    
    C++ doesn't like the {0} initializer pattern when the first
    field is not an integer, let's use the {} when __cplusplus is
    defined.
    
    Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d30204ca4ddac1de025c1854d13650c34585924
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Apr 4 13:41:30 2022 +0200

    dzn: Drop extra blank line in dzn_CmdCopyImage2()
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=653c362ca6b60ba19cade9a3417a2381367cfafc
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Apr 4 13:21:46 2022 +0200

    dzn: Check image view usage instead of image usage when creating an image view
    
    So we take VkImageViewUsageCreateInfo extension instead of ignoring it.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ecc22ccaaa2626f2e68fa208d3a8d70d6cf2180
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 18:04:24 2022 +0200

    dzn: Force sampleCounts to 1 for bgra4 images
    
    Those are not expected to be used as render-target, and Vulkan mandates
    that such formats get their sampleCounts set to VK_SAMPLE_COUNT_1_BIT.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=84ad92348207650194a10cb59706f7b830ab9b9c
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Apr 4 13:25:48 2022 +0200

    dzn: Get rid of dzn_GetPhysicalDeviceProperties()
    
    Rely on the vk_common_ wrapper.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a804b639013bc115bc68ff6e624f8b84eca5416
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:59:22 2022 +0200

    dzn: Get rid of dzn_GetPhysicalDeviceFeatures()
    
    And rely on the vk_common_ wrapper to get it implemented.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e9c69fe39aa775f5b2319ede8cc044da356d265e
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:57:29 2022 +0200

    dzn: 3D array images don't exist
    
    Let's force maxArrayLayers to one in that case.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad0ac592be32938c0ef9b7200f2e4019eab9c48b
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Tue Apr 5 03:01:05 2022 -0700

    dzn: Set bufferFeatures to zero on depth/stencil formats
    
    Those are not supposed to advertise buffer features.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8dfab9b382dd7f542ae806c9e80c4601ba848769
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:56:37 2022 +0200

    dzn: Make sure the properties are all zero when the format is not supported
    
    Move one of the is_supported() check before we start filling the
    structure so we don't end up with a partially filled object when
    we return VK_ERROR_FORMAT_NOT_SUPPORTED (which deqp doesn't seem to like,
    so it's probably coming from a spec requirement).
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc3dd9690ba4df9d20248d1d066ddfbdbf8ed979
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:52:45 2022 +0200

    dzn: Return a valid imageFormatProperties.maxMipLevels
    
    maxMipLevels is encoding the maximum number of MIP levels, but
    dzn_physical_device_get_max_mip_levels() return the maximum MIP level.
    Let's rename the function and add one to the returned value to fix
    the problem.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cfd3dfc0741eb9ca84495c33fb4b5aef3c369571
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:49:49 2022 +0200

    dzn: Fix 3D <-> 2D image copies
    
    We just need to treat layers as slices when manipulating 3D resources
    whose slices are coming from/going to 2D array layers.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=94923021d7e99ac7bb5ca62971ab6c1a98e132d0
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:47:21 2022 +0200

    dzn: Support 2Darray views on 3D images for color attachments
    
    Those are declared as 3D RTVs in D3D12, and layers are treated as
    slices.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3684cae58c53d2c4220f76623273f599b141653b
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:44:19 2022 +0200

    dzn: Fix dzn_image_get_rtv_desc() for 3D views
    
    VK_REMAINING_ARRAY_LAYERS maps to -1 in the D3D12 world. Let's make sure
    we set WSize to -1 in that case, because the layer_count calculated by
    dzn_get_layer_count() won't work for 3D images which never have more
    than one layer (in case of 3D images, we treat slices as layers).
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f5831bbec2b2206f9948d45f56b482052b84932
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:40:55 2022 +0200

    dzn: Replace C++ references by pointers
    
    Let's keep as much as we can in plain C.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1401f62069cd0d51a0f2f26376d2bd3d9dbd16ba
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:39:14 2022 +0200

    dzn: Align the default case in dzn_image_view_prepare_dsv_desc()
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1692d8f0f6593fb47dd09471216d6bf08100f222
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 17:36:52 2022 +0200

    dzn: Don't crash when EndCommandBuffer() returns an error
    
    Leftover from a debug session.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c937152756067eef1fa10bb1970ca079a645eff0
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 31 07:19:56 2022 -0700

    dzn: Fix dzn_translate_viewport() when height < 0
    
    Since negative height is not a thing in D3D12, we need to adjust the
    TopLeftY accordingly.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=05b6c1ed8464c02ddb2835159d1d9c3aec9a4aa4
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Fri Apr 1 01:04:12 2022 -0700

    dzn: Fix pipeline creation when rasterization is disabled
    
    We use some of the VkGraphicsPipelineCreateInfo fields that should
    be ignored when rasterization in disabled, assuming those who be set
    to NULL by the caller in that case, which is not mandated by the
    Vulkan specification.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>



More information about the mesa-commit mailing list