Mesa (21.3): 23 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 17 20:39:59 UTC 2021


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a94b5d22ab67cbab744535a61bff5736f53a9c7
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed Nov 17 20:38:39 2021 +0000

    docs: update sha256sum for 21.3.0

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a33ae946792f6ce5765b662d253b5e1915f349d
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed Nov 17 20:16:20 2021 +0000

    VERSION: bump for 21.3.0

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ca91d9bbe30bd2a6792ce353439367e5ae37054
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed Nov 17 20:10:19 2021 +0000

    docs: add release notes for 21.3.0

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7ac49468be45ba640ba3c6ec627fc8b3624ef3b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Nov 15 14:37:41 2021 +0100

    nir: fix constant expression of ibitfield_extract
    
    This fixes dEQP-VK.graphicsfuzz.cov-condition-bitfield-extract-integer.
    
    For example, nir_ibitfield_extract(3, 1, 2) should return 1.
    
    Cc: 21.3 mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13791>
    (cherry picked from commit 011ea325855d4dfd1b75f3c1c80a8f5a24c8a7c7)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02dc554b21786a5415224655fad0a6527968322f
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Tue Nov 2 11:27:08 2021 -0500

    vulkan/util: Include stdlib.h
    
    It's needed for malloc() which is used by STACK_ARRAY
    
    Fixes: f695171e383e ("vulkan: add common entrypoints for sparse image requirements/properties")
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Acked-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13427>
    (cherry picked from commit 95dee5150a7916d640b916f29858eabdaf7c79c8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6c713f8c54f4b32ae9470ce05f08bbdd1503d9b
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Nov 9 18:34:29 2021 -0800

    intel/genxml: Fix MI_FLUSH_DW to actually specify the length properly
    
    Fixes: 569afd37f15 ("intel/genxml: Copy gen12.xml to gen125.xml")
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13809>
    (cherry picked from commit 29025f66fd3fa009cc79f844449ebc05d252804a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca307d8cbf43d91775c9a9b17d769f827ea43963
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Oct 1 13:15:10 2021 -0700

    iris: Fix parameters to iris_copy_region in reallocate_resource_inplace
    
    We had accidentally passed <x, y, z, l> instead of <l, x, y, z>.
    
    Fixes: b8ef3271c870 ("iris: Move suballocated resources to a dedicated allocation on export")
    Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
    Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13815>
    (cherry picked from commit f4004fde262964351f72656f396e1cca491ee955)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e1de95860531f1bd1fa76eefdb2438a01460dfd
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sun Nov 14 23:57:45 2021 +0100

    radv: Fix memory corruption loading RT pipeline cache entries.
    
    Oops. Forgot to account for the size here.
    
    Fixes: ca2d96db51e ("radv: Add caching for RT pipelines.")
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13789>
    (cherry picked from commit 9494c566c27064687944fb73a16f5437e204c5ab)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=503321ea7dad915bd8f8338b1c1aea0ab98e596f
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Oct 29 11:22:44 2021 -0400

    zink: always add VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT for 3D images
    
    there's no way to know what an image will be used for, so this bit needs
    to always be added
    
    fixes KHR-GL46.packed_pixels.varied_rectangle.compressed_rgb
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13798>
    (cherry picked from commit 43c457a6ecfc1638846a77fe18dbe72b10187103)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc7bccdb545c60a11743fb37f4671d67d02c7031
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Fri Nov 12 13:46:17 2021 +0000

    aco: consider pseudo-instructions reading exec in needs_exec_mask()
    
    No matter the format, this should return true if the instruction has an
    exec operand.
    
    Otherwise, eliminate_useless_exec_writes_in_block() could remove an exec
    write in a block if it's successor begins with:
     s2: %3737:s[8-9] = p_parallelcopy %0:exec
     s2: %0:exec,  s1: %3738:scc = s_wqm_b64 %3737:s[8-9]
    
    Totals from 3 (0.00% of 150170) affected shaders (GFX10.3):
    CodeSize: 23184 -> 23204 (+0.09%)
    Instrs: 4143 -> 4148 (+0.12%)
    Latency: 98379 -> 98382 (+0.00%)
    Copies: 172 -> 175 (+1.74%)
    Branches: 95 -> 97 (+2.11%)
    
    Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
    Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
    Fixes: bc130497472 ("aco: Eliminate useless exec writes in jump threading.")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5620
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13776>
    (cherry picked from commit d89461208b79a0c5f577caf6a98dab6976c12251)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=565a14d7edcd8bcd379059756ca09c4081331c2e
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Nov 12 15:40:43 2021 +0100

    radv: fix a sync issue on GFX9+ by clearing the upload BO fence
    
    If the same cmdbuf is submitted more than once, they were waiting on
    the same fence value. Fix this by clearing the value when beginning
    a new command buffer.
    
    This might fix spurious GPU hangs, especially on GFX9.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5401
    Cc: 21.3 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/13777>
    (cherry picked from commit e94a899c0ef411c19d82a072a4aa70aa8d149522)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5275563df4086d85f83cf08b9c4c3e734a49c534
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Fri Nov 12 19:31:24 2021 +1100

    mesa: fix buffer overrun in SavedObj texture obj array
    
    Fixes: 3be42f9ca19d ("mesa: rewrite glPushAttrib/glPopAttrib to get rid of malloc")
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5621
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13773>
    (cherry picked from commit 9d9de15a020d317d4486124f97b2cf06b98ee8b6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2de11b9261495a939d50a3f9823d479b8993ef4
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Nov 1 14:12:20 2021 +1000

    llvmpipe: fix compressed image sizes.
    
    VK CTS just added some new tests to write to a compressed image
    from a compute shader, which was overrunning memory.
    
    The image width/height need to be sized according to the block
    sizes to avoid overwriting memory.
    
    dEQP-VK.image.sample_texture.*bit_compressed*
    
    Cc: mesa-stable
    
    Reviewed-by: Roland Scheidegger <sroland at vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13618>
    (cherry picked from commit 27903abbb67482e2d772c508e9d00e49029b8364)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=90486b44aef5097814e47c6ea7f09ad8c67e5601
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Nov 1 09:43:49 2021 +1000

    llvmpipe: disable 64-bit integer textures.
    
    This fixes some crashes in VK-GL-CTS where it doesn't deal with these.
    
    Cc: mesa-stable
    
    Reviewed-by: Roland Scheidegger <sroland at vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13617>
    (cherry picked from commit 53a8faafc1eb28399509098ee2c0fd210f0727f2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca3f3318e47fd4326bcdb58d840d497b64f3afb5
Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Thu Oct 28 15:48:19 2021 +0200

    aco: Fix how p_is_helper interacts with optimizations.
    
    p_is_helper doesn't have any operands, so ACO's value numbering and/or
    the pre-RA optimizer could incorrectly recognize two such instructions
    as the same.
    
    This patch adds exec as an operand to p_is_helper in order to achieve
    correct behavior.
    
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5570
    Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
    Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13577>
    (cherry picked from commit d80c7f3406b80ae684a709de57a9ef3d54a497b6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9586feff54d024518d7cc83712f741cbc559a251
Author: James Park <jpark37 at lagfreegames.com>
Date:   Sat Oct 23 18:02:48 2021 -0700

    aco: Work around MSVC restrict in c99_compat.h
    
    Future LLVM header leads to __declspec(__restrict), which is invalid.
    Just undefine the restrict macro to keep __declspec(restrict).
    
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13505>
    (cherry picked from commit e0de7aa4d7717bbd79bbc5bfc660f941f680402b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffb3ab4d7ad5a0f38cf308fc81c69c460e1bf6a6
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Mon Sep 27 17:15:38 2021 -0400

    nir/lower_pntc_ytransform: Support PointCoordIsSysval
    
    Pattern match the point coord sysval and support lowering it as well.
    This is required to handle flipped framebuffers on Bifrost. However,
    what this pass normalizes to is the opposite of the hardware mode we
    used on Bifrost before, so we need to swap modes at the same time to
    prevent regressions.
    
    Fixes Piglit glsl-fs-pointcoord and glsl-fs-pointcoord_gles2
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13073>
    (cherry picked from commit e257344a82417b6dc28d5834a0a9376fefd7f5ac)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=53801042012de2e8c63be7eefce17978e21ebf58
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Tue Nov 9 10:24:32 2021 +0200

    anv: fix multiple wait/signal on same binary semaphore
    
    We need to guarantee that when vkQueueSubmit() returns the application
    can actually wait on a signaled semaphore/syncobj.
    
    When using a thread to do the submission to i915, this gets a bit
    tricky in the following case :
    
       A syncobj is used both as a wait & signal semaphore and has been
       signaled once already. It contains a fence before entering
       vkQueueSubmit().
    
       This means we need to reset the syncobj to ensure when we return
       from vkQueueSubmit(), the syncobj contains no stale fence.
    
       Currently in the Anv, the submission thread is in charge of putting
       the new fence in the syncobj and also picks up the wait fence
       directly from the syncobj. This means we can't reset the syncobj
       from vkQueueSubmit().
    
    The solution to this has been pointed by Bas & Jason :
    
       In vkQueueSubmit(), clone the wait syncobj fence into a new
       temporary syncobj that will be destroy after submission and use
       this temporary syncobj as a wait fence for i915. This allows us to
       reset the original syncobj in vkQueueSubmit().
    
       For this to work with wait_before_signal behavior, we also need to
       do a wait-on-materialize on binary semaphores from vkQueueSubmit().
       Otherwise the application thread calling vkQueueSubmit() could race
       the submission thread and pick up the wrong fence when cloing.
    
    v2: Use copy semantic for clone_syncobj_dma_fence() (Jason)
        Do the cloning prior to adding the syncobj to anv_queue_submit so
        that if the cloning fails don't have an invalid syncobj in
        anv_queue_submit (Jason)
    
    v3: Fix another syncobj leak (Jason)
    
    v4: Fix invalid argument order (Lionel)
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4945
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11474>
    (cherry picked from commit d2ff2b9e4a22a83d59caf56052fdda1fd4493ca1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db338002c751f28998ac6937d5e12e553d646592
Author: Emma Anholt <emma at anholt.net>
Date:   Wed Nov 10 12:10:43 2021 -0800

    mesa/st: Disable NV_copy_depth_to_color on non-doubles-capable HW.
    
    The previous doubles check
    (https://gitlab.freedesktop.org/mesa/mesa/-/issues/3459) checked that you
    didn't have full doubles emulation turned on, but we also need to check
    that you have doubles at all (emulated or not) or non-GL4 drivers will
    fail.
    
    Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13743>
    (cherry picked from commit a68a0c9e1c69d14f210de569ed4d73f3e42857db)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdc6d4dc955ae8bec7675232f09aab03fae73bed
Author: Neil Roberts <nroberts at igalia.com>
Date:   Fri Oct 29 17:56:39 2021 +0200

    v3d: Update prim_counts when prims generated query in flight without TF
    
    In order to implement GL_PRIMITIVES_GENERATED, v3d allocates a small
    resource and adds a command to the job to store the prim counts to it.
    However it was only doing this when TF was enabled which meant that if
    the query was used with a geometry shader but no TF then the query would
    always be zero. This patch makes the driver keep track of how many
    PRIMITIVES_GENERATED queries are in flight and then enable writing the
    prim count if its more than zero.
    
    Fix dEQP-GLES31.functional.geometry_shading.query.primitives_generated_*
    
    v2: Update CI expectations and references to fixed tests in commit log.
    v3: - Add comment that GL_PRIMITIVES_GENERATED query is included because
          OES_geometry_shader, but it is not part of OpenGL ES 3.1. (Iago)
        - Update Fixes to commit introducing geometry shaders. (Iago)
    
    Fixes: a1b7c084 ("v3d: fix primitive queries for geometry shaders")
    Signed-off-by: Neil Roberts <nroberts at igalia.com>
    Signed-off-by: Jose Maria Casanova Crespo <jmcasanova at igalia.com>
    Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13712>
    (cherry picked from commit bdaf1858895705bbc2a8baaecb945f8b279ad07e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a728b8a7329caf3d97c1fc92c353bc5f722d5836
Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sat Oct 30 15:12:00 2021 -0700

    virgl: Allocate qdws after virgl_init_context to avoid leak.
    
    Fix defect reported by Coverity Scan.
    
    Resource leak (RESOURCE_LEAK)
    leaked_storage: Variable qdws going out of scope leaks the storage it
    points to.
    
    Fixes: 9a7d6a110e2 ("virgl/drm: explicit context initialization")
    Suggested-by: Gert Wollny <gert.wollny at collabora.com>
    Signed-off-by: Vinson Lee <vlee at freedesktop.org>
    Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13609>
    (cherry picked from commit 4a38ed822ab0c3d0f663dd5bec238a0839d03b01)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=764e965f3788fa545132442d503f72d4def5ec0e
Author: Caio Oliveira <caio.oliveira at intel.com>
Date:   Tue Nov 9 15:15:15 2021 -0800

    util/ra: Fix deserialization of register sets
    
    Set ra_class::regset and ra_class::index  when deserializing.
    
    Fixes: 95d41a3525d ("ra: Use struct ra_class in the public API.")
    Reviewed-by: Emma Anholt <emma at anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13728>
    (cherry picked from commit 6eb86efe9150caf59d991190e0c355841ab69766)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0d6fbba8e9758cb5d653b1d6ad5f5a20b3fc575
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Fri Nov 12 19:19:51 2021 +0000

    .pick_status.json: Update to ba6d389fa7a0ac512cb9d4cdd21efde990f041b1



More information about the mesa-commit mailing list