Mesa (staging/20.2): 22 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 1 20:53:28 UTC 2020


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=525a5b763d6009383a5c794cc8cccf12f3cc7aba
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Jul 17 16:22:11 2020 -0500

    intel/fs: Fix MOV_INDIRECT and BROADCAST of Q types on Gen11+
    
    The immediate case is pretty uncommon to see but it can happen, in
    theory.  BROADCAST is typically used to uniformize values and those are
    usually 32-bit.  However, it does come up in some subgroup ops.
    
    Fixes: 49c21802cbca "intel/compiler: Split has_64bit_types into float/int"
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6211>
    (cherry picked from commit cccb497d3c3bbc8f615fe79d774eb42a48e5a95c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d1a71aa2beeffea8be8e2f60d22ee01879d815f
Author: Roman Gilg <subdiff at gmail.com>
Date:   Mon Aug 31 11:35:16 2020 +0200

    vulkan/wsi/x11: wait for acquirable images in FIFO mode
    
    In FIFO presentation mode we block either on our present-queue or on Present
    events after an image was transmitted.
    
    In case we receive completion events without idle events at some point we
    exhaust our acquire-queue and can not block anymore on present-queue.
    
    Ensure that the consumer has at least one image to acquire before blocking
    again on present-queue. Otherwise wait for one from the X server.
    
    CC: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3344
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Simon Ser <contact at emersion.fr>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6513>
    (cherry picked from commit ec5e918ef4911d09b5611773bc58952b13ccef38)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6e4106024e30ed886bb542946505d0e3edb6b0b
Author: Roman Gilg <subdiff at gmail.com>
Date:   Mon Aug 31 11:33:27 2020 +0200

    vulkan/wsi/x11: add sent image counter
    
    Add a counter to count how many images from our swapchain are currently "sent"
    to the X server via Present extension. An image is sent when it has been
    presented but we have not yet received an idle event for it.
    
    CC: mesa-stable
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Simon Ser <contact at emersion.fr>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6513>
    (cherry picked from commit d0bc1ad3776bce7d4b356e2a3d8bdbb9ae64e588)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd1dbd904cbe99c461641e31ee3d976e3d960dd8
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Aug 31 16:08:55 2020 +0200

    nir/algebraic: mark some optimizations with fsat(NaN) as inexact
    
    If a is Nan, fsat(NaN) is expected to be 0 and some optimizations
    should be marked as inexact.
    
    Fixes a GPU hang with Death Stranding and RADV/ACO (RADV/LLVM
    isn't affected because it lowers fsat).
    
    No fossils-db change.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3368
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6519>
    (cherry picked from commit bc123c396a99b2f6ff845792374d6a8d5de5d15e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1629fe89a659a5af95cdc5e473e1eceb6413d1e1
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Aug 31 21:59:39 2020 -0400

    gallivm: fix build on LLVM 12 due to LLVMAddConstantPropagationPass removal
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3465
    Cc: 20.1 20.2 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6531>
    (cherry picked from commit 52cac068621a5998f486f8e44f9c2d9d045d1c31)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a63155052a9362964224039639af0ec88e8def4
Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sun Aug 30 17:39:43 2020 -0700

    vulkan: Fix memory leaks.
    
    Fix warnings reported by Coverity Scan.
    
    Resource leak (RESOURCE_LEAK)
    leaked_storage: Variable info going out of scope leaks the storage it
    points to.
    
    Fixes: 9bc5b2d169d3 ("vulkan: add initial device selection layer. (v6.1)")
    Signed-off-by: Vinson Lee <vlee at freedesktop.org>
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6509>
    (cherry picked from commit 004119d5b7d4b1679e6dd691e9ab2ab7d65f8516)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22b4120de4d0840adc66b07ff74f59d0fe6b6b69
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Aug 31 14:20:59 2020 -0400

    pan/mdg: Fix perspective combination
    
    It's not enough to multiply by a .w reciprocal, we have to be taking the
    reciprocal of the thing we're actually multiplying against.
    
    Fixes incorrect rendering in Manhattan.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6525>
    (cherry picked from commit 41d0a81c2a3f09701e8c694b520c8d900f6ac2f1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e57b4680d3ca5a6c56686040fcde517494a7049
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Aug 31 14:04:55 2020 -0400

    pan/mdg: Fix discard encoding
    
    Let's match the blob.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6525>
    (cherry picked from commit c8ac01af33a5bc63822915f08f89a7dbaf7d433f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=83dda7b35f5d807f0f61bee7cad665ba3a29a510
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Aug 13 15:15:26 2020 -0700

    turnip: Make sure we include the build id.
    
    The ir3 disk cache is initialized when we use the ir3 compiler, even if we
    don't use it ourselves, and it requires a build id.  With lld, it seems we
    don't end up getting one included by default.
    
    Fixes: f97acb4bb4b1 ("freedreno/ir3: disk-cache support")
    Reviewed-by: Rob Clark <robdclark at chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6324>
    (cherry picked from commit 221aa00eeb33938dab06b26c8a770ecae3698825)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7518930a99d00cdd8e71f4eb26e350ceff17d645
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Mon Aug 10 10:27:57 2020 +0300

    anv: VK_INTEL_performance_query interaction with VK_EXT_private_data
    
    All objects are expected to have the base internal object for private
    data storage.
    
    This also fixes a memory leak of a gen_perf_registers structure.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
    Fixes: 51c6bc13ce3a70 ("anv,vulkan: Implement VK_EXT_private_data")
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6255>
    (cherry picked from commit b6a013ccab0f5545bdc2e63dae1c93e688a93eaa)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=57d65d2f76f5937bc8876e5a8fc0a7f4d768f63c
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Wed Jun 24 23:27:52 2020 +1000

    util/u_thread: include pthread_np.h if found
    
    Required for pthread_set_name_np() on OpenBSD as there is no
    pthread_setaffinity_np() to define PTHREAD_SETAFFINITY_IN_NP_HEADER.
    
    Fixes: dcf9d91a80e ("util: Handle differences in pthread_setname_np")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit 55765f80b9ce7cce4ec6a1c2bed6476776d9cbed)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d37550f8e7af497488e1221ae2eecbdfafd77d27
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Thu Feb 20 13:18:01 2020 +1100

    util: futex fixes for OpenBSD
    
    Fix absolute to relative timeout computation.
    
    Add sanity checks to futex_wait()
    - handle the NULL timeout pointer case
    - avoid negative cases.
    
    From Matthieu Herrb and Scott Cheloha.
    
    Fixes: c91997b6c43 ("util/futex: use futex syscall on OpenBSD")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Acked-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit c66c5b38e0ad136aa9301fd60aafea736d433c57)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=43bd915ff5612e8d212fa355519bb04a6d3be6ad
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Fri Dec 6 17:25:58 2019 +1100

    meson: conditionally include -ldl in gbm pkg-config file
    
    Follow libGL and only include -ldl in gbm pkg-config file if libdl was
    actually found.  Many systems have these functions in libc and don't
    have libdl.
    
    Fixes: 816bf7d1644 ("meson: build gbm")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit 0398caa97fa6ab9a0eac29dfca38b3fceb2cc026)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db2fa8208c8a9eefad29ed6e20cddd32d8382621
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Fri Dec 6 15:23:36 2019 +1100

    meson: don't build with USE_ELF_TLS on OpenBSD
    
    OpenBSD does not have TLS
    
    Fixes: a47c525f328 ("meson: build glx")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit c97af23b13c55c27f5fe381793ee9a3d6f3a2280)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe8d18e75254e7d1c91578ace6a34627ff636ed9
Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Thu Nov 21 22:14:50 2019 +0000

    meson: don't advertise TLS support if glx wasn't build with it
    
    Fixes: a47c525f328 ("meson: build glx")
    Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit 9ac16864227cc63ca6b23eeab39fdcc7f85beca5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f4094bb1c4d178df8ca13db828c76074d42d3ce
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Fri Dec 6 14:30:14 2019 +1100

    meson: build with _ISOC11_SOURCE on OpenBSD
    
    Mesa builds with -std=c99 but uses timespec_get() a c11 function.
    Build with _ISOC11_SOURCE for c11 visibility when -std is specified.
    On linux c11 visibility comes from defining _GNU_SOURCE.
    
    Fixes: e3a8013de8c ("util/u_queue: add util_queue_fence_wait_timeout")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit f9a7e6e854ddedafd3c85f7eaeca1a00ee7bced5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=372f8f5c534af0f94f753b10bb15647e8fb14de5
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Thu Nov 1 13:16:13 2018 +1100

    util/anon_file: add OpenBSD shm_mkstemp() path
    
    memfd_create() is a linux syscall replace the use of it with
    shm_mkstemp() on OpenBSD.
    
    unconditionally include stdlib.h for mkstemp()/mkostemp()
    
    Fixes: c0376a12341 ("util: add anon_file.h for all memfd/temp file usage")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit 6e9c0661f8538cdabe7d7de73af11b4165f51f93)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d0f9e3dc307935f7c753b5682d9bd79beae8760
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Wed Mar 28 14:06:14 2018 +1100

    util: unbreak endian detection on OpenBSD
    
    Since cbee1bfb34274668a05995b9d4c78ddec9e5ea4c endian.h is unconditionally
    used if available.
    
    glibc has byte order defines with two leading underscores.  OpenBSD
    has private defines with a single leading underscore in machine/endian.h
    and public defines in endian.h with no underscore.
    
    The code under the endian.h block did not check if symbols were
    defined before equating them so '#if __BYTE_ORDER == __LITTLE_ENDIAN'
    would turn into '#if 0 == 0' which is always true.
    
    Fixes: cbee1bfb342 ("meson/configure: detect endian.h instead of trying to guess when it's available")
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Eric Engestrom <eric at engestrom.ch>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
    (cherry picked from commit 7eab6845e9dd49f0ef0bf9a7d986aaf685e77981)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=64039dffc4cf341d1162c0ff4c4f1b30e445f9ec
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Aug 7 11:25:54 2020 -0500

    intel/nir: Rewrite the guts of lower_alpha_to_coverage
    
    I have no idea how this pass ever worked.  I guess it worked ok on the
    one or two piglit tests but the whole thing seemed very fragile.  It
    makes a number of undocumented and unasserted assumptions and they
    aren't always valid.  This rewrite makes a number of changes:
    
     1. It now properly handles the case where the gl_SampleMask write comes
        before the gl_FragColor or gl_FragData[0] write.
    
     2. It should early-exit faster because it now looks at bits in
        shader_info::outputs_written instead of looking for variables.
    
     3. Instead of the fragile variable lookup where we try to look the
        variable up by both location and driver_location and match, we just
        use the driver_location calculations used by brw_fs_nir.
    
     4. It asserts that the index parameter to store_output is a constant
        instead of silently failing if it isn't.
    
     5. We now actually assert the implicit assumption that the two writes
        are in the same block.  We go even further and assert that they are
        in the last block in the shader.
    
     6. In the case where 3 or fewer components of the output are written,
        we explicitly choose to leave the sample mask alone.
    
    Fixes: 7ecfbd4f6d4 "nir: Add alpha_to_coverage lowering pass"
    Closes: #3166
    Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6233>
    (cherry picked from commit b6fdb1405ee2688ffc15acdf0476dece8bc8846b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=367be430b512cbca6c63944deead76805b005596
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Aug 7 11:19:45 2020 -0500

    intel/nir: Pass the nir_builder by reference in lower_alpha_to_coverage
    
    I'm honestly not sure how passing a builder by-value ever worked.  I
    guess the struct is mostly copyable.  In any case, that's the wrong way
    to use it and it's causing issues.
    
    Fixes: 7ecfbd4f6d4 "nir: Add alpha_to_coverage lowering pass"
    Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6233>
    (cherry picked from commit 72dc06e07e3f8b9ed5bb46e3927b8f87dd24e42b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eefc95d601f3f9c4aed3e144533f04385a66cffd
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Tue Sep 1 13:53:23 2020 -0700

    .pick_status.json: Update to b9927c8c8d0c105699306a68773c015930ff9509

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb53f1937a3ff55bcf43d530d4817c3928340373
Author: Eric Engestrom <eric at engestrom.ch>
Date:   Sat May 23 01:45:42 2020 +0200

    egl/x11_dri3: implement EGL_KHR_swap_buffers_with_damage
    
    Passes all of `dEQP-EGL.functional.swap_buffers_with_damage.*`:
    
        Passed:        36/54 (66.7%)
        Failed:        0/54 (0.0%)
        Not supported: 18/54 (33.3%)
        Warnings:      0/54 (0.0%)
        Waived:        0/54 (0.0%)
    
    The "not supported" ones are the `preserve_buffer_*` tests, which is not
    supported on X11/DRI3.
    
    Cc: 20.2 <mesa-stable>
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3030
    Signed-off-by: Eric Engestrom <eric at engestrom.ch>
    Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6132>
    (cherry picked from commit 326eb56718925828e886f40f72ea4a97b4657196)



More information about the mesa-commit mailing list