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

[Git][xorg-team/lib/mesa][debian-experimental] 85 commits: .pick_status.json: Update to 3017d01c9ded9c9fd097b600081b1bbe86e90fb8



Title: GitLab

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

Commits:

  • 475cc6a5
    by Eric Engestrom at 2023-04-26T17:34:04+01:00
    .pick_status.json: Update to 3017d01c9ded9c9fd097b600081b1bbe86e90fb8
    
  • 9c24784b
    by Mike Blumenkrantz at 2023-04-26T17:34:41+01:00
    zink: manually re-set framebuffer after msrtss replicate blit
    
    with the new zsbuf elimination handling, the fb state calculated in
    u_blitter's fb restore may be incorrect if the zsbuf has indeed been
    eliminated, so ensure the right fb is stored to be reapplied so that
    misrenders will be avoided
    
    fixes some crashes/misrenders in webgl
    
    (cherry picked from commit ec0860b40137779e1cbe92c8ca5b3e5d86105da5)
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598>
    
  • aac9dd69
    by Mike Blumenkrantz at 2023-04-26T17:35:01+01:00
    zink: handle 'blitting' flag better in msrtss replication
    
    barriers are illegal while 'blitting' is set, so unset it temporarily
    for the replication barriers and then also re-set the layouts after
    
    (cherry picked from commit 1e7cb4642e99e863cae25a942a823897ef7a1605)
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598>
    
  • 839320be
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: skip msrtss replicate if the attachment will be full-cleared
    
    this should be unnecessary and avoids a perf hit
    
    (cherry picked from commit 8ea506e94bf22b757b3123c242430ab2392638c2)
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598>
    
  • c39e3319
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: avoid recursion during msrtss blits from flushing clears
    
    if an attachment other than the msrtss blit attachment has clears pending,
    unbinding the other attachment will trigger a clear flush, which will then
    recurse into the msrtss blit that's being triggered
    
    instead, save/restore these clears around the msrtss blit since they
    can be executed during the normal renderpass
    
    (cherry picked from commit 82add9f2e992be166c60551cfc5baaea0fd0d3a3)
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598>
    
  • 7830c29f
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    nir/lower_alpha_test: rzalloc state slots
    
    this otherwise leads to uninitialized memory
    
    cc: mesa-stable
    
    Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22558>
    (cherry picked from commit 24555f5462e97e80ffe20f47a279d3c344fa6ea2)
    
  • c3f69d78
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: fix non-db bindless texture buffers
    
    the db members are only populated in db mode
    
    fixes Dawn of War 3 crash on launch
    
    Fixes: 99ba529feed ("zink: implement descriptor buffer handling of bindless texture")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22566>
    (cherry picked from commit 96a0b1e9880cee88905fe45451404e0d3120f382)
    
  • 1ae2c1ae
    by Daniel Schürmann at 2023-04-26T17:37:24+01:00
    radv/rt: fix total stack size computation
    
    Fixes: 2649a1f272cea69b73364d06a3dad21415921056 ('radv/rt: introduce and set rt_pipeline->stack_size ')
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22526>
    (cherry picked from commit b288ec803ca6eab6f37e3d64335abd98632e0f75)
    
  • c09f6308
    by Rhys Perry at 2023-04-26T17:37:24+01:00
    aco: remove SMEM_instruction::prevent_overflow
    
    This doesn't seem useful anymore, and it seems we forgot to set it in a
    few places.
    
    This commit changes the behaviour of the optimizer so that
    prevent_overflow is always true.
    
    fossil-db (navi21):
    Totals from 7421 (5.47% of 135636) affected shaders:
    Instrs: 5402823 -> 5440126 (+0.69%); split: -0.00%, +0.69%
    CodeSize: 28731300 -> 28974152 (+0.85%); split: -0.00%, +0.85%
    VGPRs: 317528 -> 317552 (+0.01%)
    SpillSGPRs: 419 -> 415 (-0.95%)
    Latency: 40712478 -> 40783115 (+0.17%); split: -0.01%, +0.19%
    InvThroughput: 7612708 -> 7616751 (+0.05%); split: -0.00%, +0.06%
    VClause: 123824 -> 123848 (+0.02%); split: -0.09%, +0.11%
    SClause: 161915 -> 172741 (+6.69%); split: -0.03%, +6.71%
    Copies: 393015 -> 394429 (+0.36%); split: -0.20%, +0.56%
    PreSGPRs: 288658 -> 289603 (+0.33%); split: -0.04%, +0.36%
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Qiang Yu <yuq825@gmail.com>
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8864
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22553>
    (cherry picked from commit 1a6095b36e9a5959abfe751a86377ecff745453a)
    
  • cf982938
    by Charmaine Lee at 2023-04-26T17:37:24+01:00
    translate: do not clamp element index in generic_run
    
    The buffer max_index value in translate_generic struct is relevant for
    indexed draw only. So do not clamp the element index in generic_run() as it
    is called for non-indexed draw only.
    This patch passes index_size to the common generic_run_one function
    so index clamping is only performed when a non-zero index_size is specified.
    
    This fixes a text selection bug with kitty terminal emulator running on ARM
    when it falls back to the generic translate path for unsigned byte vertex
    array.
    
    cc: mesa-stable
    
    Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22568>
    (cherry picked from commit 13e885842a4b962cd02f57e140b348daf551dff3)
    
  • 32c5980e
    by Marek Olšák at 2023-04-26T17:37:24+01:00
    nir: fix 2 bugs in nir_create_passthrough_tcs
    
    - VAR31 was ignored.
    - Only a half of the 16-bit slot was passed through, though I'm not sure
      if nir_lower_io handles vec8. The slots are only for GLES and I don't
      think a passthrough TCS is possible with GLES.
    
    Fixes: a8e84f50bc6c8 - nir: Add helper to create passthrough TCS shader
    
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Qiang Yu <yuq825@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
    (cherry picked from commit ace8a7068e0afde499f6f0146daa6041f4b9d250)
    
  • 6f9c1af4
    by Filip Gawin at 2023-04-26T17:37:24+01:00
    nine: add fallback for D3DFMT_D16 in d3d9_to_pipe_format_checked
    
    Helps with avoing crash in winetests on crocus.
    
    Cc: mesa-stable
    
    Reviewed-by: Axel Davy <davyaxel0@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20121>
    (cherry picked from commit 421d3e3c8e88d94fccb7883e41bb1d2c87e4981c)
    
  • 31170a85
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: emit demote cap when using demote
    
    VUID-VkShaderModuleCreateInfo-pCode-01377(ERROR / SPEC): msgNum: 1478567243 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01377 ] Object 0: handle = 0x55f304e851c0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x5821254b | SPIR-V module not valid: Opcode DemoteToHelperInvocation requires one of these capabilities: DemoteToHelperInvocation
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22582>
    (cherry picked from commit 6ddfc5087c6ca312bec532887312c19ee5523fc3)
    
  • 8184c033
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: only print copy box warning once per resource
    
    this otherwise gets spammy
    
    cc: mesa-stable
    
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22196>
    (cherry picked from commit 366b79fa102298430f3701a33127d3194a5137f1)
    
  • 7dc2f320
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    util/debug: move null checks out of debug message macro
    
    this otherwise causes tons of compiler warnings
    
    cc: mesa-stable
    
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22196>
    (cherry picked from commit a6c8d74cd7ab5f761eb443611870acc3414f5a7e)
    
  • 5d5d1a17
    by Michel Zou at 2023-04-26T17:37:24+01:00
    vulkan/wsi: fix -Wnarrowing warning
    
    else I get this output:
    
    [11/600] Compiling C++ object src/vulkan/wsi/libvulkan_wsi.a.p/wsi_common_win32.cpp.obj
    ../src/vulkan/wsi/wsi_common_win32.cpp: In function 'VkResult wsi_win32_surface_create_swapchain_dxgi(wsi_win32_surface*, VkDevice, wsi_win32*, const VkSwapchainCreateInfoKHR*, wsi_win32_swapchain*)':
    ../src/vulkan/wsi/wsi_common_win32.cpp:757:65: warning: narrowing conversion of '((((int)chain->wsi_win32_swapchain::base.wsi_swapchain::present_mode) == ((int)VK_PRESENT_MODE_IMMEDIATE_KHR)) ? ((int)DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) : 0)' from 'int' to 'UINT' {aka 'unsigned int'} [-Wnarrowing]
      757 |       chain->base.present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR ?
          |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
      758 |          DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0
          |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    fixes: d7730fcf22adae92b0e7a82e36cfe28200920b5f
    
    Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22475>
    (cherry picked from commit d5871d21a5d16d7fad334ad9ee24402c9d70ea1b)
    
  • b920bab4
    by Qiang Yu at 2023-04-26T17:37:24+01:00
    aco: fix nir_f2u64 translation
    
    mantissa needs to be at the lower part for shift left.
    This fixes large integer value conversion.
    
    Cc: mesa-stable
    Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
    Signed-off-by: Qiang Yu <yuq825@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22570>
    (cherry picked from commit 6a39d35df062603a2e20467fa27575ac3c9e7eae)
    
  • 6ae14d18
    by Samuel Pitoiset at 2023-04-26T17:37:24+01:00
    radv: do not allow 1D block-compressed images with (extended) storage on GFX6
    
    For some reasons this seems broken only on GFX6. Note that PAL doesn't
    allowed block-compressed with 1D on all GPUs.
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22540>
    (cherry picked from commit 8a2fab66deeb9320ce4b323b62d0bd2765989f29)
    
  • 316c217c
    by Samuel Pitoiset at 2023-04-26T17:37:24+01:00
    radv: fix usage flag for 3D compressed 128 bpp images on GFX9
    
    VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT is equal to
    VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT but we want COLOR_ATTACHMENT_BIT.
    
    Found by inspection.
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22540>
    (cherry picked from commit 72a522fb3692985a4e805b00f6d7e2f5a0386d47)
    
  • 3697d19e
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: don't bitcast bool deref loads/stores
    
    a bool can only be a bool, and OpBitCast requires the src type to be
    different than the dst type, so this is illegal
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22577>
    (cherry picked from commit 9bf4db8ebb4d12a867edbf0740b55cc920fef712)
    
  • e6940974
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    drisw: don't leak the winsys
    
    if a winsys is allocated by the frontend, it should be freed by the frontend
    rather than the driver to ensure it doesn't leak if it doesn't reach
    the driver
    
    cc: mesa-stable
    
    Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22396>
    (cherry picked from commit 1e6e3427f032a3ca0193d57facbd9a63b75e6a7c)
    
  • 555679c0
    by Mike Blumenkrantz at 2023-04-26T17:37:24+01:00
    zink: check for extendedDynamicState3DepthClipNegativeOneToOne for ds3 support
    
    somehow this was forgotten
    
    Fixes: c7f46d2ad6d ("zink: use dynamic state3 rasterization states when available")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22603>
    (cherry picked from commit 3017d01c9ded9c9fd097b600081b1bbe86e90fb8)
    
  • 72d01ab2
    by Eric Engestrom at 2023-04-26T17:37:24+01:00
    .pick_status.json: Update to a18a51a708a86f51e0a5ab031b379f65bc84fb49
    
  • 5db4186d
    by Hans-Kristian Arntzen at 2023-04-26T17:37:24+01:00
    wsi/x11: Fix present ID signal when IDLE comes before COMPLETE.
    
    It appears to be possible that IDLE is observed before COMPLETE.
    In this case, an application may access present_id in subsequent
    QueuePresentKHR and race against the fence worker reading present_id.
    
    Solve this by adding a separate signal_present_id that is used when
    completing to avoid the race.
    
    Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    (cherry picked from commit 32f7ff2c204b28e6d312ecac6463f588d4d68f3e)
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22637>
    
  • b9e8c244
    by Juan A. Suarez Romero at 2023-04-26T17:37:24+01:00
    v3d: use primitive type to get stream output offset
    
    So far we were only considering the number of vertices to draw to
    compute the offset in a stream output buffer.
    
    But this is not correct, as it depends on the primitive type too. For
    instance, with 4 vertices, if we use a triangle strip primitive, then 2
    triangles are generated from those 4 vertices, so 6 vertices will be
    captured.
    
    This fixes spec@!opengl es
    3.0@gles-3.0-transform-feedback-uniform-buffer-object.
    
    CC: 23.1
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22607>
    (cherry picked from commit a86d18a8c49842c9075247c21399a432849a5feb)
    
  • 3556a3e6
    by Michel Zou at 2023-04-26T17:37:24+01:00
    vk/entry_points:: fix mingw build
    
    MinGW does not play well either with weak symbols and crashes at runtime without a trace
    fixes: 7e833713d83087934221cd47ece49e87199a00d1
    
    Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22474>
    (cherry picked from commit cb282b6a8135c8c4222d7683f5122ae35602158d)
    
  • 38da1ae6
    by Samuel Pitoiset at 2023-04-26T17:37:24+01:00
    radv: update binning settings to work around GPU hangs
    
    Ported from RadeonSI, but it seems PAL always use 1 for both
    parameters as well.
    
    This should fix random GPU hangs with small chips (eg. NAVI24, GFX1103),
    though all chips might have been affected.
    
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8046
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8597
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8683
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22528>
    (cherry picked from commit 74ab9401561c5d5bef62330c0b1264f42bfe52da)
    
  • b8a7fba4
    by Jordan Justen at 2023-04-26T17:37:25+01:00
    intel/compiler/gfx12.5+: Lower 64-bit cluster_broadcast with 32-bit ops
    
    For MTL (verx10 == 125), float64 is supported, but int64 is not.
    Therefore we need to lower cluster broadcast using 32-bit int ops.
    
    For gfx12.5+ platforms that support int64, the register regions
    used by cluster broadcast aren't supported by the 64-bit pipeline.
    
    On MTL, dEQP-VK.subgroups.clustered.*_double* and
    dEQP-VK.subgroups.clustered.*_dvec* were failing to validate the
    compiled shader in debug mode, and reportedly gpu-hanging in release
    mode.
    
    With this change dEQP-VK.subgroups.clustered.*_double* passed all 48
    tests and dEQP-VK.subgroups.clustered.*_dvec* passed all 140 tests on
    MTL.
    
    Rework:
     * Move from generator to brw_fs_lower_regioning.cpp. (Suggested by
       Francisco)
     * Apply to verx10 >= 125.. (Suggested by Francisco)
    
    Cc: 23.1 <mesa-stable>
    Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
    Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> (v1)
    Reviewed-by: Francisco Jerez <currojerez@riseup.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22569>
    (cherry picked from commit fcb72ffd0c61e2b3226306fae37b85ab4982a39e)
    
  • cec5bf60
    by Rob Clark at 2023-04-26T17:37:25+01:00
    freedreno/a6xx: Fix valid_format_cast logic for newer a6xx
    
    Fixes a pile of
    dEQP-GLES31.functional.copy_image.non_compressed.viewclass_32_bits.*
    on a6xx gen2 and later.
    
    Fixes: 87978c39334 ("freedreno/a6xx: Allow z24s8 format casts")
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22610>
    (cherry picked from commit b83af7e5b8114cd474ba70488f81871e44b460ad)
    
  • 49eb0677
    by Michel Zou at 2023-04-26T17:37:25+01:00
    mesa/draw: fix -Wformat warning
    
    fixes: 5791826b
    cc @pepp @mareko
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22605>
    (cherry picked from commit a1098a1e45f4ad74d90261beb6e2594953f25540)
    
  • 0b47ece7
    by Patrick Lerda at 2023-04-26T17:37:25+01:00
    r600/sfn: fix memory leak related to sh_info->arrays
    
    For instance, with "piglit/bin/shader_runner tests/spec/glsl-1.10/execution/glsl-vs-arrays-2.shader_test -auto -fbo":
    Direct leak of 12 byte(s) in 1 object(s) allocated from:
        #0 0x7f33c3f3d097 in operator new[](unsigned long) (/usr/lib64/libasan.so.6+0xb3097)
        #1 0x7f33b9af1e5b in r600::ValueFactory::get_shader_info(r600_shader*) ../src/gallium/drivers/r600/sfn/sfn_valuefactory.cpp:1056
        #2 0x7f33b9a96860 in r600::Shader::get_shader_info(r600_shader*) ../src/gallium/drivers/r600/sfn/sfn_shader.cpp:1445
        #3 0x7f33b99ddd07 in r600_shader_from_nir ../src/gallium/drivers/r600/sfn/sfn_nir.cpp:1032
        #4 0x7f33b9c3e701 in r600_pipe_shader_create ../src/gallium/drivers/r600/r600_shader.c:231
    
    Fixes: 79ca456b4837 ("r600/sfn: rewrite NIR backend")
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22262>
    (cherry picked from commit e45fa939b09049cc6d6a55d637ca0139633c76fc)
    
  • ba5c0f0f
    by Lionel Landwerlin at 2023-04-26T17:37:25+01:00
    anv: rework Wa_14017076903 to only apply with occlusion queries
    
    Fixes KHR-GL46.transform_feedback.* tests with zink+anv on DG2
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: c34916f841d3 ("anv: implement occlusion query related Wa_14017076903")
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22586>
    (cherry picked from commit 56840e4c895bcad6c498230c7a633760208122d9)
    
  • c7e678b3
    by Samuel Pitoiset at 2023-04-26T17:37:25+01:00
    radv/amdgpu: fix adding continue preambles and postambles BOs to the list
    
    Previously, continue preambles and postambles were added directly to
    the CS array which means all BOs were correctly added to the BO list,
    and this has been broken recently. IB BOs need to be added to the list.
    
    When a BO isn't added to the list as part of a submission, it might
    randomly VM faults.
    
    This fixes VM faults and random GPU hangs on NAVI21 in Mesa CI.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8849
    Fixes: 41a9bced313 ("radv: Fill continue preambles and postambles properly.")
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22625>
    (cherry picked from commit 84d8ea6e2b481524491c85bb9bf996e1056ccc70)
    
  • df6085eb
    by Gert Wollny at 2023-04-26T17:37:25+01:00
    r600/sfn: Lower tess levels to vectors in TCS
    
    Thanks @anholt for pointing me in the right direction
    
    Fixes: 84006587 glsl: Delete the lower_tess_level
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8884
    
    v2: replace direct call to lowering pass with nir compiler option
    
    Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22622>
    (cherry picked from commit e3e077c9d48aaf792f7728a3f394a5e59bbc9f2b)
    
  • 4b6649c1
    by Gert Wollny at 2023-04-26T17:37:25+01:00
    r600/sfn: make sure f2u32 is lowered late and correctly for 64 bit floats
    
    With the latest changes in opt_algebraic we got f2u32 in the final code
    that should be lowered before conversion to assembly.
    
    Fixes: b3685f3ba7fddbe73f363ff4d53ca734841e4b06
        nir/algebraic: insert patterns inside optimizations list
    
    Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22640>
    (cherry picked from commit 6a78af1dbb0da2ad2606c489ce91181532845a91)
    
  • 3546d51b
    by Samuel Pitoiset at 2023-04-26T17:37:25+01:00
    radv: wait for occlusion queries in the resolve query shader
    
    This is really noticeable for games that resolve a bunch of occlusion
    queries (in this case 4096) because it seems that emitting 4096
    WAIT_REG_MEM packets can stall more than expected. Fixes this by
    waiting for queries in the resolve query shader.
    
    This improves performance of an unreleased game by +~10% (71->78 FPS).
    RADV should now be really close to Windows performance for that title.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22630>
    
  • 3b465a15
    by Samuel Pitoiset at 2023-04-26T17:37:25+01:00
    radv: delay enabling/disabling occlusion queries at draw time
    
    Most applications have a sequence like BeginQuery/Draw/EndQuery which
    can be optimized by delaying DB_COUNT_CONTROL at draw time instead of
    enabling/disabling for every draw.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22630>
    
  • d6761f54
    by Samuel Pitoiset at 2023-04-26T17:37:25+01:00
    radv: track DB_COUNT_CONTROL changes to avoid context rolls
    
    This can be really noticeable for the BeginQuery/Draw/EndQuery pattern.
    It seems to improve a depth-only pass by +35% in one upcoming game
    because this removes a bunch of context rolls.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22630>
    
  • d912fa4e
    by Eric Engestrom at 2023-04-26T17:37:25+01:00
    .pick_status.json: Update to c060b649c5a866f42e5df73f41c6e2809cf30e99
    
  • f655af37
    by Eric Engestrom at 2023-04-26T17:37:25+01:00
    ci: rework vulkan validation layer build script
    
    Initially this was just adding a missing popd, but actually there's no
    reason to pushd into the build dir, so let's just pass the build dir as
    arguments to cmake & ninja instead.
    
    `--arch x64` was also dropped as it only applies to Windows builds,
    which this script doesn't support anyway.
    
    Fixes: 512f1c160a63a7ba1b00 ("ci/zink: Add coverage using the vulkan validation layer on lvp.")
    Signed-off-by: Eric Engestrom <eric@igalia.com>
    Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22488>
    (cherry picked from commit 3c64f3dcbca003689b4c982d0cb13e5098bbe3cb)
    
  • cc73ff80
    by Mike Blumenkrantz at 2023-04-26T17:37:25+01:00
    draw: fix viewmask iterating
    
    the frontend has to be flushed and setup again if only
    the viewmask has changed since the last draw
    
    Fixes: 03cbb7b104e ("draw: add view_mask rendering support")
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22628>
    (cherry picked from commit bba644ce826e6d25fc5c6fe8f1add1b4d4d8bd70)
    
  • b339c269
    by Samuel Pitoiset at 2023-04-26T17:37:25+01:00
    radv: add the perf counters BO to the preambles BO list
    
    If the submission isn't chained for any reasons, we might end by
    submitting the performance counter preambles without a command
    buffer that added this BO to its list.
    
    Found by inspection.
    
    Cc: mesa-stable
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22627>
    (cherry picked from commit 16d0b868c6521415456f0d6f2b8828df5c454a11)
    
  • e9e9347e
    by SoroushIMG at 2023-04-26T17:37:25+01:00
    zink: do not emit line stipple dynamic state when emulating
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22575>
    (cherry picked from commit 657fc39b0997d78d98974b458888fbbba0a2cf29)
    
  • be2ee5a9
    by SoroushIMG at 2023-04-26T17:37:25+01:00
    zink: take location_frac into account in lower_line_smooth_gs
    
    blender-demo-cube_diorama trace in traces-db hits this.
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22575>
    (cherry picked from commit 8ca13afe15ae420f7b77516a64dcf33f9a99bc3e)
    
  • 089e14d4
    by SoroushIMG at 2023-04-26T17:37:25+01:00
    zink: fix incorrect line mode check for bresenham
    
    the line requirement check logic was assuming mode index 0
    is bresenhamLines, but it is actually rectangularLines.
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22575>
    (cherry picked from commit f6b5e128c13fe77199fb39f1b6e0a11504201352)
    
  • 0bd99d69
    by SoroushIMG at 2023-04-26T17:37:25+01:00
    zink: refcount the correct query pool
    
    otherwise the pool is freed before the query and zink will
    give the vulkan driver NULL query pool which can make it crash.
    
    this was seen when running the following cases with
    primitivesGeneratedQueryWithRasterizerDiscard and color write
    features disabled:
    dEQP-GL45.functional.tessellation.invariance.outer_triangle_set.triangles_fractional_odd_spacing
    dEQP-GL45.functional.tessellation.invariance.outer_triangle_set.triangles_fractional_even_spacing
    dEQP-GL45.functional.tessellation.invariance.outer_triangle_set.quads_equal_spacing
    dEQP-GL45.functional.tessellation.invariance.outer_triangle_set.quads_fractional_odd_spacing
    dEQP-GL45.functional.tessellation.invariance.outer_triangle_set.quads_fractional_even_spacing
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_equal_spacing_ccw
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_equal_spacing_ccw_point_mode
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_equal_spacing_cw
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_equal_spacing_cw_point_mode
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_fractional_odd_spacing_ccw
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_fractional_odd_spacing_ccw_point_mode
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_fractional_odd_spacing_cw
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_fractional_odd_spacing_cw_point_mode
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_fractional_even_spacing_ccw
    dEQP-GL45.functional.tessellation.invariance.tess_coord_component_range.triangles_fractional_even_spacing_ccw_point_mode
    
    Fixes: e5d517f3622 ("zink: rework query pool overflow")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22575>
    (cherry picked from commit 3291050cc18c4bd1b5244ca4f79a4b928f74386c)
    
  • dba29a33
    by antonino at 2023-04-26T17:37:25+01:00
    zink: fix pv mode lowring index calculation
    
    The provoking vertex mode pass was calculating an offset and then using
    it directly instead of adding it to the base index.
    
    Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
    Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22599>
    (cherry picked from commit 436dacf75410144589abb835c2906e1a149abffb)
    
  • 51a0b242
    by antonino at 2023-04-26T17:37:25+01:00
    zink: use ring buffer to preserve last element
    
    Previously, whenever a vertex was emitted immediately after emitting a
    primitive, that vertex would not use the attributes that where assigned
    last because the position variable got set.
    
    Now the temporary attributes array is treated as a ring buffer and
    whenever the position is set to 0 it's previous value is used as an
    offset when accessing it. This way when a new primitive is created the
    attributes at index 0 correspond to the last attributes written.
    
    Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
    Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22599>
    (cherry picked from commit 89077b866cabfe736dcd2d27994930c468138161)
    
  • b918a421
    by antonino at 2023-04-26T17:37:25+01:00
    zink: fix exit condition on pv emulation loop
    
    The exit condition was not correct causing the pv emulation lowering
    pass to emit garbage for incomplete primitives.
    
    Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
    Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22599>
    (cherry picked from commit bdb3daab7c550984b56539142f053ae7950c93ad)
    
  • 1ec333e6
    by antonino at 2023-04-26T17:37:26+01:00
    zink: fix line strip offsets in pv mode emulation
    
    Offsets for line strips don't need to alternate like they do for
    triangle strips.
    
    Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
    Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22599>
    (cherry picked from commit ee4e7b9d4dcec46ddff0471b34dd654e82f288f0)
    
  • 6a43c3f8
    by Iago Toral Quiroga at 2023-04-26T17:37:26+01:00
    broadcom/compiler: fix v3d_qpu_uses_sfu
    
    We should check that the alu op is valid before testing the
    write address.
    
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22593>
    (cherry picked from commit 4a3be610d5e5deb47aff1a9fc8bbab85cff9e502)
    
  • a6383b10
    by Iago Toral Quiroga at 2023-04-26T17:37:26+01:00
    broadcom/compiler: add a v3d_qpu_instr_is_legacy_sfu helper
    
    This checks for the deprecated, old-style SFU instructions triggered by
    magic writes.
    
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22593>
    (cherry picked from commit b3ac456eb1df0976ee4036cd191b557682923d04)
    
  • e56bc041
    by Iago Toral Quiroga at 2023-04-26T17:37:26+01:00
    broadcom/compiler: fix incorrect check for SFU op
    
    Before testing the waddr for SFU we should first validate this
    is indeed a valid (not NOP) magic write. Use the helper we have for
    this which gets this right.
    
    total instructions in shared programs: 12898957 -> 12850958 (-0.37%)
    instructions in affected programs: 4328937 -> 4280938 (-1.11%)
    helped: 19974
    HURT: 439
    Instructions are helped.
    
    total max-temps in shared programs: 2211503 -> 2210893 (-0.03%)
    max-temps in affected programs: 12924 -> 12314 (-4.72%)
    helped: 509
    HURT: 20
    Max-temps are helped.
    
    total sfu-stalls in shared programs: 22233 -> 21975 (-1.16%)
    sfu-stalls in affected programs: 722 -> 464 (-35.73%)
    helped: 297
    HURT: 54
    Sfu-stalls are helped.
    
    total inst-and-stalls in shared programs: 12921190 -> 12872933 (-0.37%)
    inst-and-stalls in affected programs: 4337977 -> 4289720 (-1.11%)
    helped: 20015
    HURT: 404
    Inst-and-stalls are helped.
    
    total nops in shared programs: 333743 -> 305911 (-8.34%)
    nops in affected programs: 86902 -> 59070 (-32.03%)
    helped: 14545
    HURT: 76
    Nops are helped.
    
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22593>
    (cherry picked from commit 18a3a0d9151f97f7c1c0f29d80e770af17d54213)
    
  • 29aa8c52
    by Karol Herbst at 2023-04-26T17:37:26+01:00
    radeonsi: lower mul_high
    
    Fixes `integer_mad_hi` and `integer_mul_hi` `integer_ops` tests
    
    Cc: mesa-stable
    Signed-off-by: Karol Herbst <kherbst@redhat.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22597>
    (cherry picked from commit 037b56bf0fa589bdd9887937c089f4b50a75b351)
    
  • 1a810416
    by Karol Herbst at 2023-04-26T17:37:26+01:00
    ac/llvm: support shifts on 16 bit vec2
    
    In OpenCL we can actually end up with those.
    
    Fixes `basic astype` and those `integer_ops` OpenCL CTS tests:
    integer_hadd
    integer_rhadd
    integer_upsample
    quick_short_shift
    quick_ushort_shift
    
    Cc: mesa-stable
    Signed-off-by: Karol Herbst <kherbst@redhat.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22597>
    (cherry picked from commit 9d7ba3801396bac2b01cd4fa9486c6f20a55d0a0)
    
  • 834a0807
    by Karol Herbst at 2023-04-26T17:37:26+01:00
    rusticl: don't set size_t-is-usize for >=bindgen-0.65
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8827
    Fixes: 20c90fed5a0 ("rusticl: added")
    Signed-off-by: Karol Herbst <kherbst@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22484>
    (cherry picked from commit a9cce40dab3218a8bda043387e1df0e27aba211b)
    
  • a59f776b
    by Mike Blumenkrantz at 2023-04-26T17:37:26+01:00
    zink: don't pin flush queue threads if no threads exist
    
    Fixes: 270f9c0b063 ("zink: add ZINK_DEBUG=flushsync")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22611>
    (cherry picked from commit e4c4fca16e92b3da4fc8ee4e40d06df5f085a804)
    
  • 1f92626c
    by Mike Blumenkrantz at 2023-04-26T17:37:26+01:00
    zink: add z32s8 as mandatory GL3.0 profile attachment format
    
    fixes #8616
    
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22608>
    (cherry picked from commit 1bc9efc10c2329d6442f39115a1c013fd870f48d)
    
  • 68a35bad
    by Mike Blumenkrantz at 2023-04-26T17:37:26+01:00
    nir/gs: fix array type copying for passthrough gs
    
    same mechanics as in zink passes
    
    Fixes: d0342e28b32 ("nir: Add helper to create passthrough GS shader")
    
    Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22669>
    (cherry picked from commit 99121c9b77930aa6b6da8fcd087e4f03aac19323)
    
  • 67f32f8a
    by Mike Blumenkrantz at 2023-04-26T17:37:26+01:00
    zink: fix array copying in pv lowering
    
    Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
    
    Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22669>
    (cherry picked from commit edaf49160e5293d30aab1d3bcf5452b8c3178096)
    
  • e6d84838
    by Eric Engestrom at 2023-04-26T17:37:26+01:00
    .pick_status.json: Update to 3f14fd8578549e34db2f564396f300819b2ff10f
    
  • 55dc3b50
    by Emma Anholt at 2023-04-26T17:37:26+01:00
    blob: Don't valgrind assert for defined memory if we aren't writing.
    
    The VK pipeline cache passes a NULL bytes with a nonzero size to a
    NULL-data blob to set up the size of the blob.  In this case, we don't
    actually execute the memcpy, so the non-existent "bytes" doesn't need to
    have defined contents.  Avoids a valgrind warning:
    
    ==972858== Unaddressable byte(s) found during client check request
    ==972858==    at 0x147F4166: blob_write_bytes (blob.c:165)
    ==972858==    by 0x147F4166: blob_write_bytes (blob.c:158)
    ==972858==    by 0x14695FFF: vk_pipeline_cache_object_serialize (vk_pipeline_cache.c:240)
    [...]
    ==972858==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
    
    Fixes: 591da9877900 ("vulkan: Add a common VkPipelineCache implementation")
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22617>
    (cherry picked from commit ae2784b83232548d62eb488e82a3a4315de50300)
    
  • 372e70b0
    by Emma Anholt at 2023-04-26T17:37:26+01:00
    util/log: Fix log messages over 1024 characters.
    
    The first attempt at the sprintf would have consumed part of va, so if
    we're going to recurse on overflow to try again in a new allocation then
    we have to do our work on a copy.
    
    This was a common failure mode for MESA_GLSL=source, where it would just print:
    
      Mesa: info: GLSL source for fragment shader 1:
      Mesa: info: (null)
    
    Fixes: 7a18a1712a0a ("util/log: improve logger_file newline handling")
    Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22618>
    (cherry picked from commit 7f99cbf25e2d760cba70e210523a988df0f6b41a)
    
  • 34a83620
    by Mike Blumenkrantz at 2023-04-26T17:37:26+01:00
    gallivm: break out native vector width calc for reuse
    
    breaks dependency on lp_build_init()
    
    cc: mesa-stable
    
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22600>
    (cherry picked from commit 4a056807bc3b813f390d194bbe382b573761649e)
    
  • a1016ce6
    by Mike Blumenkrantz at 2023-04-26T17:37:26+01:00
    llvmpipe: do late init for llvm builder
    
    this avoids doing any llvm work during lavapipe enumeration which
    might otherwise explode if lavapipe is not the actual driver that
    gets used
    
    cc: mesa-stable
    
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22600>
    (cherry picked from commit 6d5462658a11cede031e9e525c87a30a8f5927af)
    
  • 49d09360
    by Tapani Pälli at 2023-04-26T17:37:26+01:00
    iris: implement state cache invalidate for Wa_16013063087
    
    Cc: mesa-stable
    Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22651>
    (cherry picked from commit 5e5ca30785a2c5538d04b714baae05db9a0eab32)
    
  • aa48b8dc
    by Tapani Pälli at 2023-04-26T17:37:26+01:00
    anv: cleanup bitmask construction for PIPELINE_SELECT
    
    Cc: mesa-stable
    Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22651>
    (cherry picked from commit 72fc56aa37ab683b31731cdd6542071b1a047db3)
    
  • 025b6a79
    by Tapani Pälli at 2023-04-26T17:37:26+01:00
    anv: implement state cache invalidate for Wa_16013063087
    
    Cc: mesa-stable
    Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22651>
    (cherry picked from commit e501b31e159d3b4e7ced3263a219f25a44cb02d0)
    
  • b7fb9937
    by antonino at 2023-04-26T17:37:26+01:00
    zink: fix store subsitution in `lower_pv_mode_gs_store`
    
    Previously it was assumed that between the and the variable there was
    only one deref.
    
    To handle all cases a new function is introduced that recreates a chain
    of derefs.
    
    Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22678>
    (cherry picked from commit 39770c6503ac44090decd88698802bb95189bb4d)
    
  • ec55e467
    by Friedrich Vock at 2023-04-26T17:37:26+01:00
    radv/rmv: Fix creating RT pipelines
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22532>
    (cherry picked from commit fd389ade5c00f43c8a2abfaf82677e5ceaf8bb97)
    
  • ef411573
    by Friedrich Vock at 2023-04-26T17:37:26+01:00
    radv/rmv: Fix import memory
    
    For some import memory, it is valid to specify zero size.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22532>
    (cherry picked from commit 7cad28571bfe10ce3f7d5db08926c1577524fb86)
    
  • b44e6d29
    by Rob Clark at 2023-04-26T17:37:26+01:00
    freedreno: Fix resource tracking vs rebind/invalidate
    
    We can now no longer rely on certain dirty bits to re-trigger draw time
    resource tracking.  We need to use the new fd_dirty*_resource() APIs.
    
    Fixes `org.skia.skqp.SkQPRunner#gles_recordopts` on android 9.
    
    Fixes: 0a62a874fc5 ("freedreno: Re-work dirty-resource tracking")
    Signed-off-by: Rob Clark <robdclark@chromium.org>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22683>
    (cherry picked from commit d437e389e04bfca9276b5a1a049a7cfa5e6c1f89)
    
  • 40cdd22a
    by M Henning at 2023-04-26T17:37:26+01:00
    nouveau/codegen: Check nir_dest_num_components
    
    instead of reaching into a union and pulling out garbage when
    the dest is a reg
    
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8863
    Reviewed-by: Karol Herbst <kherbst@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22674>
    (cherry picked from commit d49c7b958214e551e10d09be300c5cdaf951315d)
    
  • 93f4b566
    by Friedrich Vock at 2023-04-26T17:37:27+01:00
    radv/rt: Plug some memory leaks during shader creation
    
    nir_inline_function actually clones instructions instead of moving them.
    Free the shaders explicitly after inserting them instead.
    
    Fixes: 207ce6d658 ("radv: Add helper to inline shaders into the main shader.")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22535>
    (cherry picked from commit 23c2dbd6ba8d526e9c50ff1ae80f7f4c145f8931)
    
  • 75b3939c
    by Friedrich Vock at 2023-04-26T17:37:27+01:00
    radv: Don't leak the RT prolog binary
    
    Fixes: 063d0c90 ("radv: Combine all the parts together with a main loop for an RT pipeline.")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22535>
    (cherry picked from commit b73e2df47a6e8c03ac6556200ffbc22bbed26a5e)
    
  • a2a577ea
    by Patrick Lerda at 2023-04-26T17:37:27+01:00
    aux/draw: fix memory leak related to ureg_get_tokens()
    
    Indeed, the function nir_to_tgsi() returns an ureg_get_tokens() allocated
    object which is assigned locally. The ureg_get_tokens() allocated object
    should be freed.
    
    For instance, this issue is triggered with a llvm enabled lima,
    "piglit/bin/gl-1.0-rendermode-feedback -auto -fbo":
    Direct leak of 512 byte(s) in 1 object(s) allocated from:
        #0 0x7faeaa4500 in __interceptor_realloc (/usr/lib64/libasan.so.6+0xa4500)
        #1 0x7fa4a88f1c in tokens_expand ../src/gallium/auxiliary/tgsi/tgsi_ureg.c:239
        #2 0x7fa4a88f1c in get_tokens ../src/gallium/auxiliary/tgsi/tgsi_ureg.c:262
        #3 0x7fa4a900f4 in copy_instructions ../src/gallium/auxiliary/tgsi/tgsi_ureg.c:2079
        #4 0x7fa4a900f4 in ureg_finalize ../src/gallium/auxiliary/tgsi/tgsi_ureg.c:2129
        #5 0x7fa4a91dfc in ureg_get_tokens ../src/gallium/auxiliary/tgsi/tgsi_ureg.c:2206
        #6 0x7fa4b20a2c in nir_to_tgsi_options ../src/gallium/auxiliary/nir/nir_to_tgsi.c:4011
        #7 0x7fa4a0c914 in draw_create_vertex_shader ../src/gallium/auxiliary/draw/draw_vs.c:77
    
    Fixes: b5e782f5f431 ("aux/draw: use nir_to_tgsi for draw shader in llvm path")
    Signed-off-by: Patrick Lerda <patrick9876@free.fr>
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21924>
    (cherry picked from commit 6a8e6716acda67921508021ab6ecf1db63ed36c0)
    
  • 4cc6a3f4
    by Daniel Schürmann at 2023-04-26T17:37:27+01:00
    radv/rt: properly destroy radv_ray_tracing_lib_pipeline on error
    
    Also return the correct error code.
    
    Fixes: 4dafb69d61820c4a9b71856e62797b51f13df91c ('radv/rt: defer library_pipeline allocation')
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22684>
    (cherry picked from commit 2795cf7422d4246a0b514975c8f7099271287466)
    
  • 72d641ac
    by Charmaine Lee at 2023-04-26T17:37:27+01:00
    svga: set PIPE_CAP_VERTEX_ATTRIB_ELEMENT_ALIGNED_ONLY for VGPU10 device
    
    Instead of forcing vertex buffer stride to be 4 byte aligned only,
    DX10 actually allows the stride to be non 4-byte aligned but the
    alignment of an element must be the nearest power of 2 greater or equal to the
    width of the element's format, or 4, whichever is less.  So the requirement is
    better met with PIPE_CAP_VERTEX_ATTRIB_ELEMENT_ALIGNED_ONLY which if set to
    TRUE, the sum of vertex element offset + vertex buffer offset + vertex buffer
    stride must be aligned to the vertex attributes component size.
    Note: PIPE_CAP_VERTEX_ATTRIB_ELEMENT_ALIGNED_ONLY cannot be set
    with other alignment-requiring CAPs, so we have to return 0 for all the
    other alignement CAPs.
    
    This avoids some unnecessary software vertex translate fallback.
    
    cc: mesa-stable
    
    Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22689>
    (cherry picked from commit c661f38342dfb235ff8e1283e5d3c16d432e7ca4)
    
  • 7ddbf31e
    by Rhys Perry at 2023-04-26T17:37:27+01:00
    ac/nir/ps: fix null export write mask miss set to 0xf
    
    Fixes: c1821544562 ("ac/nir: add ac_nir_lower_ps")
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Qiang Yu <yuq825@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22199>
    (cherry picked from commit 01f4addc18eb49838faa3b905abf79b05e72f07b)
    
  • ca6ceb43
    by Pavel Ondračka at 2023-04-26T17:37:27+01:00
    r300: fix unconditional KIL on R300/R400
    
      0: KIL -none.1111
    
    Negate is not allowed for texturing opcodes, so the incorrect swizzle
    was detected, however later optimization, where we try to rewrite incorrect
    swizzles from constant (immediate) registers by adding a new ones with
    correct order was interfering and not handling this correctly, so we
    ended with
    
    CONST[0] = {    -1.0000    -1.0000    -1.0000    -1.0000 }
      0: KIL const[0].xyz-w;
    
    Even if it would get the swizzle right, texturing opcodes can't read from
    constant registers, so just skip it and let this be handled by a later
    part which inserts an extra mov instead.
    
    Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
    Reviewed-by: Filip Gawin <filip@gawin.net>
    Fixes: a8e1e5b5c2aeb7c2fb4eff2203a026090f0853b9
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22704>
    (cherry picked from commit db6c3cd13ded5c4a89fb8dbfaef714432b8e1ed9)
    
  • e2066032
    by Rhys Perry at 2023-04-26T17:37:27+01:00
    aco: don't move exec reads around exec writes
    
    Fixes flickering and blocky plants in Jedi: Fallen Order.
    
    Also fixes flickering squares in The Last of Us Part 1.
    
    fossil-db (navi21):
    Totals from 92 (0.07% of 135636) affected shaders:
    Instrs: 35324 -> 35354 (+0.08%); split: -0.03%, +0.11%
    CodeSize: 189568 -> 189668 (+0.05%); split: -0.03%, +0.08%
    Latency: 345305 -> 346529 (+0.35%); split: -0.02%, +0.37%
    InvThroughput: 78632 -> 78625 (-0.01%)
    SClause: 1955 -> 1972 (+0.87%); split: -0.61%, +1.48%
    Copies: 1311 -> 1304 (-0.53%); split: -0.69%, +0.15%
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8883
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8878
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22696>
    (cherry picked from commit 5e20fbd424543d2c919c8baae247f0d909659640)
    
  • d04b95b2
    by Eric Engestrom at 2023-04-26T18:05:26+01:00
    VERSION: bump for 23.1.0-rc3
    
  • 1a87638c
    by Timo Aaltonen at 2023-05-02T10:28:52+03:00
    Merge branch 'upstream-experimental' into debian-experimental
    
  • e283a3f8
    by Timo Aaltonen at 2023-05-02T11:35:06+03:00
    version bump
    
  • 533f29b7
    by Timo Aaltonen at 2023-05-02T14:32:53+03:00
    release to experimental
    

19 changed files:

The diff was not included because it is too large.

Reply to: