Mesa (staging/20.1): 21 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 25 21:33:42 UTC 2020


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b2ae8b28d312510410e221ead1cc1d287057fb1
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=c63e8cabbd96a9591e97bae1494498a3de9afc5f
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=e8d4b51e43a3f60a9fb723b2ec309c4ae092b814
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=9948939ffd256c4f8d7f29a58e5205aa41a65b13
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=3f27b98acba1baddb88e8ea0c800be8005bfee4f
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=c0a0bcfdf460285dfa1aeb22ed7934347dd4ba6a
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=48e837a33bc2c67c24e8787b72640516a3d880b4
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=a0ca71f0f1ed9e4e4e5c065ca91c0a56bf667402
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=065fa93f4425bfa1b44f86a2eed70c6ff1e86031
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=5b3d2c01c63cd223d0a812cc865524a37ead2888
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=1e6425f5740ee255569139ef6800b0b06f7c79ba
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=851d2cab0d06b94a56ace28a67ea2efacea60eff
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=78de128aaa1afd7b4ee2ef9ce518b936e8fb7d70
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=f5ea37d3e7d05dcc238ebd0024b1e8d97ba08b58
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=0ed259fde28a6005c9ba6fc0e4e9e82d375bbf55
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=a206f498f4c12c1da2349d4868cbf933e13f1dc4
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=e785f90da4c20334aa0a9733e919909da8353670
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=7b8aac65d688b290b4f8373eab6701a6cd2f7aae
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=9ed48f2a523de3410d1f52c59a094d47ddde14ca
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=fbf93d53a591e04fc70b506824d38d297f5f78c8
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=a228659c51d360fb45533e01e9af0816559be321
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Wed May 20 22:40:27 2020 +0200

    .pick_status.json: Update to 1241f8cb4c9c6cc65106a085be81963f3505a7d5



More information about the mesa-commit mailing list