Mesa (staging/21.1): 33 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 4 22:15:31 UTC 2021


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1bd7c4c2ff8e536e9aba34965f13abbdbb406038
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jul 19 05:58:48 2021 +1000

    virgl: disable anisotropic filtering.
    
    virgl doesn't yet support anisotropic filtering so don't advertise it.
    
    Fixes: a8987b88ff1d ("virgl: add driver for virtio-gpu 3D (v2)")
    Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11944>
    (cherry picked from commit e831c4a537cc4118ba6d5581dfc121a9fe47110a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc1aac60462e6eaeae435ab29214d478c694bf9b
Author: Pierre Moreau <dev at pmoreau.org>
Date:   Sun Apr 25 21:59:27 2021 +0200

    clover/nir: Set constant buffer pointer size to host
    
    The `argument::size` is supposed to represent the size of a pointer on
    the host and not on the device (for which argument::target_size`
    exists).
    
    v3: Use `sizeof(buf)` instead of `marg.size`. (Francisco Jerez)
    
    Fixes: 7c6f1d3bf99 ("clover/nir: extract constant buffer into its own section")
    
    Reviewed-by: Francisco Jerez <currojerez at riseup.net>
    Signed-off-by: Pierre Moreau <dev at pmoreau.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10256>
    (cherry picked from commit b4e5bf0637e10d0f7c191d4772f06d0432d87415)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2f51ce622b9cefcec55a2c61fa99a30e96e2bde
Author: Pierre Moreau <dev at pmoreau.org>
Date:   Tue Apr 13 22:14:03 2021 +0200

    clover/spirv: Properly size 3-component vector args
    
    This resolves clover returning `CL_INVALID_ARG_SIZE` whenever the OpenCL
    CTS called `clSetKernelArg()` for 3-component vectors.
    
    Fixes: 21473865050 ("clover/spirv: Add functions for parsing arguments, linking programs, etc.")
    
    v2: Remove “api/clsetkernelarg/set kernel argument for cl_int3” from the
      expected fails for llvmpipe
    
    Reviewed-by: Karol Herbst <kherbst at redhat.com>
    Signed-off-by: Pierre Moreau <dev at pmoreau.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10256>
    (cherry picked from commit a6c26a6ad94d16ad044c3b64d72ff9daf863b3be)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=883694defa1cde9238f90ad9ffda5f64aac1b6d9
Author: Juan A. Suarez Romero <jasuarez at igalia.com>
Date:   Tue Aug 3 13:05:23 2021 +0200

    gallium/hud: initialize query
    
    Most of the drivers don't set up the maximum value in the query info. So
    when later hud_pane_set_max_value() is invoked, we are using a rather
    "random" number.
    
    Turns out that in some 32bit cases, this random number is big enough
    that `leftmost_digit` is 0 because DIV_ROUND_UP() overflows, aborting
    with an assertion.
    
    Fixes: c91cf7d7d2c ("gallium: implement a heads-up display module")
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
    Signed-off-by: Juan A. Suarez Romero <jasuarez at igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12181>
    (cherry picked from commit 10541d1fade07e57441b591a36b0bf02f5eca299)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6216679fdcffa3afc99405e3c181c4ddb0665a9
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Aug 2 14:27:11 2021 +0200

    radv: fix selecting the first active CU when profiling with SQTT
    
    Fixes: d26bcc0f5cb ("radv: always select the first active CU when profiling with SQTT")
    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/12167>
    (cherry picked from commit ebea075feb820fb4e2118690da8258aa830ba3a3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46204538eda13502f0e0e1565c1a659a099cf655
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Thu Jul 29 12:14:16 2021 +1000

    intel/compiler: make sure swizzle is applied to if condition
    
    This fixes a hang in the following piglit test when GCM moves a
    UBO load outside of the loop.
    
    tests/shaders/ssa/fs-if-def-else-break.shader_test
    
    The end NIR ends up looking like this:
    
    	vec2 32 ssa_3 = intrinsic load_ubo (ssa_2, ssa_0) (0, 1073741824, 0, 0, 8)
    	vec1 32 ssa_4 = mov ssa_3.x
    	vec1 32 ssa_5 = inot ssa_3.y
    	/* succs: block_1 */
    	loop {
               ...
               if ssa_5 { }
            }
    
    Fixes: 1edf67fc3f6b ("intel/fs: Generate if instructions with inverted conditions")
    
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12064>
    (cherry picked from commit a654e39f1559edc06eb12bdd6f2372694dcd8911)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9217bf48cd416c699fb83beb3455a751aaacd5ba
Author: Icecream95 <ixn at disroot.org>
Date:   Thu Jul 22 20:17:31 2021 +1200

    pan/mdg: Analyze helper termination after scheduling
    
    Similar to the fix in 6bf8e960faa ("pan/bi: Do helper termination
    analysis on clauses")
    
    Though apparently a "theoretical issue only", fixes artefacts in
    DarkPlaces with both D3D9 and GL renderers.
    
    Fixes: 9a7f0e268b7 ("pan/mdg: Use the helper invo analyze passes")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12156>
    (cherry picked from commit a2b37e95926f52b597dd0cf440092bd296efa434)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bc27e13f5cd12a3f95fcaf7d256fbb1cbbbc9e5
Author: Hoe Hao Cheng <haochengho12907 at gmail.com>
Date:   Fri Jul 30 16:59:21 2021 +0800

    zink: make codegen compatible with python 3.5
    
    Fixes: f1432fd3 ("zink: generate extension infrastructure using a python script")
    Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12137>
    (cherry picked from commit 86250c7251b5652acc794a8b0efe2ad98cfec840)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=556a50e748c6b9bf3d0e4c996758973716de3777
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Mon Jul 26 10:47:20 2021 +0200

    amd/registers: fix fields conflict detection
    
    The existing code handled the case where the new definition of the
    same field was larger than the old one.
    This commit adds a check to handle the reverse case: the new def
    is smaller than the old one (= so writing using the merged macro
    would affect the next fields).
    
    The affected fields are:
    * LGKM_CNT (in SQ_WAVE_IB_STS)
    * DONUT_SPLIT (in VGT_TESS_DISTRIBUTION)
    * HEAD_QUEUE (in GDS_GWS_RESOURCE)
    
    DONUT_SPLIT is the only one used by radeonsi/radv.
    
    Fixes: e6184b08924 ("amd/registers: scripts for processing register descriptions in JSON")
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12063>
    (cherry picked from commit 3914bd457b6e91c805a6ed9977ed984205f8acae)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9099ac9d0df21ddd97627ccc53927dfcc8f66916
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Mon Jul 26 15:47:24 2021 +0200

    gallium/va: don't use key=NULL in hash tables
    
    Add 1 to the key index otherwise we hit the following assert
    in hash_table_insert:
    
       assert(!key_pointer_is_reserved(ht, key));
    
    Cc: mesa-stable
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12105>
    (cherry picked from commit 2ea88d7cea070c3288c252064cae9236bd462646)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee7c1d071d5b7af94d5d2991c3d9aa6ca6e336c7
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jul 28 13:51:38 2021 +1000

    intel/fs: restrict max push length on older GPUs to a smaller amount
    
    Fixes crash in dEQP-GLES2.functional.uniform_api.random.79
    
    Cc: mesa-stable
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12093>
    (cherry picked from commit c8783001c7350960a63bff0dc93a4e744c22b911)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5407596d8e004455d9d1cf0d080d7ee87526087
Author: Joshua Watt <JPEWhacker at gmail.com>
Date:   Tue Jul 27 11:41:53 2021 -0500

    v3d, vc4: Fix dmabuf import for non-scanout buffers
    
    Failure to create a buffer for scanout should not be fatal when
    importing a buffer. Buffers allocated from a render-only device may not
    be able to scanned out directly but can still be used for other
    rendering purposes (e.g. as a texture).
    
    Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
    Reviewed-by: Simon Ser <contact at emersion.fr>
    Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12081>
    (cherry picked from commit 7bcb22363935431f1c8886608d9a77b3503fc5b4)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e0eb712bba4a5db35bbe546be23f9bac5cf0c98
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Thu Jul 29 14:26:08 2021 -0400

    pan/bi: Restrict swizzles on same cycle temporaries
    
    Hand typed. We could generate this from the XML to avoid the repititon
    but I think the cure is worse than the disease.
    
    This fixes instruction encoding faults seen in conformance tests.
    
    Only a single shader-db affected, and it was likely already broken...
    
    quadwords HURT:   shaders/glmark/22-1.shader_test MESA_SHADER_FRAGMENT: 133 -> 135 (1.50%)
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12114>
    (cherry picked from commit 2cdf95703a816f9dfe4a2bc282caee21ddd94970)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7158240c389db5f702b67471422b8b2b2d62aca
Author: Simon Ser <contact at emersion.fr>
Date:   Tue Jul 27 09:04:14 2021 +0200

    lima: fail in get_handle(TYPE_KMS) without a scanout resource
    
    The previous logic was returning a handle valid for the render-only
    device if rsc->scanout was NULL. However the caller doesn't expect
    this: the caller will use the handle with the KMS device.
    
    Instead of returning a handle for the wrong device, fail if we don't
    have one.
    
    Signed-off-by: Simon Ser <contact at emersion.fr>
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12074>
    (cherry picked from commit 47f000c170ccb824b308e02db8c2c955a8c00217)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7dd32352ddbd08bd032ff319db248de5a2e3d380
Author: Simon Ser <contact at emersion.fr>
Date:   Tue Jul 27 08:59:52 2021 +0200

    panfrost: fail in get_handle(TYPE_KMS) without a scanout resource
    
    The previous logic was returning a handle valid for the render-only
    device if rsc->scanout was NULL. However the caller doesn't expect
    this: the caller will use the handle with the KMS device.
    
    Instead of returning a handle for the wrong device, fail if we don't
    have one.
    
    Signed-off-by: Simon Ser <contact at emersion.fr>
    Reviewed-by: Daniel Stone <daniels at collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12074>
    (cherry picked from commit 4c092947df308f20e288bb5baf50bff181e5d3fa)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b19fdb6632eb5326700dbb71c0b7a75b9c49fb4
Author: Simon Ser <contact at emersion.fr>
Date:   Tue Jul 27 08:59:09 2021 +0200

    freedreno: fail in get_handle(TYPE_KMS) without a scanout resource
    
    The previous logic was returning a handle valid for the render-only
    device if rsc->scanout was NULL. However the caller doesn't expect
    this: the caller will use the handle with the KMS device.
    
    Instead of returning a handle for the wrong device, fail if we don't
    have one.
    
    Signed-off-by: Simon Ser <contact at emersion.fr>
    Reviewed-by: Emma Anholt <emma at anholt.net>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12074>
    (cherry picked from commit 465eb7864bf0328aa2d497f0c2a2de72fafeced6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5a391a1c709a33f12134e7c794d01890e765e68
Author: Simon Ser <contact at emersion.fr>
Date:   Tue Jul 27 08:55:02 2021 +0200

    etnaviv: fail in get_handle(TYPE_KMS) without a scanout resource
    
    The previous logic was returning a handle valid for the render-only
    device if rsc->scanout was NULL. However the caller doesn't expect
    this: the caller will use the handle with the KMS device.
    
    Instead of returning a handle for the wrong device, fail if we don't
    have one.
    
    Signed-off-by: Simon Ser <contact at emersion.fr>
    Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12074>
    (cherry picked from commit 9da901d2b2e7ab5d5f21a0004fc294810f69f04a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b58b8085176e19589af85fc1b25314cef6f00f60
Author: Simon Ser <contact at emersion.fr>
Date:   Tue Jul 27 08:52:45 2021 +0200

    etnaviv: fix renderonly check in etna_resource_alloc
    
    When the driver hasn't been initialized via renderonly, screen->ro
    will be NULL. This fixes a crash when passing USE_SCANOUT to etnaviv
    when it's missing renderonly.
    
    Signed-off-by: Simon Ser <contact at emersion.fr>
    Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12074>
    (cherry picked from commit 3b3cd5128672ab2dd2541b1789a40a4dd2652cc1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=889397c204dd2e800c044c0b575674134dae565c
Author: Thomas H.P. Andersen <phomes at gmail.com>
Date:   Wed Jul 14 14:51:26 2021 +0200

    nine: Fix assert in tx_src_param
    
    A previous commit cleaned up the asserts but the last part of
    this assert looks like it got mixed up. It should have allowed
    param->rel for D3DSPR_INPUT if version is 3.0. Instead it does
    && on the enum value D3DSPR_ADDR which is of course always true,
    with the version check. The result is that we miss input
    validation with version 3.0.
    
    Spotted by a compile warning
    
    Fixes: 5974401a4ad ("st/nine: Regroup param->rel tests")
    Reviewed-by: Axel Davy davyaxel0 at gmail.com
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11880>
    (cherry picked from commit 71a5bcb8658491dd62b9e620a9ce7f3bf7c8952b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4550c6442dc2289a5cffd25a29486a0b925a947
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Jul 28 18:44:07 2021 +0300

    anv: fix submission batching with perf queries
    
    If we have 2 command buffers back to back, one with a query pool, one
    without, we don't want to retain the second query pool value (NULL).
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Fixes: 0a7224f3ff7542 ("anv: group as many command buffers into a single execbuf")
    Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12107>
    (cherry picked from commit b8e29e89366a5264391dc7c10e778330b7add66a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a03a4db5be28399bd37386a8636a007d30f97bf
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Jul 27 12:01:36 2021 -0700

    freedreno/ir3: Add build id to the disassembler test
    
    This is required (at least for me on x86) to get the tool to pass it's
    own test, otherwise it fails the build_id assertion.
    
    Fixes: 1462b00391711ff86350e802c1a3e5075a3a1632
           ("freedreno/ir3: Add a unit test for our disassembler.")
    
    Acked-by: Rob Clark <robclark at freedesktop.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12084>
    (cherry picked from commit 097cf3952bff22e7132ab4eb804f4ea14d61a8d4)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=afcf656b45c697c70cd8abf9b498bf072fb33824
Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Wed Jul 21 10:30:26 2021 -0700

    mesa/main: Check for fbo attachments when importing EGL images to textures
    
    Fixes an assert when binding an fbo with a texture bound to one of its attachments,
    if the texture was updated with an EGL image after it was bound.
    
    Cc: mesa-stable
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11998>
    (cherry picked from commit 3d64a97cf694a8f36d2a285a83b30c2558aac334)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=140fa2a2bdba11f3fc50c055dc6038d257f92ed8
Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Wed Jul 28 16:35:48 2021 +0200

    ir3: Preserve gl_ViewportIndex in the binning shader
    
    Fixes dEQP-VK.draw.shader_viewport_index.* with TU_DEBUG=forcebin.
    
    Fixes: efff7342204 ("turnip: multiViewport and VK_EXT_shader_viewport_index_layer")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12104>
    (cherry picked from commit 7a14484bca7619e016b9b901637ee3172b9dca70)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9da37087cf0ef7912194c042ef122048525c141a
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Sat Jul 17 17:38:42 2021 +0300

    loader/dri3: create linear buffer with scanout support
    
    If we have a different GPU dealing with display, we fallback to
    exchanging linear buffers with the compositor. We should specify in
    creating the linear buffer that this could be used for display.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4706
    Cc: mesa-stable
    Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11942>
    (cherry picked from commit f1a66e7c90ceb4796085989d0d8374689753121e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=755f2c5ca92944dcf33ed39cbcdd04a2ce6b9481
Author: Zhu Yuliang <zhuyuliang at uniontech.com>
Date:   Wed Jul 28 11:27:27 2021 +0800

    gallium/vl: don't leak fd in vl_dri3_screen_create
    
    Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12092>
    (cherry picked from commit b88fd3ccc0deeb3776ed4fd0c72b4ab649e1a208)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=85f97616534eb75fbeb521a29887d2c6f7f7f428
Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Thu Jul 22 16:52:47 2021 -0700

    vulkan/wsi/x11: do not inherit last_present_mode
    
    Under XWayland, the first present after a window resize is sometimes
    completed with COPY (seems to happen when the previous present with the
    old size is pending; not really sure).  The following presents are
    completed with FLIP.
    
    When a swapchain is created with an old swapchain, and
    old_chain->last_present_mode is FLIP, chain->last_present_mode is set to
    FLIP as well.  This causes the new swapchain to be marked
    VK_SUBOPTIMAL_KHR, which is sticky, if the first present is completed
    with COPY.
    
    Instead of inheriting, treat each swapchain as independent.  We will
    miss the case where an old swapchain is flipping but a new swapchain is
    copying.  But swapchain reallocation normally happens in response to
    present engine state change.  If the newly allocated swapchain is
    copying, another reallocation is unlikely to fix that.
    
    Fixes: 61309c2a727 ("vulkan/wsi/x11: Return VK_SUBOPTIMAL_KHR for X11")
    Signed-off-by: Chia-I Wu <olvaffe at gmail.com>
    Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12030>
    (cherry picked from commit 206fe780d509b3e0814c52bf15765a0de33743bf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ef2a8b59796ce570c8254beb225fb0fce07bb0a
Author: Philipp Zabel <p.zabel at pengutronix.de>
Date:   Thu Jul 22 12:47:15 2021 +0200

    etnaviv: fix gbm_bo_get_handle_for_plane for multiplanar images
    
    Implement resource_get_param for PIPE_RESOURCE_PARAM_NPLANES and fix
    resource_get_handle to walk to the correct linked resource for
    multiplanar images, allowing gbm_bo_get_handle_for_plane to be called
    with plane > 0.
    
    This fixes an assert that is triggered when a wayland client tries
    to send weston an NV12 dmabuf, for example:
    
      weston: .../mesa/src/gbm/backends/dri/gbm_dri.c:752: gbm_dri_bo_get_handle_for_plane: Assertion `plane == 0' failed.
    
    Fixes: 788f6dc85781 ('Revert "gallium/dri: fix dri2_from_planar for multiplanar images"')
    Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
    Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12037>
    (cherry picked from commit 8ba44103b31d90b0c7531d66aa74254412485c85)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=05ec7e79012451cc6c443e6f5e458c62da7e4419
Author: Lepton Wu <lepton at chromium.org>
Date:   Fri Jul 23 21:27:00 2021 -0700

    gallium: Reset {d,r}Priv in dri_unbind_context
    
    The code in dri_make_current just checks the value of the pointers
    to decide to update texture_stamp or not. This is buggy since a new
    allocated drawable could share the same address with the previous
    released drawable. Fix the stale pointer issue by always resetting
    these pointers to NULL in dri_unbind_context.
    
    v2:
       Move the reset codes to the end of the function.
    
    Signed-off-by: Lepton Wu <lepton at chromium.org>
    Cc: mesa-stable
    Reviewed-by: Adam Jackson <ajax at redhat.com>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12050>
    (cherry picked from commit 7ff30a0499bd872d77b0f377414bbc03463b9f87)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb06da9e75b4d9a3d9265431e3ace9d087250d8f
Author: Yevhenii Kolesnikov <yevhenii.kolesnikov at globallogic.com>
Date:   Wed Jul 14 20:52:56 2021 +0300

    glsl: Properly handle .length() of an unsized array
    
    There are two distinct cases:
    - The last member of a shader storage block (length determined at run-time)
    - Implicitly-sized array (length determined at link-time)
    
    Fixes: 273f61a0051a ("glsl: Add parser/compiler support for unsized array's length()")
    Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov at globallogic.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11952>
    (cherry picked from commit c3f47f6e300ef1ec18b2c55ec82bccf263292351)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c88f60f57715ae489183430ab7d6b059a43db72
Author: Yevhenii Kolesnikov <yevhenii.kolesnikov at globallogic.com>
Date:   Wed Jul 14 20:39:45 2021 +0300

    glsl: Add operator for .length() method on implicitly-sized arrays
    
    ARB_shader_storage_buffer_object extension (promoted to core in 4.3) allows us
    to call .length() method on arrays declared without an explicit size. The length is
    determined at link time as a maximum array access.
    
    Fixes: 273f61a0051a ("glsl: Add parser/compiler support for unsized array's length()")
    Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov at globallogic.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11952>
    (cherry picked from commit 441826aaaac54e84629269c4622be2f17a465209)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9248670bfc288b928406a4e3ad0d8f53ed99b3a
Author: Erico Nunes <nunes.erico at gmail.com>
Date:   Sun Jul 25 13:48:59 2021 +0200

    lima: avoid crash with negative viewport values
    
    The viewport value computations done in lima_set_viewport_states
    can result in a negative value for viewport.
    These could end up converted to unsigned values in
    lima_clip_scissor_to_viewport causing crashes from invalid
    scissor commands.
    Prevent this by limiting the minimum value to zero as is already
    done for the left and bottom values.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2938
    Cc: mesa-stable
    
    Signed-off-by: Erico Nunes <nunes.erico at gmail.com>
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12055>
    (cherry picked from commit e6cdb01c517b42dece9ed532fd6eba7a74aa8f71)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=492cc6c44e5f0c3581d2b88977b3af527088272b
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Jul 26 13:11:18 2021 -0400

    zink: use array size in spirv bo length calculations
    
    I don't know why I was dropping this, but doing so breaks drivers that have
    optimization passes based on the lengths of these variables
    
    Fixes: c1cdf30a119 ("zink: apply Delete All The Code methodology to the ubo/ssbo variables")
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12070>
    (cherry picked from commit 1dc7b9b08b6a272693f85e956ec3c4e498823a65)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=949ba2625043e8f4722012aee37df9e7eb17f85f
Author: Karol Herbst <kherbst at redhat.com>
Date:   Sun Jul 25 02:10:29 2021 +0200

    nv30: fix emulated vertex index buffers
    
    We ended up applying the offset twice. Quite embarrassing.
    
    This fixes a bunch of vertex shader related issues like the gnome desktop
    is less broken and probably a lot of other applications.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5061
    Cc: mesa-stable
    Signed-off-by: Karol Herbst <kherbst at redhat.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12054>
    (cherry picked from commit 1387d1d41103b3120d40f93f66a7cfe00304bfd7)



More information about the mesa-commit mailing list