[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/mesa][upstream-unstable] 79 commits: docs: add sha sum for 25.0.1



Title: GitLab

Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / lib / mesa

Commits:

  • d2e943ad
    by Eric Engestrom at 2025-03-05T22:25:44+01:00
    docs: add sha sum for 25.0.1
    
  • a7da6ebc
    by Eric Engestrom at 2025-03-05T22:49:42+01:00
    .pick_status.json: Mark 61b0955308d720a6fa065e7a414d16999f7ffd03 as denominated
    
  • d09833d7
    by Eric Engestrom at 2025-03-05T22:49:42+01:00
    .pick_status.json: Mark 534436f8635e63a30e4d7af4837dad35cfa361ad as denominated
    
  • 2b381ba4
    by Eric Engestrom at 2025-03-15T09:48:51+01:00
    .pick_status.json: Update to 61feea6954a7526836ccbd30c657e6afc11fb4f5
    
  • 54fb1e47
    by Mary Guillemard at 2025-03-15T09:49:00+01:00
    pan/bi: Fix out of range access in bi_instr_replicates
    
    For replicates, we were checking equivalence between two sources on some
    instructions but some of them only had one source causing an out of
    bound access and check against unrelated data.
    
    Instead we now always return true for those instructions.
    
    Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
    Fixes: f7d44a46cd42 ("pan/bi: Optimize replication")
    Reviewed-by: Benjamin Lee <benjamin.lee@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33867>
    (cherry picked from commit 8948b74955fbac611af4887181b281cf5850a382)
    
  • 6b92f95f
    by Mary Guillemard at 2025-03-15T09:49:00+01:00
    pan/bi: Ensure we select b0 with halfswizzle in va_lower_constants
    
    In case of constant lowering with halfswizzle sources, we were selecting
    h01 causing an invalid instruction error to be yield later.
    
    This can only be hit by conversion instructions and shouldn't be seen in
    the wild (as this should be eliminated before entering the backend).
    
    Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
    Fixes: 7d07fb9a679e ("pan/va: Handle 8-bit lane when lowering constants")
    Reviewed-by: Benjamin Lee <benjamin.lee@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33867>
    (cherry picked from commit 2f1ce296d0a2a9eb8bd7d88bb80cc87c61b2492d)
    
  • a8a5e94d
    by Faith Ekstrand at 2025-03-15T09:49:00+01:00
    util/box: Add a intersect_2d helper
    
    Fixes: 3d38c9597ff3 ("zink: hook up KHR_partial_update")
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33855>
    (cherry picked from commit 8cf921a7420ad66de2e39ec429d2e6fcefe7625f)
    
  • 58d30fed
    by Faith Ekstrand at 2025-03-15T09:49:00+01:00
    zink: Use pipe_box helpers for damage calculations
    
    The old code got the accumulation a bit wrong.  For one thing, it always
    accumulates with whatever was there instead of resetting to empty each
    time.  For another, it sets with with y and height with x when it writes
    back to the resource.  This is also all too complicated because it
    converts between pipe_box, u_rect, and VkRect2D on every iteration.
    
    Instead, there are helpers in util/box.h which will do most of this work
    for us and they're correct.  Let's just use them to get rid of the bugs
    and make everything simpler and more obvious at the same time.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12194
    Fixes: 3d38c9597ff3 ("zink: hook up KHR_partial_update")
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33855>
    (cherry picked from commit 11939a70df887b68df1afe7393d35f7774c13fab)
    
  • 6999073d
    by Rhys Perry at 2025-03-15T09:49:01+01:00
    aco: insert dependency waits in certain situations
    
    This seems to fix some artifacts, but we're not sure why, so it might not
    be a correct or optimal solution.
    
    fossil-db (navi31):
    Totals from 28424 (35.81% of 79377) affected shaders:
    Instrs: 30112910 -> 30348977 (+0.78%); split: -0.00%, +0.78%
    CodeSize: 159542980 -> 160485336 (+0.59%); split: -0.00%, +0.59%
    Latency: 221438396 -> 221500856 (+0.03%); split: -0.00%, +0.03%
    InvThroughput: 38154231 -> 38159984 (+0.02%); split: -0.00%, +0.02%
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
    Backport-to: 25.0
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33853>
    (cherry picked from commit 0ec174afd56fe48bcfa071d4b8ed704106f46f91)
    
  • a476298a
    by Job Noorman at 2025-03-15T09:49:01+01:00
    ir3: fix false dependencies of rpt instructions
    
    When merging multiple instructions into one rpt instruction, the false
    deps of the rpt instruction should be the union of the false deps of its
    parts.
    
    Signed-off-by: Job Noorman <jnoorman@igalia.com>
    Fixes: 4c4366179bf ("ir3: add post-RA pass to merge repeat groups into rptN instructions")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32454>
    (cherry picked from commit 0f6ec14925dfa3c4c8551113a01d67a3e9989141)
    
  • 19b84036
    by Rob Clark at 2025-03-15T09:49:01+01:00
    tc: Add missing tc_set_driver_thread()
    
    Cc: mesa-stable
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33724>
    (cherry picked from commit fac2c4af1beeb55ac814f3c80b404d83e416cc7d)
    
  • 68520f22
    by Rob Clark at 2025-03-15T09:49:01+01:00
    freedreno: Wait for imported syncobj fences to be available
    
    Waiting on a fence created from an imported syncobj needs wait for the
    fence_fd to become available
    
    Fixes piglit tests added in https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/992
    
    Fixes the following issue for freedreno: #12650
    
    Cc: mesa-stable
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33724>
    (cherry picked from commit ee787b64edf0f82109da9fc6a6bbfb74c68aec68)
    
  • 88f749d0
    by Karol Herbst at 2025-03-15T09:49:01+01:00
    rusticl/program: implement CL_INVALID_PROGRAM_EXECUTABLE check in clGetProgramInfo
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33892>
    (cherry picked from commit b2f3933c8d6818e3a239735c97cdc9b6f2938499)
    
  • 9247e110
    by Karol Herbst at 2025-03-15T09:49:01+01:00
    rusticl/program: pass options by reference
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33892>
    (cherry picked from commit e434ce15595fd3ea63dcf217105e4e375fdf0d1c)
    
  • 4d5d4ead
    by Karol Herbst at 2025-03-15T09:49:01+01:00
    rusticl/program: loop over all devices inside Program::build
    
    We want to build the kernels once and atm we are doing it several times
    for each device.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33892>
    (cherry picked from commit 241279ac2c64bb0c412749a77ffd90b73afd9ebc)
    
  • b5ec24f3
    by Karol Herbst at 2025-03-15T09:49:01+01:00
    rusticl/program: rework build_nirs so it only touches devices we care about
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33892>
    (cherry picked from commit 57a7e86aa9779b0f2535c6958d5ed834fd4b84ee)
    
  • aff18d48
    by Karol Herbst at 2025-03-15T09:49:01+01:00
    rusticl/program: fix building kernels
    
    We ended up with duplicates, but also rebuilt the same kernel over and
    over again for multi dev builds.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33892>
    (cherry picked from commit ce60f47e96c7da578d733290d82bcefc6d322863)
    
  • 9a34afca
    by José Roberto de Souza at 2025-03-15T09:49:01+01:00
    intel/common: Retry GEM_CONTEXT_CREATE when PXP have not finished initialization
    
    If PXP initialization is not completed and application requested a
    protected context the GEM_CONTEXT_CREATE will wait up to 250ms for
    PXP to finish initialization but if that do not happens it will
    return a error and set errno to EIO.
    This patch add the missing retry handling.
    
    Cc: mesa-stable
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30723>
    (cherry picked from commit 008ac818ba475780cd93328527d5b64652414180)
    
  • 49b2aad9
    by Yiwei Zhang at 2025-03-15T09:49:01+01:00
    venus: fix a memory corruption in query records recycle
    
    The free list must be re-initialized. Found the bug while running:
    dEQP-VK.ray_tracing_pipeline.acceleration_structures.device_compability_khr.gpu_built.top
    where it invokes VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT to purge
    the cmd pool resources, and the next alloc still gets cache hit with the
    "empty" list.
    
    Fixes: e2c4bafccc7 ("venus: free query batches for VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT")
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33908>
    (cherry picked from commit 68682127741f0b1d6c5e360088cd1ed778015f27)
    
  • de3dd2af
    by Marek Olšák at 2025-03-15T09:49:01+01:00
    Revert "ac/nir: clamp vertex color outputs in the right place"
    
    This reverts commit b3fc49686edb33f3a67ab4a94ef9f218785765c0.
    
    It was a rebase failure.
    
    Fixes: b3fc49686edb33f3a67a
    
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33482>
    (cherry picked from commit 177c9b173e2a91150417ef1658e839f2674147c3)
    
  • 3abbecb1
    by Georg Lehmann at 2025-03-15T09:49:01+01:00
    radv: enable invariant geom for DOOM(2016)
    
    Moving alu reordered some fmuls and since we prefer the closest fmul for ffma,
    this causes precision to mismatch between depth write and depth test.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12016
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33933>
    (cherry picked from commit 7b1f1a107eb1e95bd3303f453e53fcd4c98b292e)
    
  • f6ccb29a
    by Erik Faye-Lund at 2025-03-15T09:49:02+01:00
    docs/features: add missing panvk feature
    
    I forgot to document this feature when I added it, whoops!
    
    Fixes: ac05c2a2b8f ("panvk: expose subgroup operations")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33918>
    (cherry picked from commit 1a1412e66e000dfb9de7de72607d14d9b837cc92)
    
  • ff107b61
    by Rebecca Mckeever at 2025-03-15T09:49:02+01:00
    panvk: Add STORAGE_IMAGE_BIT feature for formats supporting sampled images
    
    All formats that support sampled images should also be suitable for
    storage images.
    
    Fixes: d970fe2e ("panfrost: Add a Vulkan driver for Midgard/Bifrost GPUs")
    
    Signed-off-by: Rebecca Mckeever <rebecca.mckeever@collabora.com>
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33459>
    (cherry picked from commit 27037efcfdec25e7b44525aba5ad200370d7e6bc)
    
  • 26b33e2e
    by Yiwei Zhang at 2025-03-15T09:49:02+01:00
    lavapipe: set availability bit for accel struct host queries
    
    Fixes: 897ccbd180a ("lavapipe: Implement VK_KHR_acceleration_structure")
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33951>
    (cherry picked from commit bc190cab2da0fbbf85e76b38abde432ae87195a1)
    
  • a67d8b0a
    by Yiwei Zhang at 2025-03-15T09:49:02+01:00
    lavapipe: fix accel struct device query copy
    
    This change:
    1. use vulkan flags instead of pipe query flags
    2. set the avail bit when requested
    
    Fixes: a26f96ed3de ("lavapipe: Handle accel struct queries in handle_copy_query_pool_results")
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33951>
    (cherry picked from commit e538a380172195e254fe262a0effe757e378cb0d)
    
  • 5c0fd3e2
    by Faith Ekstrand at 2025-03-15T09:49:02+01:00
    zink: Set needs_barrier after transitioning to QUEUE_FAMILY_FOREIGN
    
    Otherwise, we'll transition to QUEUE_FAMILY_FOREIGN and then forget that
    we left it on the foreign queue and never transition back the next time
    we use the resource.  This was kind-of okay with Wayland compositors
    because they always re-import the BO so it's always fresh and they pick
    up on the queue transfer the first time.  X11, on the other hand, does
    not re-import BOs so they get stuck in this weird QUEUE_FAMILY_FOREIGN
    limbo until something happens to randomly trigger a layout transition
    check and then we find it and do the transition.  We should mark them as
    needing a barrier the moment we transition to QUEUE_FAMILY_FOREIGN.
    
    Fixes: d4f8ad27f2d7 ("zink: handle implicit sync for dmabufs")
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33952>
    (cherry picked from commit 396ece1ad8f582eb39c9cbf4032f7298a9f67022)
    
  • 6187b8e4
    by Faith Ekstrand at 2025-03-15T09:49:02+01:00
    zink: Check queue families when binding image resources
    
    We check for iamge layouts and feedback loops when we bind image
    resources but not queue families.  If the resource isn't on the graphics
    queue, we need to add it to need_barriers so we can transition it back
    to our queue.
    
    Fixes: d4f8ad27f2d7 ("zink: handle implicit sync for dmabufs")
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33952>
    (cherry picked from commit 18d206d67ca485ef2f8b17ea1c0e0c08b63d3562)
    
  • f2a88049
    by Mel Henning at 2025-03-15T09:49:02+01:00
    nvk: Don't zero imported memory
    
    This fixes eg.
    dEQP-VK.drm_format_modifiers.export_import_fmt_features2.a8b8g8r8_uint_pack32
    with NVK_DEBUG=zero_memory
    
    Fixes: 0399999decd ("nvk: Support dma-buf import")
    Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33947>
    (cherry picked from commit cab80223fd8fd72cd9a95484ae023708714f42ad)
    
  • cd9dae99
    by Alyssa Rosenzweig at 2025-03-15T09:49:02+01:00
    pan/mdg: call nir_lower_is_helper_invocation
    
    needed to avoid regression from the next patch.
    
    backported because the next patch is too
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Cc: mesa-stable
    Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33939>
    (cherry picked from commit e90ccf91a322a84f508796ca5d13f4702cd1e9e6)
    
  • 4da0e7ff
    by Alyssa Rosenzweig at 2025-03-15T09:49:02+01:00
    nir/lower_helper_writes: fix stores after discard
    
    We need to use nir_is_helper_invocation instead of
    nir_load_helper_invocation, to correctly predicate stores after demote.
    
    Identified in a Piglit on AGX a year ago but I forgot to upstream this.
    
    Fixes: 586da7b3290 ("nir: Add nir_lower_helper_writes pass")
    Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33939>
    (cherry picked from commit bc6b527b5202f39c02b2bbba28bf334531306605)
    
  • 4fdb2e99
    by Timothy Arceri at 2025-03-15T09:49:02+01:00
    util/u_idalloc: fix util_idalloc_sparse_alloc_range()
    
    If the allocation didn't fit within the segment the loop incorrectly
    freed ids of a range of different segments due to the loop redeclaring
    i.
    
    Fixes: d4085aaf569b ("util: add util_idalloc_sparse, solving the excessive virtual memory usage")
    
    Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33934>
    (cherry picked from commit 25e008c639c0ccd2ec0ca2e6d6d83a03b8d83eb0)
    
  • 45e99616
    by Eric Engestrom at 2025-03-15T09:49:02+01:00
    .pick_status.json: Mark 551770ccf8bdb1e5fa45ddac854535edf2b31a22 as denominated
    
  • c9112e30
    by Yiwei Zhang at 2025-03-15T09:49:02+01:00
    venus: fix to ignore dstSet for push descriptor
    
    Per push descriptor spec:
    
    Each element of pDescriptorWrites is interpreted as in
    VkWriteDescriptorSet, except the dstSet member is ignored.
    
    Cc: mesa-stable
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33948>
    (cherry picked from commit c7bc90eaec0af68400a4f0894b9acbe3c114db06)
    
  • a4e6a8fb
    by Samuel Pitoiset at 2025-03-15T09:49:02+01:00
    ac,radv: add a workaround for a hw bug with primitive restart on GFX10-GFX10.3
    
    At least, NAVI10, NAVI21 and NAVI24 are affected by this what looks
    like a hardware bug when primitive restart is changed and no context
    registers are written between draws. It seems the hardware doesn't
    consider primitive restart at all in this situation.
    
    Adding SQ_NON_EVENT(0) as suggested by Marek seems to fix it reliably
    without introducing any overhead. It's basically a NOP packet that adds
    a small delay.
    
    Fixes new VKCTS coverage dEQP-VK.transform_feedback.primitive_restart.*.
    Also fixes this old vkd3d-proton issue.
    
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7258
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33929>
    (cherry picked from commit 0bc9d59c2e312ca95031266fb4ac93f7166506a6)
    
  • 3ad2c249
    by David Rosca at 2025-03-15T09:49:02+01:00
    gallium/vl: Fix video buffer supported format check
    
    It needs to check all plane formats.
    
    Fixes: c3ceec6cd85 ("vdpau: Refactor query for video surface formats.")
    Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33927>
    (cherry picked from commit 244cfac14366358315dffb4050318c5c8bdd64d0)
    
  • 94ff2a8d
    by David Rosca at 2025-03-15T09:49:02+01:00
    Revert "frontends/vdpau: Alloc interlaced surface for interlaced pics"
    
    This is not needed now when deinterlace can handle non-interlaced
    buffers. Also this forces the buffer as interlaced which doesn't work
    on radeonsi anymore.
    
    This reverts commit 0ee4506c3aaf4e024748c91fbda9ea77c215bc4a.
    
    Cc: mesa-stable
    Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33927>
    (cherry picked from commit 6b91f13d5ded1fbc7f83ca9b6e63ab09aa0473d2)
    
  • 2ad0974e
    by David Rosca at 2025-03-15T09:49:02+01:00
    frontends/vdpau: Fix creating deinterlace filter for interleaved buffers
    
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12755
    Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33927>
    (cherry picked from commit e56b906df964e2fbc198584bfb397d1bd1a0bb97)
    
  • 00f882c0
    by Ashley Smith at 2025-03-15T09:49:02+01:00
    panfrost: Reset syncobj after use to avoid kernel warnings
    
    We get a kernel message "You are adding an unorder point to timeline!"
    on many CTS runs. This stems from us SIGNALing the queue syncobj then
    WAITing but not reseting it. It is assumed by the time we get to
    panvk_queue_submit_init_signals() that the value is 0, however it is 1
    due to the previous calls.
    
    Signed-off-by: Ashley Smith <ashley.smith@collabora.com>
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Fixes: 5544d39f ("panvk: Add a CSF backend for panvk_queue/cmd_buffer")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33943>
    (cherry picked from commit 14101ff9488f3ab3e57b3a9daabff0f4a929e195)
    
  • 5603cefd
    by Natalie Vock at 2025-03-15T09:49:03+01:00
    radv/rt: Guard leaf encoding by leaf node count
    
    For empty BVHs we shouldn't emit any leaf nodes, but there is one
    invocation to encode the root node. Guard leaf node encoding so that
    invocation doesn't try writing any leaves.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33985>
    (cherry picked from commit cdadda2d51628cd22abe0b8ff045e3c46b6a19e9)
    
  • 9bcbdbfc
    by Natalie Vock at 2025-03-15T09:49:03+01:00
    radv/rt: Flush L2 after writing internal node offset on GFX12
    
    Otherwise the encoder can read a stale value and make internal nodes
    point into leaf space (if 0 is read).
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33985>
    (cherry picked from commit a1b05991051ba86299c305bf024354c95d6aa4b4)
    
  • e4674b3d
    by Job Noorman at 2025-03-15T09:49:03+01:00
    ir3: keep inputs at start block when creating empty preamble
    
    It is expected that inputs and prefetches are always in the first block.
    However, ir3_create_empty_preamble would create blocks before the first
    one, leaving inputs after the preamble. This causes issues with
    (probably among others) spilling/RA where precolored inputs could
    illegally reuse the spill base register.
    
    Fixes RA validation failures on a7xx for
    dEQP-VK.ray_query.multiple_ray_queries.vertex_shader
    
    Signed-off-by: Job Noorman <jnoorman@igalia.com>
    Fixes: f3026b3d3e6 ("ir3: add some preamble helpers")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33977>
    (cherry picked from commit c58ba21ba80de27565d2a703d0a8b6cdc3ef5696)
    
  • 1784e9d1
    by Ivan A. Melnikov at 2025-03-15T09:49:03+01:00
    gallium/radeon: Make sure radeonsi PCI IDs are also included
    
    When importing libdrm_radeon code [1][2] it was somehow missed
    that what libdrm has in one r600_pci_ids.h, Mesa has split
    into r600_pci_ids.h and radeonsi_pci_ids.h. So, devices
    with ids from radeonsi_pci_ids.h were not considered valid for
    radeon_surface_manager_new.
    
    This commit changes that, thus fixing radeonsi for these
    devices.
    
    [1] commit 1299f5c50a490fadeb60b61677596f13399ee136
    [2] commit 3aa7497cc0bb52c8099fb07b27f9aee5e18e58ca
    
    Fixes: 1299f5c50a490fadeb60b61677596f13399ee136
    Signed-off-by: Ivan A. Melnikov <iv@altlinux.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33940>
    (cherry picked from commit 4ad5b8f5bbe0f7dbc8e9debff76b79cd9ff76a79)
    
  • fb1d8599
    by Faith Ekstrand at 2025-03-15T09:49:03+01:00
    nvk: Allow rendering to linear images with unaligned strides
    
    We can do this by just enabling the fall-back path whenever we detect
    something that's not nicely aligned.
    
    Backport-to: 25.0
    Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33990>
    (cherry picked from commit e36f9d69093de70db79828ab3090dd054052ce9a)
    
  • 9557d9b9
    by Faith Ekstrand at 2025-03-15T09:49:03+01:00
    nil: Relax alignment requirements for linear images
    
    Compositors sometime try to import BOs with lower alignments than 128B.
    This seems particularly common in the case of cursor images but it can
    also happen on other BOs allocated by the old nouveau GL driver.  As
    long as we avoid rendering to them (which NVK will do), the
    texture/image hardware is fine as long as they're at least 32B-aligned.
    Panicing in this case isn't very nice to compositors.
    
    Backport-to: 25.0
    Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33990>
    (cherry picked from commit 3c11da8aea7c957c811651c56de2f7d20978fd6e)
    
  • 6f0eb911
    by Pierre-Eric Pelloux-Prayer at 2025-03-15T09:49:03+01:00
    st/mesa: fix nir_load_per_vertex_input parameter
    
    num_components should be 1 as we're loading an offset value.
    
    Fixes: ec68f0492b7 ("st/mesa: switch GL_SELECT shader to IO intrinsics")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12774
    Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33982>
    (cherry picked from commit 770b5bc7577d775e1d92775d36af0ff617fb2365)
    
  • 76271929
    by Erik Faye-Lund at 2025-03-15T09:49:03+01:00
    panvk: correct VkPhysicalDeviceProperties::deviceName
    
    We currently report a deviceName as e.g. "Mali-G610 (Panfrost)", but
    panfrost has nothing to di with the physical device, and the suffix
    doesn't belong there at all.
    
    So let's remove that suffix from PanVK. This results in output like this
    from vulkaninfo:
    
    ---8<---
    VkPhysicalDeviceProperties:
    ---------------------------
            apiVersion        = 1.1.305 (4198705)
            driverVersion     = 25.0.99 (104857699)
            vendorID          = 0x13b5
            deviceID          = 0xa8670000
            deviceType        = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
            deviceName        = Mali-G610
            pipelineCacheUUID = <snip>
    ---8<---
    
    We already sort of namedrop Panfrost in the driver properties:
    
    ---8<---
    VkPhysicalDeviceDriverPropertiesKHR:
    ------------------------------------
            driverID        = DRIVER_ID_MESA_PANVK
            driverName      = panvk
            driverInfo      = Mesa 25.1.0-devel (git-136dd9f985)
            conformanceVersion:
                    major    = 1
                    minor    = 4
                    subminor = 1
                    patch    = 2
    ---8<---
    
    While this might techically speaking be a regression, PanVK has been
    marked as experimental until Mesa 25.0. But to reduce the risk of people
    starting to depend on this behavior, let's also backport this change to
    the 25.0 release.
    
    The patch looks a bit funny, because we add the " (Panfrost)"-suffix in
    common code, and this moves it to the Gallium driver. But effectively,
    this means PanVK is the only driver that sees a change of behavior.
    
    Backport-to: 25.0
    Reviewed-by: John Anthony <john.anthony@arm.com>
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33972>
    (cherry picked from commit c34c7b1f3b2356a053bad7afa18383bfd9c79038)
    
  • 2d9d444a
    by Samuel Pitoiset at 2025-03-15T09:49:03+01:00
    radv: fix a GPU hang with inherited rendering and HiZ/HiS on GFX1201
    
    With secondary command buffers, inherited rendering can be used but
    it's basically impossible to know if the depth/stencil attachment
    enabled HiZ/HiS. But it's required to disable WALK_ALIGN8 to avoid
    GPU hangs.
    
    This assumes that HiZ/HiS is enabled for inherited rendering as long
    as a depth/stencil attachment is used. It's not the most optimal
    approach but it's not supposed to hurt either.
    
    This fixes a GPU hang with
    dEQP-VK.dynamic_rendering.primary_cmd_buff.basic.contents_secondary_cmdbuffers
    and friends.
    
    GFX1200 isn't affected because it doesn't support HiZ/HiS.
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33986>
    (cherry picked from commit d1a2ba57f9f8fe0ed87a7286605bda4a954abd71)
    
  • c420a349
    by Maíra Canal at 2025-03-15T09:49:03+01:00
    v3dv: don't overwrite the primary fd if it's already set
    
    If a valid primary file descriptor is already set (e.g. from vc4),
    don't overwrite it with -1.
    
    This prevents losing a valid primary fd and resolves issues arising
    when vc4 is the first node returned by `drmGetDevices2()` and v3d is
    the second.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12777
    Fixes: 188f1c6cbe7 ("v3dv: rewrite device identification")
    Signed-off-by: Maíra Canal <mcanal@igalia.com>
    Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33958>
    (cherry picked from commit 7775c79035e76f76a3500d6a9b88392efe08bae7)
    
  • 3be28b42
    by Faith Ekstrand at 2025-03-15T09:49:03+01:00
    vtn: Support cooperative matrices in OpConstantNull
    
    Cooperative matrix initializers are a single scalar value that gets
    broadcasted to the entire matrix.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12679
    Fixes: b98f87612bc1 ("spirv: Implement SPV_KHR_cooperative_matrix")
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33747>
    (cherry picked from commit 7c47a3d0f7a8180abb12f9cac7762320148abde3)
    
  • 090dbbc9
    by Sviatoslav Peleshko at 2025-03-15T09:49:03+01:00
    anv: Add full subgroups workaround for the shaders that use shared memory
    
    This workaround is similar to anv_assume_full_subgroups, but it applies
    to the shaders that use shared memory. If they rely on the implicit
    synchronization, and we choose a smaller group size than the
    (broken) shader expects, it will produce incorrect results.
    
    Cc: mesa-stable
    Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23408>
    (cherry picked from commit 369aec57046143d78295338e4fe96878de1a8668)
    
  • 22991d17
    by Sviatoslav Peleshko at 2025-03-15T09:49:03+01:00
    drirc: Apply assume_full_subgroups_with_shared_memory to Resident Evil 2
    
    The game uses a compute shader for occlusion culling. This shader lacks
    proper groupshared memory sync, and needs 32-wide subgroup to work
    correctly.
    
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7595
    Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23408>
    (cherry picked from commit bd45b738b7f0c576c19b1bb5589c3bf7969f8ce4)
    
  • e5f0fd56
    by Samuel Pitoiset at 2025-03-15T09:49:03+01:00
    radv/amdgpu: fix device deduplication
    
    To correctly deduplicate device inside the winsys, it should use the
    fd or amdgpu_device_handle. Using the allocated ac_drm_device as key
    is obviously broken.
    
    Not deduplicating devices breaks memory budget and a bunch of games
    were broken.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12686
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12775
    Fixes: a565f2994fe ("amd: move all uses of libdrm_amdgpu to ac_linux_drm")
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34005>
    (cherry picked from commit c6270978411609f52afb8c6a2219fcb94f9013bb)
    
  • 22ba3379
    by Samuel Pitoiset at 2025-03-15T09:49:03+01:00
    radv: update conformance version
    
    A lot of people (including me) misinterpreted the conformanceVersion
    field for so long. The Vulkan spec wasn't very clear either but it's
    going to be clarified soon.
    
    VkConformanceVersion is actually unrelated to the official CTS
    conformance process in Khronos. It just reports the latest CTS version
    that the driver can pass, not more.
    
    For GFX8+, RADV should be passing CTS 1.4.0.0 on all GPUs because we
    validated this CTS version recently for Vulkan 1.4.
    
    For GFX6-7, which only suppports Vulkan 1.3, RADV should also be
    passing CTS 1.4.0.0, because newer versions of the CTS can be used
    to validate a driver against an older version of the spec, so
    it's perfectly fine to report a higher CTS version than the Vulkan version.
    
    Newer CTS versions likely can't pass 100% due to a DGC bug that I still
    need to fix.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12799
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34018>
    (cherry picked from commit e519e0b9e6a4921aa9b3c75e17fd5b31062ea261)
    
  • 0be9c893
    by Georg Lehmann at 2025-03-15T09:49:03+01:00
    aco/gfx11.5: remove vinterp ddx/ddy path
    
    While the idea to take advantage of the higher throughput wasn't bad,
    the hardware wasn't design with this in mind and doesn't behave like expected
    with constant sources.
    
    Fixes: bee487df48b ("aco/gfx11.5+: use vinterp for fddx/fddy")
    Acked-by: Daniel Schürmann <daniel@schuermann.dev>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33969>
    (cherry picked from commit 3b5e537b092f486cddab99ae408e2eee8156f943)
    
  • 2d96b368
    by Lionel Landwerlin at 2025-03-15T09:49:04+01:00
    anv: fix non page aligned descriptor bindings on <Gfx12.0
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: ab7641b8dc ("anv: implement descriptor buffer binding")
    Reviewed-by: Ivan Briano <ivan.briano@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33911>
    (cherry picked from commit de2a65ade686a5720d1beaf570c9efb19fc1d09a)
    
  • 8620d4a4
    by John Anthony at 2025-03-15T09:49:04+01:00
    panvk: Avoid division by zero for vkCmdCopyQueryPoolResults
    
    Stride can be zero if there are less than two queries to copy.
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Fixes: 7755c41b3ef ("panvk/csf: Rework the occlusion query logic to avoid draw flushes")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34020>
    (cherry picked from commit 8a47ae456cbae85508ec8bff73c9ec0020edd552)
    
  • 9fb0403e
    by Dave Airlie at 2025-03-15T09:49:04+01:00
    radv/video: don't try and send events on UVD devices.
    
    This should fix some hangs on polaris when decode is forced on.
    
    Fixes: 95a980b61fbf4 ("radv/video: add event support for VCN4")
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34013>
    (cherry picked from commit 2e3b23539efb71ebbe2f920a6af011e5ca098da9)
    
  • 18fc1a4a
    by Faith Ekstrand at 2025-03-15T09:49:04+01:00
    egl/x11: Re-order an if statement
    
    Switch on kopper first so it's easier to do other, common things on the
    kopper path.
    
    Fixes: 8ade5588e39d ("zink: add kopper api")
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34015>
    (cherry picked from commit dc8714c5686dafd8a03e468c9e17ecadd18c4dd3)
    
  • 83a18330
    by Faith Ekstrand at 2025-03-15T09:49:04+01:00
    egl/kopper: Update the EGLSurface size after kopperSwapBuffers()
    
    Otherwise, the size of the EGLSurface and the drawable may get out of
    sync if kopper needs to re-create the swapchain at a different size.
    This can cause problems with things like eglSetDamageRegionKHR() where
    the core EGL code clamps them to the size in the EGLSurface.
    
    With Wayland, it's up to the client to choose a size and resize by
    creating a new EGLSurface with a different size.  Only on X11 can we
    get a resize side-band like this.
    
    Normally, without kopper, this goes the other direction where the X11
    EGL code will detect a surface size change in dri2_x11_query_surface()
    and it invalidates the drawable if they've changed, forcing
    re-allocation.  Kopper, however, works more like the DRI2 path where we
    just get handed buffers at some size decided by X11 and have to deal
    with them.  In the DRI2 path, the size is unconditionally updated by
    dri2_x11_get_buffers().  This is roughly equivalent, updating the size
    right after every call to kopperSwapBuffers().
    
    Fixes: 8ade5588e39d ("zink: add kopper api")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12797
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34015>
    (cherry picked from commit ad90dbabe4ba2b42a86687b1c0ca5e8ffc6ece4c)
    
  • 46d1ff07
    by Eric Engestrom at 2025-03-15T09:49:04+01:00
    meson: announce that clover is deprecated (slated for removal)
    
    See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19385;
    the timeline is not 100% decided yet, but let's warn users already.
    
    Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34021>
    (cherry picked from commit a0b457aca6cbe94d555ae75864a47bb6a16318a0)
    
  • ca58bc9d
    by Samuel Pitoiset at 2025-03-15T09:49:04+01:00
    aco: do not apply OMOD/CLAMP for pseudo scalar trans instrs
    
    This optimization seems broken because eg. v_s_log_f32 uses SGPRs
    for both the source and destination but applying OMOD seems to require
    VGPRs.
    
    This fixes a GPU hang when launching Enshrouded on GFX1201.
    
    No fossils db changes on GFX1201.
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34027>
    (cherry picked from commit f46830912e53f1f56910123b34df20714451605d)
    
  • 94a92219
    by David Rosca at 2025-03-15T09:49:04+01:00
    gallium/vl: Return YUV plane order for single plane formats
    
    The order only matters for multi plane formats, but we still need to
    return valid value for single plane formats.
    
    Fixes crash reported here: https://github.com/mpv-player/mpv/issues/15992
    
    Cc: mesa-stable
    Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33938>
    (cherry picked from commit 6f35d3768dc90b81dad60702f458fe027db93c33)
    
  • 249613cd
    by Patrick Lerda at 2025-03-15T09:49:04+01:00
    r600: fix cayman main non-deterministic behavior problem
    
    Cayman has a non-deterministic behavior issue which is
    visible with the test below (arb_shader_image_size).
    The tests fail randomly at the "fragment" test category.
    Anyway, if the "compute" category is removed, the same
    tests are working flawlessly.
    
    The "compute" part of the driver was interfering with the
    graphic pipeline. The culprit is the packet PKT3_DEALLOC_STATE
    which puts the gpu in an incorrect state to perform some
    graphic operations.
    
    This change fixes this problem by issuing a PKT3_CLEAR_STATE
    packet just after the PKT3_SURFACE_SYNC packet. As explained
    by d51dbe048af PKT3_DEALLOC_STATE is mandatory on cayman to
    avoid a gpu hang at the PKT3_SURFACE_SYNC stage.
    
    This correction makes tests like
    "spec@glsl-4.30@execution@built-in-functions@cs-.*" to pass
    in an utterly deterministic way without random failures.
    This change removes around 500 random failures for a
    "piglit run all".
    
    For instance, this issue is triggered on cayman with
    "piglit/bin/arb_shader_image_size-builtin -auto -fbo".
    
    Fixes: d51dbe048af ("r600g/compute: Emit DEALLOC_STATE on cayman after dispatching a compute shader.")
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33973>
    (cherry picked from commit 085cfc98cc07a756bf93d25440b265dd650a0505)
    
  • 3d600b2c
    by Lucas Stach at 2025-03-15T09:49:04+01:00
    etnaviv: rs: fix slow/fast clear transitions
    
    When a slow/fast/slow clear sequence is executed on a surface, the second
    slow clear will not regenerate the clear command if the clear value of the
    fast clear is the same as the one used for the second slow clear, as the
    current stored surface clear value is the same as the new clear value.
    The command generated on the first slow clear however may have used a
    different clear value, which is now submitted unchanged to the hardware on
    the second slow clear.
    
    Fix this by only generating the clear command if there is no valid one
    already. If we already have a valid clear command simply update the fill
    value in that command with the new clear value. This has some marginal
    overhead, but has been chosen over the alternative of adding more state by
    remembering the last slow clear value.
    
    Cc: mesa-stable
    Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
    Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34029>
    (cherry picked from commit fb0f9e6352251576f5aff76166b40ddb76c366ad)
    
  • 9bcdf5b8
    by Seán de Búrca at 2025-03-15T09:49:04+01:00
    rusticl/mem: don't create svm_pointers slice from null raw pointer
    
    std::slice::from_raw_parts requires that the slice pointer be non-null,
    even when the slice contains zero elements. Failing this invariant is
    undefined behavior.
    
    v2: reordered commits to allow cherry-picking bugfixes
    
    Reviewed-by: Karol Herbst <kherbst@redhat.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33989>
    (cherry picked from commit 5e365f167499cdca04fa8010dd7049ead41e204f)
    
  • c3f4bb2a
    by Matt Turner at 2025-03-15T09:49:04+01:00
    glsl: Add missing break
    
    Reported by clang's `-Wimplicit-fallthrough`.
    
    Fixes: 328c29d6007 ("mesa,glsl,gallium: add GL_OVR_multiview")
    Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34014>
    (cherry picked from commit 8d6deb40733f24373cbec0eafd3be3293e4928e4)
    
  • 267502f9
    by Lionel Landwerlin at 2025-03-15T09:49:04+01:00
    brw: fix spilling for Xe2+
    
    The problem occurs with a series of instructions build the subgroup
    invocation value :
    
    mov(8)          g23<1>UW        0x76543210V
    add(8)          g23.8<1>UW      g23<8,8,1>UW    0x0008UW
    add(16)         g23.16<1>UW     g23<16,16,1>UW  0x0010UW
    
    Our register spilling code operates on physical registers (64B on
    Xe2+) and using the brw_inst::is_partial_write() helper only considers
    32B registers. So the spiller doesn't see that the add(16) instruction
    is doing a partial write and ends up discarding the previous value.
    
    You can reproduce the issue by running a test like :
    
    INTEL_DEBUG=spill_fs ./deqp-vk -n dEQP-VK.compute.pipeline.cooperative_matrix.khr_a.subgroupscope.constant.uint8_uint8.buffer.rowmajor.linear
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: aa494cbacf ("brw: align spilling offsets to physical register sizes")
    Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33642>
    (cherry picked from commit c60180ba6333c6f6edcd2bd6a0166334082bc378)
    
  • 56b954a3
    by Lionel Landwerlin at 2025-03-15T09:49:04+01:00
    brw: ensure VUE header writes in HS/DS/GS stages
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12820
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34041>
    (cherry picked from commit 35df3925ca0fe5e78c24b12f34c6a1afce08ed7a)
    
  • 4d4568cb
    by Patrick Lerda at 2025-03-15T09:49:04+01:00
    r600: update the software fp64 support
    
    This change began by fixing an old regression related to the dceil
    functionality. This issue affected palm. Now, this change adjusts
    the software fp64 support to make it fully operational.
    
    This change was tested on palm and barts. This change fixes 561
    "piglit run all" tests. The khr_gl tests are fixed as well (243 tests).
    Here is a summary:
    spec/arb_gpu_shader_fp64/execution/built-in-functions/*
    spec/arb_gpu_shader_fp64/execution/fs-isnan-dvec: fail pass
    spec/arb_gpu_shader_fp64/execution/gs-isnan-dvec: fail pass
    spec/arb_gpu_shader_fp64/execution/vs-isnan-dvec: fail pass
    spec/glsl-4.00/execution/built-in-functions/*
    spec/glsl-4.10/execution/conversion/*
    khr-gl4[3-5]/compute_shader/fp64-case1: fail pass
    khr-gl4[0-5]/gpu_shader_fp64/builtin/*
    
    Fixes: aed6a39c10c3 ("glsl: Retire dround lowering.")
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33708>
    (cherry picked from commit 186fb5e73a07509059a8c9222f62dab03e9b2ce8)
    
  • e576d84f
    by Lucas Stach at 2025-03-15T09:49:04+01:00
    etnaviv: fix ETNA_MESA_DEBUG=no_early_z
    
    This feature bit has inverted polarity from most other feature bits:
    if the bit is present the driver should not use early Z. So the bit
    must be set when the debug option to disable early Z is enabled.
    
    Fixes: d600b45ccc97 ("etnaviv: Switch to etna_core APIs")
    Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
    Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34064>
    (cherry picked from commit 4608eef0a0ff183f56abfc7439a24671a68cf3fb)
    
  • 0c0f4de8
    by Samuel Pitoiset at 2025-03-15T09:49:05+01:00
    radv: emit a dummy PS state for noop FS on GFX12
    
    It seems the hardware requires a dummy PS state with a noop FS,
    otherwise it might just hang. This used to work just fine on older
    gens.
    
    Note that RadeonSI refuses to draw if VS or PS is missing and AMDVLK
    seems to also always emit this state. So, this might be a bug that AMD
    didn't encounter at all.
    
    This fixes a GPU hang during loading with Ghostwire: Tokyo.
    
    Backport-to: 25.0
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34070>
    (cherry picked from commit 1e4cfd9dfafafd0e0f43d36f6833852e7a414893)
    
  • d00144c8
    by Georg Lehmann at 2025-03-15T09:49:05+01:00
    aco/ra: disallow vcc definitions for pseudo scalar trans instrs
    
    Foz-DB GFX1201:
    Totals from 30 (0.04% of 79600) affected shaders:
    Instrs: 58843 -> 58820 (-0.04%); split: -0.10%, +0.06%
    CodeSize: 302228 -> 301944 (-0.09%); split: -0.13%, +0.04%
    Latency: 204566 -> 204432 (-0.07%); split: -0.09%, +0.02%
    InvThroughput: 136918 -> 136919 (+0.00%); split: -0.00%, +0.00%
    SClause: 1241 -> 1249 (+0.64%); split: -0.56%, +1.21%
    
    Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34006>
    (cherry picked from commit d1dca2694153a4e549fc1713716ffb4545f708e0)
    
  • 54ee9cb3
    by Karol Herbst at 2025-03-15T09:49:05+01:00
    nir/serialize: fix decoding of is_return and is_uniform
    
    Fixes: 3321a56d1de ("nir: Serialize all parameter attributes")
    Fixes: 26cbb6b9335 ("nir: Add parameter divergence info")
    
    Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34052>
    (cherry picked from commit 3a9954c1170db16677a913303adf7fa90230ac9d)
    
  • 43cab945
    by Mike Blumenkrantz at 2025-03-15T09:49:05+01:00
    zink: fix refcounting of zink_surface objects
    
    this was previously a no-op because the pointers were identical,
    leading to an extra unref in check_framebuffer_surface_mutable()
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34077>
    (cherry picked from commit f5c66e2d4abf7b6720b47a55ed5d5a291691cc52)
    
  • 63e1e2c9
    by Ganesh Belgur Ramachandra at 2025-03-15T09:49:05+01:00
    amd: use 128B compression for scanout images when drm.minor <63
    
    Fixes: 8328e575 ("ac/surface/gfx12: enable DCC 256B compressed blocks and reorder modifiers")
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33702>
    (cherry picked from commit ba80a11b69c52444e6e2946eb340dd61b48cd986)
    
  • 9d85e7ed
    by Bas Nieuwenhuizen at 2025-03-15T09:49:05+01:00
    radv: Move support check out of winsys.
    
    To get the right error code. Mostly shouldn't be winsys dependent
    anyway, outside of the idea that if we explicitly emulate a device
    we should just assume th euser knows what they're doing.
    
    Fixes: c942d957b00 ("radv: fail to initialize when the AMD GPU generation is unsupported")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12792
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33964>
    (cherry picked from commit 61feea6954a7526836ccbd30c657e6afc11fb4f5)
    
  • 63ec8e94
    by Aaron Ruby at 2025-03-20T14:26:05+01:00
    gfxstream: Downgrade log severity when enabling params in LinuxVirtGpu
    
    Reviewed-By: Gurchetan Singh <gurchetansingh@google.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33944>
    (cherry picked from commit 9447de5dc4921faf9de891b6698938fb58c1753a)
    
  • 0c1ea399
    by Eric Engestrom at 2025-03-20T14:32:27+01:00
    docs: add release notes for 25.0.2
    
  • 06631a88
    by Eric Engestrom at 2025-03-20T14:32:27+01:00
    VERSION: bump for 25.0.2
    

88 changed files:

The diff was not included because it is too large.

Reply to: