Mesa (staging/22.0): 21 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 16 17:15:10 UTC 2022


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5308c4ea02bf034738b2ac2d2e19254a5a52c61
Author: Thierry Reding <treding at nvidia.com>
Date:   Wed Oct 6 22:47:17 2021 +0200

    tegra: Use private reference count for resources
    
    With the recent addition of the shortcuts aiming to avoid atomic
    operations, the reference count on resources can become unbalanced
    in the Tegra driver since they are wrapped and then proxied to the
    Nouveau driver.
    
    Fix this by keeping a private reference count.
    
    Fixes: 7688b8ae9802 ("st/mesa: eliminate all atomic ops when setting vertex buffers")
    Reviewed-by: Karol Herbst <kherbst at redhat.com>
    Tested-by: Karol Herbst <kherbst at redhat.com>
    (cherry picked from commit 108e6eaa83eed3eb356f3cce835c5f5e3a836b8e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=671f4c893a02102ba100a8aa051b3d37362012fd
Author: Thierry Reding <treding at nvidia.com>
Date:   Wed Oct 6 22:42:36 2021 +0200

    tegra: Use private reference count for sampler views
    
    With the recent addition of the shortcuts aiming to avoid atomic
    operations, the reference count on sampler views can become unbalanced
    in the Tegra driver since they are wrapped and then proxied to the
    Nouveau driver.
    
    Fix this by keeping a private reference count.
    
    Fixes: ef5d42741327 ("st/mesa: add a mechanism to bypass atomics when binding sampler views")
    Reviewed-by: Karol Herbst <kherbst at redhat.com>
    Tested-by: Karol Herbst <kherbst at redhat.com>
    (cherry picked from commit e8ce0a335704af54b8269d6e862835703700392b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7868c960b86f409530dc82dcdda00cd9e99487d0
Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Sat Feb 12 17:27:41 2022 +0100

    radv: Disable IB2 on compute queues.
    
    The "IB2" indirect buffer command is not supported on compute queues
    according to PAL, and it indeed causes GPU hangs when task shaders are
    used together with vkCmdExecuteCommands.
    
    Cc: mesa-stable
    Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15006>
    (cherry picked from commit da719792ad2b7f50824fd1ba500f8b87e4b3b448)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e348650ee673b2c543e074ed0b6ad0e2a1e51bf
Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Wed Nov 24 17:51:19 2021 +0100

    ir3/spill: Fix simplify_phi_nodes with multiple loop nesting
    
    Once we simplified a phi node, we never updated the definition it points
    to, which meant that it could become out of date if that definition were
    also simplified, and we didn't check that when rewriting sources. That
    could happen when there are multiple nested loops with phi nodes at the
    header.
    
    Fix it by updating the phi's pointer. Since we always update sources
    after visiting the definition it points to, when we go to rewrite a
    source, if that source points to a simplified phi, the phi's pointer
    can't be pointing to a simplified phi because we already visited the phi
    earlier in the pass and updated it, or else it's been simplified in the
    meantime and this isn't the last pass. This way we don't need to
    keep recursing when rewriting sources.
    
    Fixes: 613eaac7b53 ("ir3: Initial support for spilling non-shared registers")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15035>
    (cherry picked from commit 3ef858a6f6789207e3f24550e9dfb595e3018029)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f88718d8e95704f6036c1a339c2e5348e17f67b6
Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Tue Feb 15 10:22:15 2022 +0200

    mesa/st: always use DXT5 when transcoding ASTC format
    
    This fixes artifacts seen in games when using ASTC transcoding,
    we need to use DXT5 for proper alpha channel support.
    
    Number of components is a block specific property, there is no easy
    way to see if we will require >1bit alpha support or not, so simply
    use DXT5 to have support in place.
    
    Fixes: 91cbe8d855c ("gallium: Add a transcode_astc driconf option")
    Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
    Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15029>
    (cherry picked from commit d3b4202b63cb3aca42bc91c5bc416acc1b7f382b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ba79691dce0ee7b3d22b6cb8907165f66a61336
Author: Yiwei Zhang <zzyiwei at chromium.org>
Date:   Tue Feb 15 20:15:57 2022 +0000

    venus: properly destroy deferred ahb image before real image creation
    
    Fixes: 19b7b09885c ("venus: prepare image creation helpers for AHB")
    
    Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15037>
    (cherry picked from commit 9dd15295e30b3dd5a75440dab05a1eb4019ef1a8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=964f946386c3fb7ac56a30f83c9b340921980feb
Author: Emma Anholt <emma at anholt.net>
Date:   Sat Feb 5 20:11:25 2022 -0800

    i915g: Initialize the rest of the "from_nir" temporary VS struct.
    
    draw looked at the uninitialized XFB state, which should just be zeroed
    out since i915 doesn't have XFB.
    
    Fixes: 2b3fc26da8be ("i915g: Switch to using nir-to-tgsi.")
    Reviewed-by: Zoltán Böszörményi <zboszor at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14896>
    (cherry picked from commit 780949c62bc2cd1805f99911a76fde016e430b6b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e13817a71b88b89dc5f6d6ead905737406f7722
Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Mon Feb 14 07:40:51 2022 +0200

    iris: fix a leak on surface states
    
    Cc: mesa-stable
    Closes:https://gitlab.freedesktop.org/mesa/mesa/-/issues/6013
    
    Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
    Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15010>
    (cherry picked from commit ecc00410302cae4e22ad7718a531f03658190389)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7dcc977c06cdf454065d83263adb53467f438b8d
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Feb 10 14:30:25 2022 -0500

    zink: always invalidate streamout counter buffer if not resuming
    
    this otherwise treates begin/end/begin the same as begin/pause/resume
    
    cc: mesa-stable
    
    fixes:
    KHR-GL46.texture_view.view_classes
    KHR-GL46.transform_feedback.capture_geometry_separate_test
    KHR-GL46.transform_feedback.capture_vertex_separate_test
    KHR-GL46.transform_feedback.query_geometry_separate_test
    KHR-GL46.transform_feedback.query_vertex_separate_test
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15020>
    (cherry picked from commit e8ba9cee270417af29f2399ada05c2d104f1dc58)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9350e05cb199b3ef34c16f6dbed127dd261bbb3b
Author: Danylo Piliaiev <dpiliaiev at igalia.com>
Date:   Thu Feb 10 14:07:12 2022 +0200

    ir3: Limit the maximum imm offset in nir_opt_offset for shared vars
    
    STL/LDL have 13 bits to store imm offset.
    
    Fixes crash in CS compilation in Monster Hunter World.
    
    Fixes: b024102d7c2959451bfef323432beaa4dca4dd88
    ("freedreno/ir3: Use nir_opt_offset for removing constant adds for shared vars.")
    
    Signed-off-by: Danylo Piliaiev <dpiliaiev at igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14968>
    (cherry picked from commit 0b2da9d795610df15346a594384c39a096be338f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c34dde7320d4d72018666b5dde30a283f5d9e1e
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date:   Fri Feb 11 17:28:35 2022 +0100

    intel/compiler: fix array & struct IO lowering in mesh shaders
    
    We really need offsets to be in dwords, not in vec4s.
    
    The bug manifests as random failure of func.mesh.clipdistance.5 crucible
    test, where stores to gl_MeshVerticesNV[x].gl_ClipDistance[4+n] actually write to
    gl_MeshVerticesNV[x].gl_ClipDistance[1+n].
    
    Fixes: 1f438eb0337 ("intel/compiler: Implement Mesh Output")
    Reviewed-by: Caio Oliveira <caio.oliveira at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14997>
    (cherry picked from commit b6557b80a50aa96ac0862bc029d72625ea4dd6db)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a86f13a31b723e51ac783ae66f342ca63fcf133
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sat Jan 15 14:43:15 2022 +0100

    radv: Fix preamble argument order.
    
    Used the wrong cmdbuffer in the wrong situation. Oops.
    
    Fixes: 915e9178faf ("radv: Split out commandbuffer submission.")
    Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14574>
    (cherry picked from commit 79131b6ee6c98a8b662aeb32bb623a8974f8bef5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25beed1afc00e1dbdeab8d82d3eb4c4461cf1fb8
Author: Erico Nunes <nunes.erico at gmail.com>
Date:   Sat Feb 5 11:14:36 2022 +0100

    lima/ppir: refactor bitcopy to use unsigned char
    
    This code does not work as expected when built with clang and
    -fstrict-aliasing.
    Redefine it in unsigned char operations so that it does not
    violate strict aliasing rules.
    
    Signed-off-by: Erico Nunes <nunes.erico at gmail.com>
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Cc: 22.0 <mesa-stable>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14894>
    (cherry picked from commit 0f9756f4808739c8b18e62e28bdbb430af735c67)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0b2720b0e6bd22be5de184f6bec34321dbb1026
Author: Erico Nunes <nunes.erico at gmail.com>
Date:   Wed Feb 2 12:30:56 2022 +0100

    lima/ppir: initialize slots array for dummy/undef
    
    Some functions in ppir iterate the ppir_op_info slots arrays looking
    for the PPIR_INSTR_SLOT_END token. The dummy/undef internal ops may
    appear in the scheduling code and their slots arrays did not contain
    that token, which could result in invalid array reads.
    Reported by gcc -fsanitize=address.
    
    Signed-off-by: Erico Nunes <nunes.erico at gmail.com>
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Cc: 22.0 <mesa-stable>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14894>
    (cherry picked from commit 7297f931f04bedb2a49a723972e5de8daad7b487)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=53d040e58034c577f6b279c9f60b8e40fd0bc6ba
Author: Erico Nunes <nunes.erico at gmail.com>
Date:   Wed Feb 2 12:27:08 2022 +0100

    lima/gpir: avoid invalid write in regalloc
    
    Reported by gcc -fsanitize=address, sometimes gpir regalloc attempts to
    handle an uninitialized node->value_reg (containing the value -1), which
    results in an invalid array access.
    Avoid it for now to prevent crashes, but more investigation may be
    required later on.
    
    Signed-off-by: Erico Nunes <nunes.erico at gmail.com>
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Cc: 22.0 <mesa-stable>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14894>
    (cherry picked from commit 5b1584936632f9e7f21cc57746ca51cbdc526b0f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=105b4765e7889040b0a8aa611f73ee42c9160e81
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Feb 11 11:17:49 2022 +0100

    radv/winsys: fix initializing debug/perftest options if multiple instances
    
    Since the winsys uses refcount, options like RADV_DEBUG_ZERO_VRAM might
    have not been initialized if the first instance wasn't created with
    application info.
    
    This fixes missing zerovram for vkd3d-proton.
    
    Cc: 21.3 22.0 mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14978>
    (cherry picked from commit aa3405e8123324b3d8173c709e6573d86570d99a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=57749a5957282d31e9404f1d08247c592a16202a
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Wed Feb 16 09:13:41 2022 -0800

    .pick_status.json: Mark b07372312d7053f2ef5c858ceb1fbf9ade5e7c52 as denominated

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4fb2fa612cb2cba3097ad7dfc967dbb7f0aa952a
Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date:   Tue Feb 8 16:04:34 2022 -0600

    anv: Call vk_command_buffer_finish if create fails
    
    This wasn't much of a problem before because vk_command_buffer_finish()
    doesn't do much on an empty command buffer.  However, it's about to be
    responsible for managing the pool's list of command buffers so it will
    be critical to get this right.
    
    Fixes: c9189f481353 ("anv: Use a common vk_command_buffer structure")
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14917>
    (cherry picked from commit 7b0e30685446d30aaea1c2c7c1fd04a658c74d94)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=42e4600e87c446b757709d5bcdf0782da9c6d245
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Feb 9 16:13:29 2022 -0500

    zink: always set VkPipelineMultisampleStateCreateInfo::pSampleMask
    
    by initializing this on context creation, we can ensure that the correct
    value is always here
    
    cc: mesa-stable
    
    fixes:
    dEQP-GLES31.functional.texture.multisample.samples_1.sample_mask_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_1.sample_mask_and_sample_coverage
    dEQP-GLES31.functional.texture.multisample.samples_1.sample_mask_and_sample_coverage_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_1.sample_mask_only
    dEQP-GLES31.functional.texture.multisample.samples_2.sample_mask_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_2.sample_mask_and_sample_coverage
    dEQP-GLES31.functional.texture.multisample.samples_2.sample_mask_and_sample_coverage_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_2.sample_mask_only
    dEQP-GLES31.functional.texture.multisample.samples_3.sample_mask_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_3.sample_mask_and_sample_coverage
    dEQP-GLES31.functional.texture.multisample.samples_3.sample_mask_and_sample_coverage_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_3.sample_mask_only
    dEQP-GLES31.functional.texture.multisample.samples_4.sample_mask_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_4.sample_mask_and_sample_coverage
    dEQP-GLES31.functional.texture.multisample.samples_4.sample_mask_and_sample_coverage_and_alpha_to_coverage
    dEQP-GLES31.functional.texture.multisample.samples_4.sample_mask_only
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14974>
    (cherry picked from commit 8ff96efcfde15d5e8b83ce3b0b95a73254e98b69)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=454a6c973581159dad22087dccd0c78850496e70
Author: Iván Briano <ivan.briano at intel.com>
Date:   Thu Feb 10 14:26:21 2022 -0800

    anv: make the pointer valid before we assign stuff into it
    
    Fixes: 665ffd4bf9c ("anv: Update VK_KHR_fragment_shading_rate for newer HW")
    
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14982>
    (cherry picked from commit e2a5e2d5a0f8ed972a4669be9c5d689a6b3e7bca)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=178798db3dd90b0b1f4a1abd4854813e598ebf1c
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Wed Feb 16 09:13:15 2022 -0800

    .pick_status.json: Update to 108e6eaa83eed3eb356f3cce835c5f5e3a836b8e



More information about the mesa-commit mailing list