Mesa (staging/20.1): 24 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 26 21:42:44 UTC 2020


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb87ddbd38ef61fd4132474dfe56c68323dd759e
Author: Rob Clark <robdclark at chromium.org>
Date:   Sat May 23 10:52:52 2020 -0700

    freedreno: clear last_fence after resource tracking
    
    The resource tracking in the clear/draw_vbo/blit paths could itself
    trigger a flush.  Which would update last_fence.  So we need to clear
    last_fence *after* all the dependency tracking.
    
    Fixes: ddb7fadaf8b ("freedreno: avoid no-op flushes by re-using last-fence")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2992
    Signed-off-by: Rob Clark <robdclark at chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5188>
    (cherry picked from commit 8728c42031379be979e56a457a178ce6a5b87b08)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=be4754293c8cae00ac8165fffd49ee918d090bad
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Tue May 26 18:08:17 2020 +0100

    nir: fix lowering to scratch with boolean access
    
    Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Fixes: 18ed82b084c79bf63666f2da22e5d675fb01aa26
       ('nir: Add a pass for selectively lowering variables to scratch space')
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5214>
    (cherry picked from commit 8e2009c4481434f1b97713d8a0ec193fdccb65a6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e46747131aeebba116af0ea25cb60b853ed01674
Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sat May 23 17:43:50 2020 +0200

    r600: Fix duplicated subexpression in r600_asm.c
    
    Fixes: 4422ce1b04c117f61394a6834cd7933f06ce4e1f
        r600: force new CF with TEX only if any texture value is written
    
    Closes #3012
    
    Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5187>
    (cherry picked from commit 901793d558e6fcba5438fc0738226833f6147c8b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d33fc05eedccd0925d98d9e9856981847283b279
Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sun May 24 17:18:04 2020 -0700

    r600/sfn: Use correct setter method.
    
    Fix warning reported by Coverity Scan.
    
    Useless call (USELESS_CALL)
    side_effect_free: Calling v->pin_to_channel() is only useful for its
    return value, which is ignored.
    
    Fixes: 5d10e3ec6066 ("r600/nir: Pin interpolation results to channel")
    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/5197>
    (cherry picked from commit 1241f8cb4c9c6cc65106a085be81963f3505a7d5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d2fced33a09c1a956a9dba95d4e46301735255c
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Mon May 25 03:58:16 2020 +0200

    radv: Implement vkGetSwapchainGrallocUsage2ANDROID.
    
    This was implemented in version 6 of the VK_ANDROID_native_buffer
    extension and we only implement version 5. However, the Android
    Vulkan loader only checks whether vkGetInstanceProcAddr for the
    function is not NULL.
    
    This all went wrong when we switched to the layer code from ANV.
    Because the function may now be different per device, it adds fallback
    functions that dispatch to the dispatch table. So if we didn't implement
    the function we still returned a pointer to the dispatch function,
    which made the Android Vulkan loader believe it was supported.
    
    Dispatch functions:
    https://gitlab.freedesktop.org/mesa/mesa/-/blob/d555794f3032594dbef3623052103900138d2356/src/amd/vulkan/radv_entrypoints_gen.py#L328
    
    Fixes: d555794f303 "radv: update entrypoints generation from ANV"
    Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2936
    Acked-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5198>
    (cherry picked from commit be784cc77b88fee2aad4b6ee3bb49e44d3bf1639)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=98cb078b51708a2e061c14bd13c987b4fd24ffdf
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sat May 23 02:36:03 2020 +0200

    radv: Do not close fd -1 when NULL-winsys creation fails.
    
    Fixes: cd6ec2b1abb "radv: implement a dummy winsys for creating devices without AMDGPU"
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181>
    (cherry picked from commit a51ab5f95624d1c29d9592aa2212f80dead8ecdf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1277c9aaf8a898ebf92f971db777bc93b725104b
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sat May 23 02:26:04 2020 +0200

    radv: Handle failing to create .cache dir.
    
    Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181>
    (cherry picked from commit cd61f5234d2c275b21c249fc2effc058a74ecf0a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a24ee836329851f36809038cdc9c4ea4508c353
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sat May 23 02:01:44 2020 +0200

    radv/winsys:  Remove extra sizeof multiply.
    
    The pointer is already uint64_t*, so the sizeof was too much ...
    
    Fixes: eeff7e11544 "radv: Add userspace fence buffer per context."
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181>
    (cherry picked from commit 906435fb0ee3c205c53c67cc641e73182cf5ae4d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=810c08fa73d2ce6df2bac87165ab8bb4614be0ec
Author: Vinson Lee <vlee at freedesktop.org>
Date:   Fri May 22 17:40:14 2020 -0700

    r600/sfn: Initialize VertexStageExportForGS m_num_clip_dist member variable.
    
    Fix warning reported by Coverity Scan.
    
    Uninitialized scalar field (UNINIT_CTOR)
    uninit_member: Non-static class member m_num_clip_dist is not
    initialized in this constructor nor in any functions that it calls.
    
    Fixes: f7df2c57a207 ("r600/sfn: extract class to handle the VS export to different stages")
    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/5180>
    (cherry picked from commit 73c0f60d8c7c832b49da64740f5d9cbe130811b1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f626bdd0668dc14505aed9d46d322b958df742f
Author: Icecream95 <ixn at keemail.me>
Date:   Tue May 12 14:08:09 2020 +1200

    panfrost: Fix background showing when using discard
    
    This fixes problems in a number of games, including SuperTuxKart,
    OpenMW and RVGL.
    
    v2: Use MALI_READS_ZS | 0x20 instead of MALI_WRITES_Z to match with
    the blob. Keep using 0x400 | 0x20 when depth is disabled.
    
    Closes: #2620
    Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    (cherry picked from commit 0dd24b381c52e0b20fe70041e95611aad6b0d258)
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5193>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba52572570e6e9b6ec5e2b55560ef36567acd07f
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed May 20 01:02:52 2020 +0200

    tree-wide: fix deprecated GitLab URLs
    
    They will stop working in the next GitLab release, so let's update them
    ASAP to make sure things are propagated to everyone by then.
    
    See:
    https://about.gitlab.com/releases/2020/05/06/gitlab-com-13-0-breaking-changes/#removal-of-deprecated-project-paths
    
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Eric Engestrom <eric at engestrom.ch>
    Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5111>
    (cherry picked from commit 444138d6d9f7c0a07ff043bae623efa5ae26b3c1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=beefa28a4d0ef3a1454067b57c84376ca79a56bd
Author: Kristian H. Kristensen <hoegsberg at google.com>
Date:   Fri May 22 15:03:55 2020 -0700

    freedreno: Use the right amount of &'s
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5176>
    (cherry picked from commit 5f365affc906ed9b07857a6fafbb5d51f3f1a607)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5087aef55a51a5ede28aa79fcc4275ade2bfee1
Author: Hanno Böck <hanno at gentoo.org>
Date:   Thu May 21 18:51:06 2020 +0200

    Properly check mmap return value
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5150>
    (cherry picked from commit be71e2fd08b364f331a7e44d34f67954f0aeebe3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e9f9c01a2912b627841c757e857ebe88a945fae
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Tue May 28 14:40:35 2019 -0500

    nir/copy_prop_vars: Record progress in more places
    
    Fixes: 96c32d7776 "nir/copy_prop_vars: handle load/store of vector..."
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170>
    (cherry picked from commit f0e075ce6eca7bdb26d8e55cf7d4dd459199363f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5807b338c358561fae48ca4796ed376f55dbd2df
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri May 24 23:29:15 2019 -0500

    nir/opt_deref: Report progress if we remove a deref
    
    Fixes: a1c688517de "nir/opt_deref: Properly optimize ptr_as_array..."
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170>
    (cherry picked from commit db6d9cdf0661fbe25b1bc767920a5f6a0944935b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=372e9b9085e6c1faba60edda842610be3aed3512
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri May 24 09:05:32 2019 -0500

    nir/lower_double_ops: Rework the if (progress) tree
    
    Fixes: d7d35a9522 "nir/lower_doubles: Use the new NIR lowering..."
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170>
    (cherry picked from commit 111b0a669979cf277f31c69f501982fee004e067)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7216e9678c18dd030b1e1c4879674632b6901e71
Author: Danylo Piliaiev <danylo.piliaiev at globallogic.com>
Date:   Fri May 22 13:36:31 2020 +0300

    mesa: Fix double-lock of Shared->FrameBuffers and usage of wrong mutex
    
    Fixes: 7534c536ca0f4b2b123200f421460094034f37a3
    Fixes: 8cfb3e4ee57070ff45e7534a986a20c5fd649dc7
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3024
    Signed-off-by: Danylo Piliaiev <danylo.piliaiev at globallogic.com>
    Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5160>
    (cherry picked from commit 40255831230a6dba45b09ab98d5b626a5bdb18ef)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=44462eddb32cea0927f84eeafa118c911d7ec942
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Wed May 20 15:26:29 2020 +0200

    amd/addrlib: fix forgotten char -> enum conversions
    
    clang warning:
      result of comparison of constant 115 with expression of type
      'const enum Dim' is always false
    
    Fixes: e3e704c7e7e ("amd/addrlib: Use enum instead of sparse chars to identify dimensions")
    Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
    (cherry picked from commit dddd91eef326dbcdaec2a7fee6fa429d1cf6542a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bd2dd534ae20e8cfc1b8ee78c09640f6b397ed6
Author: Danylo Piliaiev <danylo.piliaiev at globallogic.com>
Date:   Tue May 19 20:35:49 2020 +0300

    meson: Disable GCC's dead store elimination for memory zeroing custom new
    
    Some classes use custom new operator which zeroes memory, however gcc does
    aggressive dead-store elimination which threats all writes to the memory
    before the constructor as "dead stores".
    
    For now we disable this optimization.
    
    The new operators in question are declared via:
     DECLARE_RZALLOC_CXX_OPERATORS
     DECLARE_LINEAR_ZALLOC_CXX_OPERATORS
    
    The issue was found with lto builds, however there is no guarantee that
    it didn't happen with ordinary ones.
    
    CC: <mesa-stable at lists.freedesktop.org>
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1358
    Signed-off-by: Danylo Piliaiev <danylo.piliaiev at globallogic.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5104>
    (cherry picked from commit 5500a2b7fc558217bbd4c2a966ab6fcadaed8b3b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=38b3b8d04def1f750dcf98516a59b12a5766f5e8
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu May 21 13:38:03 2020 +1000

    llvmpipe: compute shaders work better with all the threads.
    
    I got to benchmarking some vulkan compute benchmark and wondered
    why my CPUs weren't being saturated, helps if you actually wake up
    all the threads in the threadpool.
    
    Fixes: 1b24e3ba756b (llvmpipe: add compute threadpool + mutex)
    
    Reviewed-by: Roland Scheidegger <sroland at vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5138>
    (cherry picked from commit 22554e1fbc20d0f642e952fda13d8f2631a898eb)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5c43efa77470923e2943327a8a05c4b82d90420
Author: Nataraj Deshpande <nataraj.deshpande at intel.com>
Date:   Wed May 13 14:32:13 2020 -0700

    dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_R8G8B8X8_UNORM
    
    The commit helps to resolve GL_INVALID_OPERATION error returned
    during CTS test when Android format RGBX8888 fallback to RGBA8888
    and then set color with glTexSubImage2D(format=GL_RGB).
    
    Fixes android.hardware.nativehardware.cts.AHardwareBufferNativeTests:
     #SingleLayer_ColorTest_GpuSampledImageCanBeSampled_R8G8B8X8_UNORM
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Fixes: bf576772ab4d ("dri_util: add driImageFormatToSizedInternalGLFormat function")
    Signed-off-by: Nataraj Deshpande <nataraj.deshpande at intel.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5034>
    (cherry picked from commit 02a1f95386b43bf46cd1c8297d0955242f554fa2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6cb6bb101ad8d203dedeb662b86e872a5f725d55
Author: Andrii Simiklit <asimiklit.work at gmail.com>
Date:   Thu May 7 12:46:28 2020 +0300

    i965/vec4: Ignore swizzle of VGRF for use by var_range_end()
    
    Issue description from Matt's commit e7c376ad:
     "var_range_end(v, n) loops over the n components of variable number v and
      finds the maximum value, giving the last use of any component of v.
      Therefore it expects v to correspond to the variable associated with the
      .x channel of the VGRF.
    
      var_from_reg() however returns the variable for the first channel of the
      VGRF, post-swizzle.
    
      So, if the last register had a swizzle with y, z, or w in the swizzle
      component, we would read out of bounds. For any other register, we would
      read liveness information from the next register.
    
      The fix is to convert the src_reg to a dst_reg in order to call the
      dst_reg version of var_from_reg() that doesn't consider the swizzle."
    
    Closes: #3003
    Fixes: 48dfb30f ('intel/compiler: Move all live interval analysis results into vec4_live_variables')
    Reviewed-by: Matt Turner <mattst88 at gmail.com>
    Signed-off-by: Andrii Simiklit <asimiklit.work at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4941>
    (cherry picked from commit d1b746284985a34e61c315ba586c789c607ac3ba)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8037bb3d46873d96d290cc84fe5d5f58800e05b6
Author: D Scott Phillips <d.scott.phillips at intel.com>
Date:   Tue May 19 13:42:26 2020 -0700

    anv/gen11+: Disable object level preemption
    
    An unknown issue is causing vs push constants to become corrupted
    during object-level preemption. For now, restrict to command
    buffer level preemption to avoid rendering corruption.
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5110>
    (cherry picked from commit 81201e461772a06ed2c20207d2901f6cf9a24114)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ca4da18eb8c8cac8771c09e47a3e7f74b9745a7
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed May 20 22:40:27 2020 +0200

    .pick_status.json: Update to 8cc7711924fd0f3c76e22e527e21d8f8368e5395



More information about the mesa-commit mailing list