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

[Git][xorg-team/lib/mesa][debian-unstable] 105 commits: docs/relnotes: add sha256sum for 23.1.3



Title: GitLab

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

Commits:

  • 1b830eb5
    by Eric Engestrom at 2023-06-22T17:54:47+01:00
    docs/relnotes: add sha256sum for 23.1.3
    
  • b99d3dd3
    by Lionel Landwerlin at 2023-06-24T14:09:40+01:00
    anv: limit ANV_PIPE_RENDER_TARGET_BUFFER_WRITES to blorp operations using 3D
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Rohan Garg <rohan.garg@intel.com>
    Reviewed-by: Ivan Briano <ivan.briano@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23074>
    (cherry-picked from commit 455a13fb7f170b0f4a55375ec3a6f006fc69f078)
    
  • ed621992
    by Lionel Landwerlin at 2023-06-24T14:09:40+01:00
    anv: track buffer writes from shaders for query results writes
    
    In the following sequence :
       - write buffer B with a shader
       - barrier on buffer from shader-write to transfer
       - vkCmdCopyQueryPoolResults to buffer B
    
    The barrier should take care of ordering things between the shader
    writes and vkCmdCopyQueryPoolResults.
    
    The problem is that vkCmdCopyQueryPoolResults runs on the command
    streamer and that is not coherent or synchronized in the same way as
    shaders.
    
    This change marks the barrier has potentially containing pending
    buffer writes for queries so that we can insert the necessary flush
    for vkCmdCopyQueryPoolResults later.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9013
    Cc: mesa-stable
    Reviewed-by: Rohan Garg <rohan.garg@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23675>
    (cherry picked from commit cab849562517631db7303f0bdf08d21e60f59ad8)
    
  • 13a309b9
    by Eric Engestrom at 2023-06-24T14:09:52+01:00
    .pick_status.json: Update to 337908440eefc95abef9fa4464e29d299072df73
    
  • 5f3317ec
    by Eric Engestrom at 2023-06-27T13:51:38+01:00
    .pick_status.json: Update to f9e6d35f65c6c5913d54ba5306af391a8701a68a
    
  • 9d31e05b
    by Karmjit Mahil at 2023-06-27T13:52:23+01:00
    pvr: Fix seg fault on empty descriptor set
    
    Vulkan allows empty descriptor sets to be created. When we setup
    the descriptor set addresses table we fill in the address of the
    `bo` for each valid/currently bound desc set. For empty desc sets
    there is no `bo` which was causing a seg fault. Now skip them,
    leaving their address set to `~0`.
    
    Reported-by: Simon Perretta <simon.perretta@imgtec.com>
    Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
    Reviewed-by: Frank Binns <frank.binns@imgtec.com>
    Fixes: ce67f5ac944 ("pvr: Write descriptor set addrs table dev addr into shareds")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23692>
    (cherry picked from commit 822dc384b1364a4a2a67c68a20a00bf324e40380)
    
  • 753abf8b
    by SoroushIMG at 2023-06-27T13:52:24+01:00
    pvr: Fix barrier insertion on merged subpasses
    
    The driver can merge subpasses within a render pass into a single
    hw render. While doing so it makes the assumption that the subpasses
    in an hw render will all be submitted in a single job.
    
    On vkCmdPipelineBarrier() the driver was previously incorrectly
    inserting an event sub-cmd on a merged subpass, breaking that
    assumption leading to incorrect values for input attachments.
    
    Signed-off-by: Soroush Kashani <soroush.kashani@imgtec.com>
    Reviewed-by: Frank Binns <frank.binns@imgtec.com>
    Fixes: 6d672e033683 ("pvr: Add initial vkCmdPipelineBarrier skeleton.")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23693>
    (cherry picked from commit 4071b8e7f32f1801f7e578ce580b22d8ec7b0332)
    
  • b4cd2c34
    by Karmjit Mahil at 2023-06-27T13:53:46+01:00
    pvr: Fix dynamic offset patching
    
    Previously the set of dynamic offsets were being reused per each
    binding. That's now fixed, by using an offset to determine where
    each binding's dynamic offsets reside.
    
    Tests fixed:
      dEQP-VK.binding_model.descriptor_copy.{compute,graphics}
        .{uniform,storage}_buffer_dynamic_0
    
    Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
    Reviewed-by: Frank Binns <frank.binns@imgtec.com>
    Fixes: aa791961a82e ("pvr: Add support for dynamic buffers descriptors")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23587>
    (cherry picked from commit b902fb2e14e56bdf914eb175489d3b53ff6fcda0)
    
  • 552ac035
    by Eric Engestrom at 2023-06-27T13:53:58+01:00
    asahi: drop unnecessary DRM_FORMAT_MOD_{LINEAR,INVALID} fallbacks
    
    Since afe134a49c ("asahi: Drop macOS backend"), `drm_fourcc.h` is
    unconditionally included, meaning these defines are now dead code.
    
    Fixes: afe134a49c5ef79ca612 ("asahi: Drop macOS backend")
    Signed-off-by: Eric Engestrom <eric@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23773>
    (cherry picked from commit 63f44951ac4b4055b4137f57ef10c5fb078bf35e)
    
  • 16964024
    by Mike Blumenkrantz at 2023-06-27T13:54:01+01:00
    nir/lower_tex: ignore saturate for txf ops
    
    saturate is used for GL_CLAMP emulation, and GL_CLAMP cannot be used
    with txf
    
    ref #9226
    
    cc: mesa-stable
    
    Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23750>
    (cherry picked from commit 402ae3b132e026d681cb5e4b8b44d6504998c2b5)
    
  • be04c20a
    by Yonggang Luo at 2023-06-27T13:54:02+01:00
    mapi: Fixes check_table.cpp for DrawArraysInstancedARB and DrawElementsInstancedARB
    
    The compile error when compiled with "-Dglx=xlib -D shared-glapi=disabled":
    check_table.cpp:1133:37: error: ‘struct _glapi_table’ has no member named ‘DrawArraysInstancedARB’; did you mean ‘DrawArraysInstanced’?
     1133 |    { "glDrawArraysInstancedARB", _O(DrawArraysInstancedARB) },
    
    Fixes: 5679ef99b82 ("glapi: remove EXT and ARB suffixes from Draw functions")
    
    Reviewed-by: Eric Engestrom <eric@igalia.com>
    Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23793>
    (cherry picked from commit 7af2c45947d47f72600bdf2b393faffa290f9cc7)
    
  • 249c76e2
    by Lionel Landwerlin at 2023-06-27T13:54:03+01:00
    anv: align buffers to a cache line
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9217
    Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23794>
    (cherry picked from commit 8509ebb68a022bd1b0629c3362638d217ad0c477)
    
  • b2c94821
    by Yiwei Zhang at 2023-06-27T13:54:04+01:00
    venus: suballocate feedback slot with feedback buffer alignment
    
    Venus sync feedback design relies on concurrent host device resource
    access. To avoid device flush overwriting host writes, we must
    suballocate the slots with a minimum size of the buffer alignment.
    
    Cc: mesa-stable
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23633>
    (cherry picked from commit 2f729ff6aaedcc3f4584830c2f88da2402b76ce7)
    
  • d93ab514
    by Lina Versace at 2023-06-27T13:54:05+01:00
    venus: Fix detection of push descriptor set
    
    - Fix null deref. VkPipelineLayoutCreateInfo::pSetLayouts is allowed to
      contain VK_NULL_HANDLE.
    - The loop 'break' was misplaced.
    
    Fixes crash in
    dEQP-VK.pipeline.pipeline_library.graphics_library.fast.0_00_11_11 after
    VK_EXT_graphics_pipeline_library is enabled in a later patch.
    
    Fixes: 91966f2eff1 ("venus: extend lifetime of push descriptor set layout")
    Signed-off-by: Lina Versace <linyaa@google.com>
    Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
    Reviewed-by: Dawn Han <dawnhan@google.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23810>
    (cherry picked from commit 98c8d7b7cfbe7dc66a87bbe8fda56d855053d7cd)
    
  • 004e527f
    by Timothy Arceri at 2023-06-27T13:54:06+01:00
    glsl: call nir_opt_find_array_copies() when linking
    
    shader-db results IRIS (BDW):
    
    total instructions in shared programs: 17883388 -> 17859658 (-0.13%)
    instructions in affected programs: 48100 -> 24370 (-49.33%)
    helped: 6
    HURT: 0
    helped stats (abs) min: 1450 max: 7028 x̄: 3955.00 x̃: 3387
    helped stats (rel) min: 40.31% max: 51.92% x̄: 47.07% x̃: 48.96%
    95% mean confidence interval for instructions value: -6613.28 -1296.72
    95% mean confidence interval for instructions %-change: -52.73% -41.40%
    Instructions are helped.
    
    total cycles in shared programs: 866961809 -> 863521521 (-0.40%)
    cycles in affected programs: 9179396 -> 5739108 (-37.48%)
    helped: 6
    HURT: 0
    helped stats (abs) min: 252584 max: 972430 x̄: 573381.33 x̃: 495130
    helped stats (rel) min: 21.80% max: 48.65% x̄: 35.01% x̃: 34.58%
    95% mean confidence interval for cycles value: -917157.00 -229605.67
    95% mean confidence interval for cycles %-change: -47.61% -22.40%
    Cycles are helped.
    
    total spills in shared programs: 20417 -> 15521 (-23.98%)
    spills in affected programs: 6966 -> 2070 (-70.28%)
    helped: 6
    HURT: 0
    
    total fills in shared programs: 25151 -> 21005 (-16.48%)
    fills in affected programs: 4374 -> 228 (-94.79%)
    helped: 6
    HURT: 0
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9055
    Fixes: d75a36a9eeb1 ("glsl: remove do_copy_propagation_elements() optimisation pass")
    
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23737>
    (cherry picked from commit d336bc39260efc1e47bd3e96061d78bd4d0ed8e8)
    
  • 4a288b1d
    by Hyunjun Ko at 2023-06-27T13:54:07+01:00
    anv/video: fix to set U/V offset correctly.
    
    Fixes: 98c58a16ef1a ("anv: add initial video decode support for h264.")
    
    Closes: mesa/mesa#9227
    
    Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23819>
    (cherry picked from commit 23d4e21d835975110e96cd7dface422ef043374f)
    
  • 2ac642c5
    by Gert Wollny at 2023-06-27T13:54:08+01:00
    r600/sfn: Don't clear clear group flag on vec4 that comes from TEX or FETCH
    
    If we consider clearing the group flag of a vec4 register that is used as
    source for some instruction we have to take into account that the parent
    of the register element may also be part of a group in the parent instruction.
    In this case we must not clear the group flag.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9118
    
    Fixes:  f3415cb26a (r600/sfn: copy propagate register load chains)
    
    Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23813>
    (cherry picked from commit 34163e19f7a64621a7995b92fa2f79a0f933393d)
    
  • 034fc760
    by Samuel Pitoiset at 2023-06-27T14:05:22+01:00
    radv/amdgpu: fix dumping cs with RADV_DEBUG=noibs
    
    The ib_buffer is NULL now.
    
    Fixes: 50e6b16855d ("radv/amdgpu: Use fallback submit for queues that can't use IBs.")
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23646>
    (cherry picked from commit 8af705a856793313c6dfcc5d46d7b2e37828c442)
    
  • e1e7e7bf
    by Eric Engestrom at 2023-06-27T14:14:21+01:00
    .pick_status.json: Mark af895692b3b52599e456f14e08a3beaa32b5a4c8 as denominated
    
  • 1e149d37
    by Corentin Noël at 2023-06-27T14:14:36+01:00
    compiler: Allow the explicit_stride of aoa types to be zero
    
    The explicit stride doesn't have to be defined to aoa and therefore can be
    zero in some cases, like in arrays of arrays of uniform blocks.
    
    Resolves crash with spec@arb_gl_spirv@execution@ubo@aoa-2.shader_test piglit test for virgl.
    
    Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    Acked-by: Gert Wollny <gert.wollny@collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23648>
    (cherry picked from commit bc2828a436ada4b1264cb92fe2d50c8b833d83be)
    
  • 5300cff1
    by Alyssa Rosenzweig at 2023-06-27T14:14:39+01:00
    nir/lower_bool_to_int32: Fix progress reporting
    
    If we only lower parameters, that's still progress. Technically.
    
    Fixes: 6a29cb2654f ("nir/lower_bool_to_int32: add support for lowering functions.")
    Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23804>
    (cherry picked from commit 5c8f21412f240c5197ee12293eedfba7307627e1)
    
  • b98eb78f
    by Vinson Lee at 2023-06-28T16:07:44+01:00
    tu: Fix missing unlock
    
    Fix defect reported by Coverity Scan.
    
    Missing unlock (LOCK)
    missing_unlock: Returning without unlocking dev->vma_mutex.
    
    Fixes: c20139c2922 ("tu: Enable bufferDeviceAddressCaptureReplay")
    Signed-off-by: Vinson Lee <vlee@freedesktop.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23490>
    (cherry picked from commit 46764815ac39dc2ea22417963d5b5be5e420bee1)
    
  • 4ddc83be
    by Rob Clark at 2023-06-28T16:08:11+01:00
    freedreno/drm: Don't try to export suballoc bo
    
    Suballoc BOs don't have a real handle, so attempting to dmabuf export
    won't work.  Likewise for handle or flink-name export.
    
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23324>
    (cherry picked from commit 7cc8185ca32c94b2ad1eeb770ef16145929963d4)
    
  • a88f2eab
    by Rob Clark at 2023-06-28T16:08:16+01:00
    freedreno: Handle export error handling
    
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23324>
    (cherry picked from commit 221a6986ba8aeceb6f7dd5a015e3133fd7098b49)
    
  • 37cc02d2
    by Rob Clark at 2023-06-28T16:08:22+01:00
    freedreno: Add aux-context support
    
    A global aux-context can be created on-demand for cases where we need to
    (for example) blit a resource when we only have a screen ptr.
    
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23324>
    (cherry picked from commit 75193262fd62376947f2f997609c595efae5ceed)
    
  • 689746c8
    by Rob Clark at 2023-06-28T16:08:29+01:00
    freedreno: Reallocate on unshared export
    
    If we need to export a handle on a resource which was not originally
    allocated with PIPE_BIND_SHARED, then re-allocate with shared flag and
    try again.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9110
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23324>
    (cherry picked from commit b94d35f74dd97981410eae672ca020ace1c91e7b)
    
  • 879fdb8e
    by Eric Engestrom at 2023-06-28T18:02:35+01:00
    .pick_status.json: Update to e67337bebf623e67d119f48c2d24f3b831482ede
    
  • 952380c9
    by Francisco Jerez at 2023-06-28T18:04:06+01:00
    intel/gfx12.5: Enable L3 partial write merging for compressible surfaces among other cases.
    
    This enables L3 partial write merging for a number of cases that seem
    to be getting accidentally disabled by the kernel, which was causing a
    serious performance bottleneck on DG2 and MTL platforms.  The
    "Compressible Partial Write Merge Enable", "Coherent Partial Write
    Merge Enable" and "Cross-Tile Partial Write Merge Enable" bits in
    L3SQCREG5 were expected to be enabled by default (and confusingly,
    they even read off as enabled if you ran 'intel_reg read 0xb158' on an
    idle system), but they are getting clobbered during 3D context
    initialization by an i915 workaround.
    
    Enabling L3 partial write merging of compressible surfaces in
    particular seems to increase rendering fillrate by over 3x in some
    cases (e.g. the
    "VulkanFillRate/FillRateGPU/resolution:1[0-3]/format:*/blend:0"
    fillrate-bound microbenchmarks).  Significant improvements can also be
    reproduced in most real-world workloads we've tested so far,
    e.g. Counter Strike GO improves by ~11%, Shadow Of the Tomb Raider
    improves by ~5.5%, and AztecRuins-VK improves by ~6.5% on DG2-512 --
    Thanks a lot to Caleb Callaway for these figures.  No regressions have
    been observed so far.
    
    Even though this patch might strike as surprisingly simple for such a
    large payoff, it's the result of Felix DeGrood and I trying to
    root-cause the rendering performance gap of DG2 on Linux vs Windows on
    and off during the last year, and some of the OA statistics captured
    by Felix early this month were greatly helpful for me to connect the
    last few dots, so Felix deserves a big chunk of the credit for this
    work.
    
    Cc: mesa-stable
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23783>
    (cherry picked from commit 427fee3507973dee8c85fd684f0a704928c9251c)
    
  • dbb2b8df
    by Kenneth Graunke at 2023-06-28T18:09:26+01:00
    intel: Initialize FF_MODE2 on all Gfx12 platforms
    
    On Alchemist, the FF_MODE2 documentation says that we must set the
    FF_MODE2 timer values for GS and HS to 224.  The hardware performance
    tuning guide also recommends setting the TDS timer to 4.
    
    On Tigerlake, i915 applies workarounds to set the GS timer to 224
    (failing to do so can cause HS/DS unit hangs), and the TDS timer to 4
    (for performance).  It doesn't currently apply a HS timer there, and
    I'm not sure if it's strictly necessary, but given that Alchemist
    needed it, and the other two settings matched, let's assume that it
    ought to match as well.
    
    Unfortunately, there has been a bug in the i915 workarounds
    infrastructure for non-masked context registers where writing one
    field of the register zeroes out all the others.  So, I believe the
    Tigerlake TDS timer value of 4 isn't being applied correctly there,
    though the register is also not readable on that platform which
    makes it hard to verify.  So, this may also speed up tessellation.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9233
    Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23839>
    (cherry picked from commit 1b3669a1ed320549a09185700e7e56086fc1064a)
    
  • c6f3c29a
    by Matt Turner at 2023-06-28T18:23:19+01:00
    anv: Pipe anv_physical_device to anv_get_image_format_features2
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23776>
    (cherry picked from commit 727335045dd7bba6d835cb0a3b9cad2dfc3171f9)
    
  • 455c266e
    by Matt Turner at 2023-06-28T18:25:17+01:00
    anv: Only expose video decode bits with KHR_video_decode_queue
    
    This fixes dEQP-VK.api.info.format_properties.g8_b8r8_2plane_420_unorm
    in combination with the CTS fix from
    https://gerrit.khronos.org/c/vk-gl-cts/+/12191
    
    Fixes: 93614817806 ("anv: add video format features for the one supported video output format")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8263
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23776>
    (cherry picked from commit 561cce32f142d65364d9e48c7469ba9e605f5f21)
    
  • a59ae56a
    by Samuel Pitoiset at 2023-06-28T18:25:55+01:00
    radv/amdgpu: skip adding per VM BOs for sparse during CS BO list build
    
    This should be similar but it will help for re-introducing
    OP_MAP/ON_UNMAP instead of OP_REPLACE.
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23741>
    (cherry picked from commit 51caece74cd54e99a5f89521e8feacd894781ca2)
    
  • 84d40dcf
    by Samuel Pitoiset at 2023-06-28T18:28:53+01:00
    radv/amdgpu: workaround a kernel bug when replacing sparse mappings
    
    AMDGPU has a bug when clearing mappings for BOs that are always valid
    in VM with OP_REPLACE.
    
    See https://lists.freedesktop.org/archives/amd-gfx/2023-June/094648.html
    
    The current workaround is to re-use OP_MAP/OP_UNMAP until all stable
    kernels have the fix.
    
    This partially reverts "radv/winsys: update sparse mappings with
    OP_REPLACE instead of OP_MAP/OP_UNMAP".
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23741>
    (cherry picked from commit 9b00867327c2b266fcdebcef8bc7e7497eaab06b)
    
  • 836d642c
    by Lionel Landwerlin at 2023-06-28T18:30:05+01:00
    anv: fix utrace batch allocation
    
    The introduction of a workaround adding lots of MI_NOOPs broke our
    computation.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: b9aa66d5d0 ("anv: disable preemption for 3DPRIMITIVE during streamout")
    Reviewed-by: Felix DeGrood <felix.j.degrood@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23792>
    (cherry picked from commit a13ac83f1b95ba3829f1f39ec932df8ddd8733de)
    
  • cee098a3
    by Eric Engestrom at 2023-07-11T12:50:29+01:00
    .pick_status.json: Update to ba0ceb3be33766e2d96d50be6827e709c25f57dc
    
  • e6c4d6da
    by Iago Toral Quiroga at 2023-07-11T12:50:35+01:00
    broadcom/compiler: don't leak v3d_compile when finding a new best strategy
    
    If we had selected a best strategy and find an even better one we need to
    make sure we free the previous one.
    
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24001>
    (cherry picked from commit be91133f8767cd37325403f599038a5841370f68)
    
  • f5b693d7
    by Eric Engestrom at 2023-07-15T22:46:31+01:00
    .pick_status.json: Update to 9bcdc45ee7e8c4ca0dbb18ba16077d474d5ebb31
    
  • 082154ca
    by Corentin Noël at 2023-07-15T22:47:54+01:00
    nir/split_64bit_vec3_and_vec4: Use the right number of components
    
    Always make sure to correctly deref and store a 64bits variable
    from the right number of components.
    
    This fixes the `spec@arb_enhanced_layouts@matching_fp64_types_`
    piglit tests for virgl.
    
    Corrects this validation issue:
    ```
    	decl_var  INTERP_MODE_FLAT dvec2[] var_7@2
    	decl_var  INTERP_MODE_FLAT dvec2[] var_7@3
    ...
    	vec1 32 ssa_302 = deref_var &var_7@2 (function_temp dvec2[])
    	vec1 32 ssa_303 = deref_var &var_7@3 (function_temp dvec2[])
    	vec1 32 ssa_304 = deref_array &(*ssa_302)[ssa_301] (function_temp dvec2) /* &var_7@2[ssa_301] */
    	vec1 32 ssa_305 = deref_array &(*ssa_303)[ssa_301] (function_temp dvec2) /* &var_7@3[ssa_301] */
    	vec1 64 ssa_306 = mov ssa_110.z
    	intrinsic store_deref (ssa_305, ssa_306) (wrmask=x, access=0)
    error: instr->num_components == glsl_get_vector_elements(dst->type) (../src/compiler/nir/nir_validate.c:632)
    
    	vec4 64 ssa_111 = vec4 ssa_14, ssa_13, ssa_12, ssa_109
    	vec1 32 ssa_307 = load_const (0x00000000 = 0.000000)
    	vec1 32 ssa_308 = iadd ssa_307, ssa_61
    	vec1 32 ssa_309 = deref_var &var_7@2 (function_temp dvec2[])
    	vec1 32 ssa_310 = deref_var &var_7@3 (function_temp dvec2[])
    	vec1 32 ssa_311 = deref_array &(*ssa_309)[ssa_308] (function_temp dvec2) /* &var_7@2[ssa_308] */
    	vec1 32 ssa_312 = deref_array &(*ssa_310)[ssa_308] (function_temp dvec2) /* &var_7@3[ssa_308] */
    	vec1 64 ssa_313 = mov ssa_111.w
    	intrinsic store_deref (ssa_312, ssa_313) (wrmask=, access=0)
    error: (nir_intrinsic_write_mask(instr) & ~component_mask) == 0 (../src/compiler/nir/nir_validate.c:803)
    ```
    
    Fixes: 496fd59d711b9a0744878918caeeaafb961e3deb (add pass to split 64 bit vec3/4 variable access)
    Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
    Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23880>
    (cherry picked from commit a8d669b593122a91c6ba2fefbb7ab308c7477300)
    
  • 62537eec
    by Patrick Lerda at 2023-07-15T22:47:56+01:00
    util/blitter: revert util_blitter_clear_buffer()
    
    The previous change was creating a regression.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9252
    Fixes: 23c003b88c54 ("util/blitter: fix util_blitter_clear_buffer() refcnt imbalance")
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23923>
    (cherry picked from commit 9ca1bb3cf8f2f4d9378ceb8ae39e6f853fb900b0)
    
  • aa92db5e
    by Juston Li at 2023-07-15T22:49:50+01:00
    radv: fix incorrect size for primitives generated query
    
    Primitives generated queries write 1 integer, the primitives-generated
    count that is incremented every time a primitive emitted to that stream
    reaches the transform feedback stage.
    
    Fixes: 1ebf463a5a6 ("radv: implement VK_EXT_primitives_generated_query")
    Signed-off-by: Juston Li <justonli@google.com>
    Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
    Reviewed-by: Joshua Ashton <joshua@froggi.es>
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23915>
    (cherry picked from commit 33ee59af1def0dc2c46051d160cb39f940f544ab)
    
  • 6d84d379
    by Mike Blumenkrantz at 2023-07-15T22:49:53+01:00
    zink: fix assert for inline uniform invalidation with generated gs bound
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23803>
    (cherry picked from commit a30379488e27865a380ae9eecc41e3ea0b476130)
    
  • ce554c88
    by Mike Blumenkrantz at 2023-07-15T22:49:54+01:00
    zink: fix unbinding generated gs on real gs bind
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23803>
    (cherry picked from commit 041591d972d022810afa89590375a33d8e5dcd35)
    
  • cc995712
    by Mike Blumenkrantz at 2023-07-15T22:49:54+01:00
    zink: get new bda when rebinding invalidated buffers
    
    this otherwise yields a broken descriptor
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23803>
    (cherry picked from commit d2a7ddf066a7f8c69f6e5df50e34736f146bd1f4)
    
  • 78ba499a
    by Dave Airlie at 2023-07-15T22:49:55+01:00
    lavapipe: check sampler pointer before deref
    
    This fixes the vulkan samples deferred demo from crashing in here.
    
    Cc: mesa-stable
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23542>
    (cherry picked from commit e385913c21d8c85eab5127a466bedb6b99338519)
    
  • 9d6698fe
    by Timur Kristóf at 2023-07-15T22:49:56+01:00
    ac/nir/ngg: Call nir_convert_to_lcssa before divergence analysis.
    
    I've recently learned that this is necessary to get
    correct results from divergence analysis.
    
    No Fossil DB stats changes on GFX10.3.
    
    Note, when backporting this patch to stable, make sure
    the call to nir_convert_to_lcssa is before nir_divergence_analysis,
    which may be located in a different place in the stable branch.
    
    Cc: mesa-stable
    Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23946>
    (cherry picked from commit ddeabcc19b022c1137ec41701dc819ef446fa717)
    
  • 99f9fa03
    by Konstantin Seurer at 2023-07-15T22:49:57+01:00
    gallivm: Clamp the texel buffer size
    
    Fixes arb_texture_buffer_object-texture-buffer-size-clamp.
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22828>
    (cherry picked from commit 7d4135ac10601f0f6efb44cc0b0b7cb77983bdad)
    
  • 29d3034e
    by Mike Blumenkrantz at 2023-07-15T22:49:58+01:00
    zink: do initial program unref during program creation
    
    this ensures that programs are never created with more than $num_shaders
    refs, which is otherwise not necessarily a bug but can lead to bugs
    
    Fixes: a0e69e7601a ("zink: split out first-time shader module creation")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23888>
    (cherry picked from commit 84bb6078f44a8518bd7080ae2362ae1a8a6383c8)
    
  • 182761d4
    by Mike Blumenkrantz at 2023-07-15T22:52:35+01:00
    zink: fix separate shader program refcounting
    
    this fixes the refcount for the separate shader program to not have a leaked ref
    and then fixes the owned program to have the expected number of refs
    
    this happened to work some of the time before because there was an arbitrary unref
    in replace_separable_prog(), but this shouldn't have been necessary
    
    Fixes: e3b746e3a31 ("zink: use GPL to handle (simple) separate shader objects")
    
    fixes #9274
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23888>
    (cherry picked from commit 4e380616430ce000bc4454f137265ec6e65b6afb)
    
  • 981aeaba
    by Alyssa Rosenzweig at 2023-07-15T22:52:36+01:00
    pan/mdg: Fix temp count calculation
    
    1. Always calculate when asked. This is the sort of optimization that just
       introduces bugs. Like one I hit when shuffling register indices around with
       the register access changes.
    
    2. Ask before using in RA.
    
    3. Account for precoloured blend inputs.
    
    Small shader-db hit, didn't investigate too much.
    
       total instructions in shared programs: 1518017 -> 1518168 (<.01%)
       instructions in affected programs: 2895 -> 3046 (5.22%)
       helped: 0
       HURT: 24
       Instructions are HURT.
    
       total bundles in shared programs: 646756 -> 646782 (<.01%)
       bundles in affected programs: 1119 -> 1145 (2.32%)
       helped: 1
       HURT: 19
       Bundles are HURT.
    
       total quadwords in shared programs: 1133694 -> 1133728 (<.01%)
       quadwords in affected programs: 1736 -> 1770 (1.96%)
       helped: 0
       HURT: 20
       Quadwords are HURT.
    
       total registers in shared programs: 90596 -> 90612 (0.02%)
       registers in affected programs: 108 -> 124 (14.81%)
       helped: 0
       HURT: 16
       Registers are HURT.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Cc: mesa-stable
    Reviewed-by: Italo Nicola <italonicola@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23769>
    (cherry picked from commit 23010acc10a344297c1f5791487fb60e42d0bc3e)
    
  • 5398b134
    by Dave Airlie at 2023-07-15T22:52:37+01:00
    draw/gs: handle extra shader outputs in geometry.
    
    When geometry shader is used with unfilled lines and front face,
    we don't handle the extra shader output.
    
    Instead of taking the output from the gs, ask draw for the total
    which should give the correct answer.
    
    Fixes a test program attached to:
    https://gitlab.freedesktop.org/mesa/mesa/-/issues/8644
    
    Reviewed-by: Brian Paul <brianp@vmware.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23943>
    (cherry picked from commit 384c8677f590df290c442b378b077fe8e8c365b9)
    
  • fa3baf13
    by Eric Engestrom at 2023-07-15T22:52:38+01:00
    util/disk_cache: fix ~/.cache/ permissions
    
    XDG Base Dir spec [1] says:
    > If, when attempting to write a file, the destination directory is
    > non-existent an attempt should be made to create it with permission
    > `0700`. If the destination directory exists already the permissions
    > should not be changed.
    
    [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4103
    Fixes: 87ab26b2ab35a29d446a ("glsl: Add initial functions to implement an on-disk cache")
    Signed-off-by: Eric Engestrom <eric@igalia.com>
    Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23952>
    (cherry picked from commit e32cb99dcb9ccb96965b314a3e9257113ad31c81)
    
  • 44b0a656
    by Shan-Min Chao at 2023-07-15T22:52:39+01:00
    tu/kgsl: Fix memory overwrite with vkFlushMappedMemoryRanges when more than 1 range
    
    Fixes: 5a594109623fff43fcd3b874b160c711e81bf55d ("turnip: add cached and cached-coherent memory types")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23504>
    (cherry picked from commit ece34ec12763068f5a71cd5631dff9d004ba1d99)
    
  • e4dd65fc
    by Konstantin Seurer at 2023-07-15T23:00:31+01:00
    nir/opt_dead_cf: Handle if statements ending in a jump correctly
    
    If a then/else block ends in a jump, the phi nodes do not necessarily
    have to reference the always taken branch because they are dead code.
    Avoid crashing in this case by only rewriting phis, if the block does
    not end in a jump.
    
    cc: mesa-stable
    
    Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23150>
    (cherry picked from commit e379b9ad8c37edb4a583aefa876ab5f11a36b572)
    
  • 5217a77d
    by José Roberto de Souza at 2023-07-15T23:00:48+01:00
    anv: Fix compute maximum number of threads value
    
    There is no mention in spec about subtract one of the number of
    threads, also Iris and blorp code don't subtract.
    
    Alchemist PRMs: Volume 2a: Command Reference: Instructions: CFE_STATE: Maximum Number of Threads:
    	Normally set to the maximum number of threads: (# EUs) * (# threads/EU)
    
    Cc: mesa-stable
    Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
    Reviewed-by: Rohan Garg <rohan.garg@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23973>
    (cherry picked from commit c142736f52f537fb0dcef959b1a6bc2ac2e8335e)
    
  • 8841b3ab
    by Janne Grunau at 2023-07-16T14:18:22+01:00
    st/mesa: Set gl_config.floatMode based on color_format
    
    Sets the float color component type in st_visual_to_context_mode()
    ensuring float color values are not clamped.
    Fixes dEQP-EGL.functional.wide_color.window_fp16_default_colorspace on
    asahi, iris and most likely every other driver having it marked as fail
    or flake.
    
    Closes: mesa/mesa#9276
    
    Signed-off-by: Janne Grunau <j@jannau.net>
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Acked-by: David Heidelberg <david.heidelberg@collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23914>
    (cherry picked from commit fd4d0e1cc23ff64d4d9b852e3f5cc7454c7b2018)
    
  • 64530196
    by Mike Blumenkrantz at 2023-07-16T22:11:49+01:00
    zink: don't destroy swapchain on initial CreateSwapchainKHR fail
    
    this used to be correct at some point but now it no longer is
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23970>
    (cherry picked from commit 54bd804ad30e0c465762d5a5e06ee40b817c317c)
    
  • d766ffcc
    by Mike Blumenkrantz at 2023-07-16T22:11:49+01:00
    aux/trace: fix bindless texture dumping
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23971>
    (cherry picked from commit 46b488151f299581ba3a6acc303e1c16777c84c7)
    
  • b5bc8d82
    by Robert Beckett at 2023-07-16T22:11:49+01:00
    winsys/panfrost: Fix a scanout resource leak
    
    Use ro->bo_map to alloc scanout and make sure we initialize the refcnt
    to one.
    
    This fixes leaking the scanout object and the underlying dumb-buffer.
    
    Fixes: ad4d7ca83324 ("kmsro: Fix renderonly_scanout BO aliasing")
    Cc: mesa-stable
    Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
    Reviewed-by: Italo Nicola <italonicola@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23746>
    (cherry picked from commit 8087f784e4268476411a6c3b944731bee2315d10)
    
  • 88d9ba02
    by Boris Brezillon at 2023-07-16T22:11:49+01:00
    renderonly: Fix potential NULL deref in the error path
    
    scanout can be NULL.
    
    Fixes: ad4d7ca83324 ("kmsro: Fix renderonly_scanout BO aliasing")
    Cc: mesa-stable
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23746>
    (cherry picked from commit 8568a46c1ca64092dd2f3f8f140ea1f261db2b1c)
    
  • 44175d88
    by Boris Brezillon at 2023-07-16T22:11:49+01:00
    renderonly: Make sure we reset scanout on error in create_kms_dumb_buffer_for_resource()
    
    If an error occured, make sure we reset the scanout object before
    leaving, otherwise the next user of this handle will hit the
    refcnt == 0 assert.
    
    Fixes: ad4d7ca83324 ("kmsro: Fix renderonly_scanout BO aliasing")
    Cc: mesa-stable
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23746>
    (cherry picked from commit 45a27adc3b9c45e04945add803de58cc9d285a50)
    
  • ed9e36ef
    by Boris Brezillon at 2023-07-16T22:11:49+01:00
    winsys/panfrost: Make sure we reset scanout on error in create_kms_dumb_buffer_for_resource()
    
    If an error occured, make sure we reset the scanout object before
    leaving, otherwise the next user of this handle will hit the
    refcnt == 0 assert.
    
    Fixes: ad4d7ca83324 ("kmsro: Fix renderonly_scanout BO aliasing")
    Cc: mesa-stable
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Italo Nicola <italonicola@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23746>
    (cherry picked from commit 7a0033a1c9c2c0bdf291fa44fb608357bf2f88dc)
    
  • a5e9f763
    by Patrick Lerda at 2023-07-16T22:11:49+01:00
    radeonsi: fix refcnt imbalance related to util_blitter_save_fragment_constant_buffer_slot()
    
    Indeed, util_blitter_clear() requires a call to
    util_blitter_save_fragment_constant_buffer_slot(),
    but most other blitter functions do not.
    
    For instance, this issue is triggered with:
    "piglit/bin/object-namespace-pollution glDrawPixels buffer -auto -fbo"
    while setting GALLIUM_REFCNT_LOG=refcnt.log.
    
    Fixes: 03bc7503d471 ("radeonsi: save the fs constant buffer to the util blitter context")
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23856>
    (cherry picked from commit 80ccc3f822d32f014ccb7ab7283a1a80e6f7d9ca)
    
  • d5ff432d
    by Sviatoslav Peleshko at 2023-07-16T22:11:49+01:00
    glsl: Fix yylloc.source propagation in YYLLOC_DEFAULT
    
    Currently, it's always initialized to 0, but we should take the value from
    the grouping passed to the macro. This way parser will have the full
    location info, and errors originating from it will show the correct
    source file number.
    
    Fixes: a0cfe8c4 ("glsl: Fix missing initialization of yylloc.source")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9229
    Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23966>
    (cherry picked from commit 791785c2b4c01abf1a0207fb4697789ff03af218)
    
  • 55c7e46e
    by Marek Olšák at 2023-07-18T22:38:06+01:00
    vbo: correctly restore _VaryingInputs for display list fast path
    
    Fixes: 3a294ff0 - mesa: move the _mesa_set_varying_vp_inputs call to where the state changes
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9007
    
    Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23796>
    (cherry picked from commit 7b10877078b1a68791ae807c76bf2de519208723)
    
  • af763b3a
    by Alyssa Rosenzweig at 2023-07-18T22:38:06+01:00
    nir: Add nir_foreach_function_impl helper
    
    Most users of nir_foreach_function actually want the nir_function_impl, not the
    nir_function, and want to skip empty functions (though some graphics-specific
    passes sometimes fail to do that part). Add a nir_foreach_function_impl macro
    to make that case more ergonomic.
    
       nir_foreach_function_impl(impl, shader) {
          ...
          foo(impl)
       }
    
    is equivalent to:
    
       nir_foreach_function(func, shader) {
          if (func->impl) {
             ...
             foo(func->impl);
          }
       }
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23807>
    (cherry picked from commit 19daa9283c146a8c50fdc0250e73a0bc366c826b)
    
  • e887283d
    by Lionel Landwerlin at 2023-07-18T22:38:06+01:00
    intel/fs: disable coarse pixel shader with interpolater messages at sample
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9292
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23962>
    (cherry picked from commit c26c0a36d3468c438261801c87f53e96b93efc64)
    
  • 032ed1f9
    by Yiwei Zhang at 2023-07-18T22:38:06+01:00
    venus: fix a cmd tmp storage leak
    
    When the pool is destroyed, cmds are implicitly freed. Cmd level allocs
    have to be cleaned up to avoid leak.
    
    Cc: mesa-stable
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24009>
    (cherry picked from commit ee3f17ca7909412fc9ce1288324edea3bc2e312a)
    
  • f36154ea
    by Yiwei Zhang at 2023-07-18T22:38:06+01:00
    venus: fix leaks from tracked present src images
    
    The cmd can be reset and freed during render pass recording as well.
    
    Cc: mesa-stable
    Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24009>
    (cherry picked from commit fe4cf26687cc9a2abd737b0a3fb368a1832cc3b8)
    
  • 28f046d1
    by Gert Wollny at 2023-07-18T22:38:06+01:00
    r600: Pre-EG  - Set wrap texture modes to repeat when seemless cube is used
    
    On Pre-Evergreen hardware we have a flag
       "Force Clamp X,Y policy to wrap for CubeMaps"
    but it doesn't seem to affect how border clamping is done. With
    bf3027 this is set to PIPE_TEX_WRAP_CLAMP_TO_EDGE for cube maps,
    and results in the regression reported in #9028.
    Forcing repeat mode fixes the issue.
    
    Fixes: bf3027c3916ad5be172c22851e7172671709a9bc
       mesa/st: Normalize wrap modes for seamless cubes
    
    Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9028
    
    Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23848>
    (cherry picked from commit 91fa1970c9978edb6de4da1066f1b213e9bd2868)
    
  • 9409ec03
    by Jesse Natalie at 2023-07-18T22:38:06+01:00
    d3d12: Fix indexing of local_reference_state
    
    Instead of manually indexing a single-dimensional array as 2-dimensional
    (and using the wrong stride for the outer array) just actually make it
    a 2-dimensional array.
    
    Fixes: 7edae456 ("d3d12: Track up to 16 contexts worth of batch references locally in bos")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24041>
    (cherry picked from commit a6740ee7a4de17ce05fa10c872d6a6f08b39b77c)
    
  • 512e830f
    by Billy Laws at 2023-07-18T22:38:06+01:00
    wgl: Fix depth/stencil image support when using zink kopper
    
    Kopper requires that any depth/stencil images are created through winsys which
    was not taken into account by the WGL frontend causing it to hit an assert:
    'Assertion failed: ctx->fb_state.zsbuf->texture->bind & PIPE_BIND_DISPLAY_TARGET'
    
    fixes #9256
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24055>
    (cherry picked from commit d3662ba461e15bbefc5f8887bee58e016f69f281)
    
  • ca14c2d5
    by Patrick Lerda at 2023-07-18T22:38:06+01:00
    panfrost: fix refcnt imbalance related to blitter
    
    This issue is mainly a consequence of a call to util_blitter_clear()
    with unnecessary blitter states, these states are never freed.
    
    This change is inspired from radeonsi and r600.
    
    Note: PAN_SAVE_FRAGMENT_STATE is added and always enabled
    at this stage.
    
    For instance, this issue is triggered on Mali-T720 with
    "piglit/bin/fcc-read-after-clear sample tex -auto -fbo", "piglit/bin/cubemap -auto"
    and "piglit/bin/fbo-srgb -auto" or on Mali-T820 with "piglit/bin/longprim -auto -fbo"
    and "piglit/bin/ext_render_snorm-render -auto -fbo"
    while setting GALLIUM_REFCNT_LOG=refcnt.log.
    
    cc: mesa-stable
    
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22522>
    (cherry picked from commit 689f38b2b452a8b8bad5ab9388c7f71ff9074cec)
    
  • ef42db36
    by Friedrich Vock at 2023-07-18T22:38:06+01:00
    radv/rt: Enable exact on software intersection functions
    
    These functions need exact output, otherwise watertightness can't be
    guaranteed in some cases.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24063>
    (cherry picked from commit a096cf784fd18454250c6483574dd487ad5f87f1)
    
  • b517255e
    by Friedrich Vock at 2023-07-18T22:38:07+01:00
    radv/rt: Miss rays that hit the triangle's v edge
    
    The hardware seems to do this as well. Avoids invoking hit shaders twice
    at shared edges.
    Fixes the fails in watertightness tests on emulated RT.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24063>
    (cherry picked from commit e034ba1c44ac662699026bdadfa68af61bb6c1be)
    
  • a58e2753
    by Feng Jiang at 2023-07-18T22:38:07+01:00
    frontends/va: Fix memory leak of decrypt_key
    
    pipe_picture_desc.decrypt_key was alloced in function
    handleVAProtectedSliceDataBufferType(), but nowhere to
    free it. Now, it will be freed as the vlVaContext is
    destroyed.
    
    Fixes: deb7dc82f62 ("frontends/va: handle protected slice data buffer")
    Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
    Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23202>
    (cherry picked from commit 9790350e9dd9450786c2449c445fff5177bf230b)
    
  • 7286bc0d
    by Mike Blumenkrantz at 2023-07-18T22:38:07+01:00
    zink: fix batch disambiguation on first submit
    
    submit_count is used to disambiguate a batch_id based on the generation
    id of a given batch: this value is incremented once on submit and once on
    reset such that the diff of the values is > 1 any time the batch does not
    represent the fence it was last submitted with
    
    in the case of a batch's first use, however, this value was being incorrectly
    incremented such that the first submit would cause disambiguation checks
    to erroneously determine that the batch had already completed, breaking synchronization
    
    fixes #9313
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24016>
    (cherry picked from commit 3c520892b10ca249723f11d3e4858cc41e072e0c)
    
  • 70e19345
    by Feng Jiang at 2023-07-18T22:38:07+01:00
    virgl/video: Fix out-of-bounds access in fill_mpeg4_picture_desc()
    
    An out-of-bounds access has occurred to array ref[2] and it needs
    to be fixed.
    
    Fixes: 6b5aecb19558 ("virgl: add support for hardware video acceleration")
    Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
    Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23160>
    (cherry picked from commit 5c2f6d3f8e8bdabf93ceb6e5c34e4fffa865bd41)
    
  • 7880ada0
    by Lionel Landwerlin at 2023-07-18T22:38:07+01:00
    anv: fix utrace signaling with Xe
    
    utrace submits can either have a batch or not.
    
    When there is a batch, the utrace vk_sync is signaled by the utrace
    batch (because utrace does a timestamp buffer copy using its own
    batch). When there is no batch, the utrace vk_sync should be signaled
    by the application batch (no timestamp copy required, utrace can read
    the timestamps when the application batch has completed).
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: fdea48df5e ("anv: Implement Xe version of anv_queue_exec_locked() and queue_exec_trace()")
    Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24085>
    (cherry picked from commit a85b84ba1e205f665787ea643aa20912bebaca09)
    
  • 59a28361
    by Dave Airlie at 2023-07-18T22:38:07+01:00
    llvmpipe/linear: don't allow linear path for shader output with location frac
    
    This has been broken for a while, but we weren't hitting the linear paths in CI
    
    This fixes:
    tests/spec/arb_enhanced_layouts/execution/component-layout/fs-output.shader_test.
    
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24083>
    (cherry picked from commit f9c1948a21dbb91594cd9a04ffe74f2d4babeebb)
    
  • 642308dc
    by Karol Herbst at 2023-07-18T22:38:07+01:00
    nvc0: backport fp helper invocation fix to 2nd gen Maxwell+
    
    Ben prefers that we use the firmware method where possible.
    
    Cc: mesa-stable
    Signed-off-by: Karol Herbst <git@karolherbst.de>
    Acked-by: Dave Airlie <airlied@redhat.com>
    Acked-by: M Henning <drawoc@darkrefraction.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23802>
    (cherry picked from commit 2c3b62430024ab00d09e6d9ea448f18a73e129d7)
    
  • e6cb8b41
    by Filip Gawin at 2023-07-18T22:38:07+01:00
    crocus: Avoid fast-clear with incompatible view
    
    Port of code from iris.
    Original author: Nanley Chery
    
    Helps with fast_color_clear@fcc-write-after-clear
    
    Cc: mesa-stable
    
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24135>
    (cherry picked from commit 6e87b277bde71e30c98ab9dda7bd2f2017b77ed5)
    
  • 671deb11
    by Frank Binns at 2023-07-18T22:38:07+01:00
    pvr: skip setting up SPM consts buffer when no const shared regs are used
    
    This is a temporary measure until the zeroed shaders are replaced with the real
    ones. This avoids a VK_ERROR_OUT_OF_DEVICE_MEMORY error due to a zero sized
    allocation.
    
    Signed-off-by: Frank Binns <frank.binns@imgtec.com>
    Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
    Fixes: 1dfd5351249 ("pvr: Setup SPM background object")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24139>
    (cherry picked from commit b470d931dc2da66a4d6d726891bf2e508025f99d)
    
  • 506a84dc
    by Timur Kristóf at 2023-07-18T22:38:07+01:00
    aco: Fix subgroup_id intrinsic on GFX10.3+.
    
    Change this to match how it works in the LLVM backend.
    
    Cc: mesa-stable
    Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24005>
    (cherry picked from commit dc3bbd351a081a90b57a8772ade8d693048f6403)
    
  • 747564ab
    by Semjon Kravtsenko at 2023-07-18T22:38:07+01:00
    glx: Assign unique serial number to GLXBadFBConfig error
    
    Fixes: e89e1f5049d ("glx: Fix error handling yet again in CreateContextAttribs")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9171
    Tested-by: yan12125
    Co-authored-by: XRevan86
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23762>
    (cherry picked from commit 39824457283bf194c2e2773c19708848027121e1)
    
  • bc0179d1
    by Faith Ekstrand at 2023-07-18T22:38:07+01:00
    nv50/ir: Support vector movs
    
    nir_opt_mov and nir_op_vecN are only the same if the mov is only a
    single component.  Otherwise the vec loop will try to access src[c]
    where c > 0 which breaks for nir_op_mov.  It's uncommon but scalar
    back-ends can see vector movs so we need to handle this correctly.
    
    Fixes: 6513c675ad31 ("nv50/ir/nir: implement nir_alu_instr handling")
    Reviewed-by: Karol Herbst <kherbst@redhat.com>
    Reviewed-by: M Henning <drawoc@darkrefraction.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24167>
    (cherry picked from commit 259ba104f79f9f653130865b21bccfab62dd4829)
    
  • 3030db98
    by Eric Engestrom at 2023-07-18T22:43:24+01:00
    .pick_status.json: Update to cfd24047a1d901d209b18828fd91f9ec36ef0fed
    
  • 65580330
    by Rhys Perry at 2023-07-18T22:43:59+01:00
    ac/llvm: fix wave32 ac_build_mbcnt_add with 64-bit mask
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24140>
    (cherry picked from commit 47c9dea6ac63d70d261029588d618dd82527d992)
    
  • 997ed8fc
    by Rhys Perry at 2023-07-18T22:44:01+01:00
    ac/llvm: skip ballot zext for 32-bit dest with wave32-as-wave64
    
    NGG lowering can ballots with a 32-bit destination even if the ballot bit
    size is 64.
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24140>
    (cherry picked from commit 0cb26f31feb954e7a1c49d54930f83c002329c7d)
    
  • 39eeb3ac
    by Rhys Perry at 2023-07-18T22:44:04+01:00
    radv: add conformant_trunc_coord to cache UUID
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24137>
    (cherry picked from commit 436df35c17b84424d9664e66cae8b3885491d9ad)
    
  • 1a5f10a1
    by Marek Olšák at 2023-07-18T22:44:07+01:00
    glthread: determine global locking once every 64 batches to fix get_time perf
    
    This mitigates a large perf degradation when the clock source is HPET instead of TSC.
    Just call get_time less frequently.
    
    Fixes: 3ed141e9 - glthread: add a heuristic to stop locking global mutexes with multiple contexts
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8910
    
    Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24168>
    (cherry picked from commit 6cda08416b10e43b0a75b4d0a649f8bf29a24a8a)
    
  • 7910039e
    by Rohan Garg at 2023-07-18T22:44:09+01:00
    intel/perf: add perf query support for Intel Raptorlake
    
    Fixes: 4e0eca7dc3 ("intel/dev: Add device info for RPL")
    Signed-off-by: Rohan Garg <rohan.garg@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24180>
    (cherry picked from commit 36d4e832996c3e38452e98ffd3aa21e80fe32abb)
    
  • bb78bfed
    by Rhys Perry at 2023-07-18T22:44:11+01:00
    nir/unsigned_upper_bound: fix phi(bcsel)
    
    This was looking at the wrong sources. src0 is the condition.
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
    Fixes: 72ac3f60261 ("nir: add nir_unsigned_upper_bound and nir_addition_might_overflow")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23990>
    (cherry picked from commit 1139d870f38e7458155c192e1b5a3fe322a7c63c)
    
  • dcf22d75
    by Marek Olšák at 2023-07-18T22:44:13+01:00
    mesa: fix 38% decrease in display list performance of Viewperf2020/NX8_StudioAA
    
    It happened because glCallList was restoring varying_vp_inputs, which
    caused every glCallList to process the state change again.
    
    This loosely reverts commit 3a294ff01fb9d1d8b4f984a364ed7ef469624c49
    "mesa: move the _mesa_set_varying_vp_inputs call to where the state changes".
    
    Fixes: 3a294ff01fb9d1d8b - "mesa: move the _mesa_set_varying_vp_inputs call to where the state changes"
    
    Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24165>
    (cherry picked from commit c97961a855ad1ae5c58d47634862b459e682e158)
    
  • cc0bd5d8
    by Eric Engestrom at 2023-07-18T22:47:59+01:00
    .pick_status.json: Mark 79f7882fc604515302351282f5e01ec5907727f7 as denominated
    
  • 8104b4a9
    by Iván Briano at 2023-07-18T22:48:01+01:00
    anv: ensure CFE_STATE is emitted for ray tracing pipelines
    
    Fixes sporadic failures in dEQP-VK.robustness.robustness2.*.rgen
    
    Fixes: ecb709c8535 ("anv: only emit CFE_STATE when scratch space increases")
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9382
    
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24206>
    (cherry picked from commit 75990e5564fc8f155c9f165517712a232a2100c8)
    
  • 6d67864d
    by Alyssa Rosenzweig at 2023-07-18T22:48:03+01:00
    panfrost: Fix transform feedback on v9
    
    We were using a stale FAU buffer which meant we wrote to garbage addresses. I'm
    guessing this was fallout from the big sysval rework but not 100% sure.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24199>
    (cherry picked from commit c282f80c98831a2c41792eae39e843e9c3fb4809)
    
  • e2406205
    by Marek Olšák at 2023-07-18T22:48:05+01:00
    util/u_queue: fix util_queue_finish deadlock by merging lock and finish_lock
    
    and by disabling the on-demand thread creation, which breaks the finish logic.
    
    Fixes: 3713dc6b2a7 - util/u_queue: add UTIL_QUEUE_INIT_SCALE_THREADS flag
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8363
    
    Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24173>
    (cherry picked from commit bfdfe5aa82f349d055d2e69aaf1b46325a6772ca)
    
  • cfd371aa
    by Marek Olšák at 2023-07-21T13:40:20+01:00
    lima: update CI fixes and flakes
    
    (cherry picked from commit 005ffbe4b75e46f331673061d23dbd7010ffbfa6)
    [Eric: dropped non-lima changes]
    
  • 2ec916e6
    by Eric Engestrom at 2023-07-21T13:42:31+01:00
    docs: add release notes for 23.1.4
    
  • 8b0202e4
    by Eric Engestrom at 2023-07-21T13:42:42+01:00
    VERSION: bump for 23.1.4
    
  • 3fa359b6
    by Timo Aaltonen at 2023-07-28T17:27:13+03:00
    Merge branch 'upstream-unstable' into debian-unstable
    
  • f1bb63b7
    by Timo Aaltonen at 2023-07-28T17:28:10+03:00
    New upstream release.
    
  • 4a492d9e
    by Timo Aaltonen at 2023-07-28T17:30:25+03:00
    fix-gtk4-autpkgtest.diff: Fix loading swrast driver on wayland. (Closes: #1039922)
    
  • 38fcf9c4
    by Timo Aaltonen at 2023-07-28T17:38:46+03:00
    control.in: Remove transitional packages from here too.
    
  • 52cc7d8b
    by Timo Aaltonen at 2023-07-28T17:39:20+03:00
    release to sid
    

30 changed files:

The diff was not included because it is too large.

Reply to: