Mesa (staging/21.0): 30 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 14 03:47:15 UTC 2021


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c748e6ae4292eac0b928ae4bbc83a70cc8977f74
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 20:39:07 2021 -0700

    .pick_status.json: Mark 363c1ef0c0e10781799abe87ace5cc87621eb3bf as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=446170d0f7edd80dbf5ceba4d83b28aa02ef0b6e
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 20:39:05 2021 -0700

    .pick_status.json: Mark e4ef5f043315e9f06bfb082b867dc08efe310d55 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c493e6da00799b0076d957895b2a30f615d4b41b
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 20:38:55 2021 -0700

    .pick_status.json: Mark 32eb74e1e181303544f395bbe1fe2847a783c881 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b70d65b30bcbeb7a77080a308d3e252016cfee45
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 20:38:47 2021 -0700

    .pick_status.json: Update to 165a69d2f74aefe80b070209e77950446a97c8b5

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=94fbc683be40ec474ea5cff27b43078f9805b0fc
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Mar 29 12:45:41 2021 +0200

    compiler/glsl: do not cast struct to string
    
    When formatting the error here, we're currently casting an
    ast_type_qualifier as a string.
    
    But we don't need to use a string here at all, because we know from
    context exactly what qualifier we're talking about, because the
    if-statements explicitly check for the uniform-qualifier.
    
    So let's just hard-code the format-string to reference the right
    qualifier instead of the string-shenanigans. The latter cannot do the
    right thing.
    
    Fixes: 2d03f48a65a ("glsl: Add parsing for GLSL uniform blocks.")
    Reviewed-by: Eric Anholt <eric at anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9911>
    (cherry picked from commit 437ed05708e640a547994efd9186f6f4b02dc160)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9629b8a27d4e7ad23724a3b24b9ddcbe3c118aa0
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Mar 29 12:36:28 2021 +0200

    compiler/glsl: drop rogue argument to _mesa_glsl_error
    
    This arugment is not present int the format-string, so we shouldn't pass
    it to _mesa_glsl_error either.
    
    Noticed by Coverity.
    
    Fixes: 02dc74fbd72 ("glsl: parse invocations layout qualifier for ARB_gpu_shader5")
    Reviewed-by: Eric Anholt <eric at anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9911>
    (cherry picked from commit 2a984da18e4e9ccd79ef24557bd0c8ce0a1b9971)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=feba40a0da36106fe96f54b916bcc753b3d031b3
Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Sun Apr 11 19:15:35 2021 -0700

    nir_opt_deref: ptr_as_array(deref_cast<T*>(x))[0] isn't the same as x[0] if the cast has alignment
    
    This breaks CLOn12's handling of CL CTS test_basic vector_creation for char3 (at least).
    Removing this cast causes us to try to load from a deref with no alignment info.
    
    Fixes: 99bb2a4d ("nir/opt_deref: Don't remove casts with alignment information")
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10165>
    (cherry picked from commit 4b69ae8e1eaaf6591f8e76ec64bf0bc2dcfeb019)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac529a241f627e0e97a69fb188eef21db6460dda
Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Mon Feb 22 10:54:30 2021 -0800

    iris: Set BO maps to NULL in bo_free
    
    bo_free is called on external BOs when there are no objects left which
    reference them. The function unmaps the address range associated with
    any maps which occured. However, if the BO is busy (not idle), it
    doesn't mark the pointer to the start address as invalid. This can lead
    to a segfault later on.
    
    At the end of bo_free, these BOs are still present in the handle hash
    table. If such a BO is reused (i.e., when a DMABUF with the same handle
    is reimported) and the driver attempts to get another mapping, the
    bufmgr will incorrectly assume that the map pointer is still valid and
    reuse it. This leads to a segfault. Set the pointer to NULL to mark it
    as invalid.
    
    Enables iris to run and pass the piglit test,
    ext_image_dma_buf_import-reimport-bug.
    
    Cc: mesa-stable
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9230>
    (cherry picked from commit 0092219cfe2c46843b8feff76d0f4df87a8b3c81)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=643db8729fb1b4d731ae27ddc9a8de8e7fa4d155
Author: Icecream95 <ixn at disroot.org>
Date:   Mon Feb 8 22:50:27 2021 +1300

    panfrost: Only add resource checksum BOs to the batch once
    
    Previously panfrost_batch_add_bo was called MAX_MIP_LEVELS times on
    the same batch.
    
    Fixes: cbf68b21fb2 ("panfrost: Move checksum_bo to panfrost_resource")
    
    Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10158>
    (cherry picked from commit 1b41707bbcc623419664137e5b6ce3b8d767ab2d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=04dbc7d552c002955d91ef5acb3afd65ef7e060d
Author: Vasily Khoruzhick <anarsoul at gmail.com>
Date:   Mon Apr 12 08:10:29 2021 -0700

    lima: use passed surface to get mipmap level for reload, not cbuf
    
    lima_pack_reload_plbu_cmd() can be used for either cbuf or zsbuf, so
    use passed surface other using cbuf unconditionally.
    
    Fixes: b8c31ac06d35 ("lima: fix glCopyTexSubImage2D")
    Reviewed-by: Erico Nunes <nunes.erico at gmail.com>
    Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10121>
    (cherry picked from commit c8e80c24d4f484c2ac31acef8b1a69124e85b697)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ebdcad7e54ec2ede8efe45832abd218461d8d93b
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Apr 3 01:09:21 2021 -0400

    nv50/ir: fix texture size for msaa textures
    
    These are scaled up in the descriptor, which doesn't really know about
    their MSAA-ness. So we have to shift them back down.
    
    Cc: mesa-stable
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Karol Herbst <kherbst at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10162>
    (cherry picked from commit 1baefe4119ee75c5bbc159824271626b2eea3127)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d04cfc3bdd63989739191c7ece239fe236133d77
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Fri Apr 9 19:18:48 2021 -0400

    panfrost: Enable AFBC buffer sharing
    
    This was hidden originally to workaround a bug in the RK3399 display
    driver. The patch resolving this issue has been merged in the upstream
    kernel, and in fact...
    
    1. The issue was visible on 21.0 even with this workaround under certain
       configurations (sway with an external monitor).
    2. Even on buggy kernels, due to other platform details this is an
       obscure bug to hit (not aware of any ways to trigger it OOTB with
       current userspaces other than sway with an external monitor)
    
    So why bother? Let's just delete the hack and let AFBC be used freely.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Cc: mesa-stable
    Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10148>
    (cherry picked from commit e00d94f14f7f75d4974c1d48b4ec177f052723d3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb6a6fb84a9446c942a291d4fcadc023d723e8ea
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Fri Apr 9 19:14:14 2021 -0400

    panfrost: Fix AFBC body_size for shared resources
    
    Accidental read-before-write due to incorrect statement ordering. I love
    SSA as much as anyone, but not everything is a parallel copy.
    
    Fixes faults in glamor in 21.0 when using GIMP on v5.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Fixes: e8b997e1758 ("panfrost: Add AFBC slice.body_size and slice.{row,surface}_stride fields")
    Closes: #4389
    Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10148>
    (cherry picked from commit 23b060bba787030542b681ab8f86916c319fd8fa)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d096c75d4682617a3450873fc88ea7b8fcc22d8
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Apr 9 08:35:02 2021 +0200

    gallium/st: correct range for int16
    
    This fixes the following dEQP tests:
    
    - dEQP-GLES3.functional.shaders.operator.unary_operator.minus.lowp_uvec2_fragment
    - dEQP-GLES3.functional.shaders.operator.unary_operator.minus.lowp_uvec4_fragment
    - dEQP-GLES3.functional.shaders.operator.unary_operator.minus.mediump_uvec2_fragment
    - dEQP-GLES3.functional.shaders.operator.unary_operator.minus.mediump_uvec4_fragment
    
    Fixes: 1af8fe4ed52 ("gallium: add shader caps INT16 and FP16_DERIVATIVES")
    Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Tested-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10128>
    (cherry picked from commit 6a2ee3b17c3711ef2044cd947cbadfd09ca90cad)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=36335d48bf6860dab56e1b66c701113979e3b2e9
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Apr 9 08:41:07 2021 +0200

    gallium/st: correct range for float16
    
    Fixes: b83f4b9fa23 ("glsl: Add an IR lowering pass to convert mediump operations to 16-bit")
    Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10128>
    (cherry picked from commit 07a02a3390cb212eac28eaf63a3eb7b961b5cbac)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca1eba81141b9ca458c0ea66eecc7a9a3d7653fe
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Apr 9 07:22:53 2021 +0200

    glsl: fix int16 type
    
    This shouldn't be unsigned, or else we'll trigger asserts.
    
    Fixes: 7f00d4dac81 ("glsl: Handle 16-bit types in loop analysis")
    Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10125>
    (cherry picked from commit c64e2bf2c3d9d053ed063c07fa1b2bf618b1c740)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0de766cb8d1528b0f894e963342943687b0575c3
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Apr 9 07:15:36 2021 +0200

    glsl: fix is_integer_16_32
    
    This shouldn't check for 64-bit...
    
    Fixes: a052a9c2777 ("glsl: handle int16 and uint16 types and add instructions for mediump")
    Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10125>
    (cherry picked from commit b718de746d1566e238ef034f051a98e4083e01d2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2796b52f1a6a48602f2b6c6766277076ddd21dca
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Thu Apr 8 16:40:45 2021 -0500

    anv: Clean up anv_semaphore::base on the error path
    
    Fixes: 682c81bdfb7 "vulkan,anv: Add a base object struct type"
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10123>
    (cherry picked from commit 2b19b7a165f7158eba4ba61aad3b2ced26b0b06a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d89765f5e2a48ad5f78445687630e1c9916c8ef1
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Thu Apr 8 16:27:02 2021 -0500

    anv: Clean up anv_descriptor_pool::base on the error path
    
    Fixes: 682c81bdfb7 "vulkan,anv: Add a base object struct type"
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10123>
    (cherry picked from commit 46749afe45b1e7c55cf511c9d3ae55f516e03960)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9da7a37920854b3bc52b91516c9b2a723cf1348
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Thu Apr 8 16:10:26 2021 -0500

    anv: Clean up anv_device_memory::base on failure
    
    Fixes: 682c81bdfb7 "vulkan,anv: Add a base object struct type"
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10123>
    (cherry picked from commit e20c653781cd9976d6ddb7f62e76fb66d22601b3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1c8f2fbcb54ceba24a6431266f463bf2cc183b1
Author: Lucas Stach <l.stach at pengutronix.de>
Date:   Fri Feb 26 21:28:20 2021 +0100

    etnaviv: don't try to copy PIPE_BUFFER with the 3D engine
    
    PIPE_BUFFER layout is incompatible with the 3D pipe, so don't try to
    blit it via a 3D engine blit, but fall back to the software copy.
    
    Fixes crashes in piglit tests arb_copy_buffer and arb_map_buffer_range.
    
    Fixes: c9e8b49b8852 (etnaviv: gallium driver for Vivante GPUs)
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
    Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9310>
    (cherry picked from commit 171d7a30818a04320d2be64651afcf52ee6986b2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c7da6dd810e6e09096a78a784ccb588d7618504
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:05:15 2021 -0700

    .pick_status.json: Mark 1df3a00dcd5c4c86527e1bdc5c800cc09457d1a5 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed00ac205f5b8cb0ea6afbaa8d7415f80e744638
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:05:15 2021 -0700

    .pick_status.json: Mark 33d87eeb5ab0b26f7cbd36cdc030213fad17e382 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=86594620a5c62af529b9c96e5f69e67fe6102cc1
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:05:08 2021 -0700

    .pick_status.json: Mark 3257ab9f23fcaa3233882e6e40b365c5a1ac84c1 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=494ec203c333495909395db31b79388c29bc82e8
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:04:19 2021 -0700

    .pick_status.json: Mark 0a939e788f47734a8a1e7771a3acdf1ea507afde as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5836cbe30bedbef5c0b57a0cc52afbe185bfede6
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:04:16 2021 -0700

    .pick_status.json: Mark abc724e440ea1809c7c53cee42a99b68afbb1b11 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=584085b66add02e827cf147ec2ba3b48b53270a4
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:04:11 2021 -0700

    .pick_status.json: Mark 30cf07cc8ac1f2432b78336774ee43a7ef8d19e8 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=24cf2b436d9c1dd99866f4a8b295f0d1e6792964
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:03:54 2021 -0700

    .pick_status.json: Mark 61cf77583ac44ee267a23be7f14740392b0e23f5 as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dce215c2caa9aaa1d89c26efb5486bbbd869090
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:03:50 2021 -0700

    .pick_status.json: Mark fe53c22294900142c358b75d39c43710ccfd414e as backported

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23ca017e175a46ac509a9ade99a89fcaace940fd
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Apr 13 16:02:56 2021 -0700

    .pick_status.json: Update to dc265008c70b76b39b86a4d5b0f9da69d12eb31d



More information about the mesa-commit mailing list