Mesa (staging/21.2): 22 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 16 19:48:56 UTC 2021


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9856b8a35de35be341edd1f759d2834b7e59e453
Author: Danylo Piliaiev <dpiliaiev at igalia.com>
Date:   Fri Jul 16 16:01:14 2021 +0300

    freedreno: fix wrong tile aligment for 3 CCU gpu
    
    Fixes: 78c8a8af80d5b0ccd68dd85ff7ecbb699be31f7d "freedreno: Generate device-info tables at build time"
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5060
    
    Signed-off-by: Danylo Piliaiev <dpiliaiev at igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11928>
    (cherry picked from commit 53d4485a028525f9a041e527e50d79ecd3e999fc)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b02d2f1d9bc1e3d214feebf0db4ebc4d5aad7058
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Wed Jul 7 14:36:38 2021 -0500

    iris: Use intel_i915_query for meminfo
    
    Error handling with DRM_IOCTL_I915_QUERY is tricky and we got it wrong
    in one of the two calls here.  Use the common helper instead.  This also
    fixes a theoretical bug where calloc() fails.  While we're here, inline
    iris_bufmgr_update_meminfo because we're not really benefiting from
    having it separate anymore.
    
    Fixes: e60114b2ae11 "iris/bufmgr: Query memory region info."
    Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11770>
    (cherry picked from commit 3fa6b8d0417f215a859386c9c41aca3cd4ec201e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5dde7eb04cec4dde3d9366082dfc3569612d9285
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Wed Jul 7 14:32:23 2021 -0500

    anv: Use intel_i915_query_alloc for memory regions
    
    Error handling with DRM_IOCTL_I915_QUERY is tricky and we got it wrong
    in one of the two calls here.  Use the common helper instead.  This also
    fixes a theoretical bug where calloc() fails.  While we're here, inline
    anv_track_meminfo because we're not really benefiting from having it
    separate anymore.
    
    Fixes: 65e8d72bc106 "anv: Query memory region info"
    Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11770>
    (cherry picked from commit 35ec1d9730cd1d0e3d8f212d5edcea53fe7cc518)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbeb420157ee256230b4fa9db2c63abbcb528370
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Wed Jul 7 14:21:58 2021 -0500

    anv: Handle errors properly in anv_i915_query
    
    DRM_IOCTL_I915_QUERY is a multi-query.  The most egregious errors are
    returned via the usual ioctl error mechanism but there are also
    per-query errors that are indicated by item.length < 0.  We need to
    handle those as well.  While we're at it, scrape errno so we can return
    a proper integer error.
    
    Fixes: c0d07c838a9f "anv: Support i915 query (DRM_IOCTL_I915_QUERY)..."
    Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11770>
    (cherry picked from commit b664481ba91603d69b294ca5b1243e42c86a5863)

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

    radv: Remove num_viewports from radv_skip_ngg_culling.
    
    NGG culling is not compiled into shaders that can use multiple
    viewports, so it's not necessary to check it here.
    
    Fixes: 9a95f5487f5ab83fa44bea12afa30cf1a25fc9db
    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/11910>
    (cherry picked from commit d07e5bde751a7f85ded96b35660075d8f782b49c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c511014205791e6b4479b8999ad3c93288edc943
Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Thu Jul 15 17:12:50 2021 +0200

    radv: Don't compile NGG culling into shaders that write viewport index.
    
    We don't support NGG culling with multiple viewports yet.
    
    Fixes: f30e4351de2f562955435a04cf75dd641639d31c
    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/11910>
    (cherry picked from commit aa247403703b27938fd86ff60428c91a0e76aa6c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c84ea77f76af0eff850fa25c044892f336e67afe
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Tue May 4 20:24:54 2021 -0500

    iris: Re-emit MEDIA_VFE_STATE for variable group size shaders
    
    It implicitly contains the number of threads via the CURBE allocation
    size field.
    
    Fixes: 33c61eb2f105 "iris: Implement ARB_compute_variable_group_size"
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10640>
    (cherry picked from commit e56d5db341eaf2112be366ee015a9956b2c3b704)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=91f9753405e7fa0f141e1aacd37f231b58b69aa2
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Jul 14 17:04:18 2021 +0200

    radv: fix specifying the stencil layout for separate depth/stencil layouts
    
    The Vulkan spec has been updated few months ago again and pNext is
    always honored if present.
    
    Found this with vkd3d-proton which implemented separate depth/stencil
    layouts recently.
    
    Cc: 21.2 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/11903>
    (cherry picked from commit 0b637919a8a30041c64a201f62aba032254a0e0d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a33436b88f75fea1bf3c4082e8a5c93c8573903
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Jul 14 11:40:15 2021 +0200

    radv: report APUs as discrete GPUs for Red Dead Redemption 2
    
    On APUs, we fake heaps to simulate a dGPU setup because it seems to
    have the maximum compatibility. Though, some applications like RDR2
    still only looks at GTT if the driver reports an iGPU which means it
    will only use 1/3rd of total memory available.
    
    This is currently behind a drirc option because it might have
    implications for other apps but we might want to extend this later
    if everything is fine.
    
    Cc: 21.2 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/11891>
    (cherry picked from commit cadf2d63b736b610728d508ed507551dd74ba16a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75ea26454303d3874b03646e44a690a7daf1484d
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Jul 15 10:10:09 2021 +0200

    radv: fix bounds checking for zero vertex stride on GFX6-7
    
    GFX6 and GFX10+ have similar logic.
    
    This fixes test_zero_vertex_stride from vkd3d-proton on
    Pitcairn (GFX6) and on Bonaire (GFX7).
    
    Cc: 21.2 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/11904>
    (cherry picked from commit 7a1cc56e405b247702e91180c1143ca96b96b5bf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2c2e1ff6c0ae655502388da24d274a56e12be16
Author: Daniel Stone <daniels at collabora.com>
Date:   Thu Jul 15 10:19:53 2021 +0100

    vulkan/wsi/wayland: Initialise wl_shm pointer in VkImage
    
    We don't explicitly calloc the wsi_wl_image to zero; anything that's
    expected to be valid needs to be explicitly initialised.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5063
    Fixes: 6b36f35734a9 ("vulkan/wsi/wl: add wl_shm support for lavapipe.")
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Tested-by: Jan Beich <jbeich at freebsd.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11909>
    (cherry picked from commit 49a7c92793ebcc4e2814ef295e51673dc4c9674c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=94ea5e0d8ee50082978767384093a29c163b8bc9
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Jul 15 15:25:24 2021 +1000

    draw: handle resetting draw_id between instances.
    
    If we have a multi draw then the draw_id needs to get reset
    between each instance.
    
    Fixes the rest of the VK CTS multidraw tests
    
    Fixes: ce0b1f23c30e ("aux/draw: track increment_draw_id value from draw info")
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11899>
    (cherry picked from commit b3d2642ca4fe10faf05d51962339a598e622028e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b6553c49cccb2ff5a88d57e0d619027cb0a7430
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Fri Jul 16 12:46:54 2021 -0700

    .pick_status.json: Update to a62973580b7846f2213cbd2589e9473c26596683

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b7de4bffaf912864af82f4af948189d6d75dbe6
Author: Vinson Lee <vlee at freedesktop.org>
Date:   Wed Jul 14 22:23:09 2021 -0700

    asahi: Move assignment after null check.
    
    Fix defect reported by Coverity Scan.
    
    Dereference before null check (REVERSE_INULL)
    check_after_deref: Null-checking so suggests that it may be null,
    but it has already been dereferenced on all paths leading to the
    check.
    
    Fixes: dcd2d8ca500 ("asahi: Track more Gallium state")
    Signed-off-by: Vinson Lee <vlee at freedesktop.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11898>
    (cherry picked from commit f5c8761edab0f3982ab22de774afa81148b47795)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3eb7232a9b0c526cbbe5e25b5ef93e2e388cb49c
Author: Iago Toral Quiroga <itoral at igalia.com>
Date:   Thu Jul 15 08:23:42 2021 +0200

    v3dv: remove more dead clearing code
    
    We forgot to remove the v3dvx code for the clearing code fallbacks
    we removed after we implemented layered clears.
    
    Fixes: 5ba7f64b45 ('v3dv: remove fallback path for vkCmdClearAttachments')
    
    Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11902>
    (cherry picked from commit 18642987fdd4dd69ce64852228afa022cedfd1e1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bc923e54b8fdcdaf6868d85b7c918d89c7402d1
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Jul 14 20:05:54 2021 +0200

    radv: only init the TC-compat ZRANGE metadata for the depth aspect
    
    With separate depth/stencil layouts, if the depth aspect is first
    initialized and then cleared, the ZRANGE_PRECISION metadata might
    be different than 0. Initializing it again for the stencil aspect
    will overwrite the value.
    
    Fixes rendering glitches with Scarlet Nexus on GFX8-9.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5052
    Cc: 21.1 21.2 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/11883>
    (cherry picked from commit 1ea156f44c7ce8d6880217ef4d46692cc7ac0219)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eec1f4092c464b932265d765f14993794639cf32
Author: Vasily Khoruzhick <anarsoul at gmail.com>
Date:   Tue Jul 13 23:12:13 2021 -0700

    lima: handle fp16 vertex formats
    
    12128fb1351e marked fp16 vertex formats supported, but they aren't actually handled
    by lima_pipe_format_to_attrib_type(). Fix it by handling it there.
    FP16 seems to be the only missing index which is 0x3.
    
    Fixes: 12128fb1351e ("lima: add natively supported vertex buffer formats")
    
    Cc: 21.1 mesa-stable
    Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
    Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11872>
    (cherry picked from commit 4a3269dff65e198ac3d493b676800978ce0c01e5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18ed841f2a52fac982823d7e652e8cf05cadce7d
Author: Joshua Ashton <joshua at froggi.es>
Date:   Wed Jul 14 03:21:11 2021 +0100

    lavapipe: Use common Vulkan format helpers
    
    Drops the vk_format_to_pipe (and it's outdated table) for vk_format_to_pipe_format, aswell as the duplicated vk_format_aspects function.
    
    The old format table was missing USCALED and other values, causing incorrect rendering in many games.
    
    Fixes rendering in Portal 1, Hat in Time, Half-Life 2 and pretty much every other D3D9 title with DXVK.
    
    Fixes: b38879f8c5f ("vallium: initial import of the vulkan frontend")
    
    Signed-off-by: Joshua Ashton <joshua at froggi.es>
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11863>
    (cherry picked from commit 1744372714421d741f256f99148e792796888562)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7fbea74c231e2d1cae4df39cd6b7999616488caf
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 14 09:43:39 2021 -0400

    lavapipe: increment drawid for multidraws
    
    Fixes: f99f7c06 ("lavapipe: implement multidraw ext")
    
    Reviewed-by: Joshua Ashton <joshua at froggi.es>
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11878>
    (cherry picked from commit 6689c3917e876bf1719b5808e2c0832ee4d50aed)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf260384b986949239fbca473cb249fd0387580f
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 14 14:21:24 2021 -0400

    zink: improve detection for broken drawids
    
    this is also broken for multidraws where drawid shouldn't be incremented
    
    Fixes: 2d32d123e56 ("zink: avoid unnecessarily rewriting gl_DrawID")
    
    Reviewed-by: Dave Airlie <airlied at redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11878>
    (cherry picked from commit d08c84ab0c3ab1f8061e5d9ea1bcff2ed8b6cf57)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d2802b80c0c47b4af6bdf9741e072ac7bc7f9c4
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jul 14 15:01:32 2021 +1000

    lvp: fixup multi draw memcpys
    
    This doesn't fix the tests but it fixes a bunch of valgrind
    uninitialised value warnings
    
    Fixes: f99f7c06e71d ("lavapipe: implement multidraw ext")
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
    Reviewed-By: Joshua Ashton <joshua at froggi.es>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11870>
    (cherry picked from commit a3271b3f73d40dbbfa9e733498b7ded8810a6d17)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ca42c89e7d09f867e68365fb329649cac551a9b
Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Thu Jul 15 10:04:14 2021 -0700

    .pick_status.json: Update to f40a08d25c91256cd3dff0211b8e10d5bbb3734e



More information about the mesa-commit mailing list