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


Commits:
4047c518 by Eric Engestrom at 2024-05-08T16:29:01+02:00
docs: add sha256sum for 24.0.7

- - - - -
58dfa780 by Eric Engestrom at 2024-05-10T22:52:36+02:00
.pick_status.json: Update to 18c53157318d6c8e572062f6bb768dfb621a55fd

- - - - -
6fc67be3 by José Expósito at 2024-05-10T22:52:42+02:00
meson: Update proc_macro2 meson.build patch

Update the proc-macro2/meson.build to include the changes from v1.0.81.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11071
Signed-off-by: José Expósito <jexpo...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28923>
(cherry picked from commit 18c53157318d6c8e572062f6bb768dfb621a55fd)

- - - - -
33d6e6f9 by Lionel Landwerlin at 2024-05-10T22:52:46+02:00
anv: fix ycbcr plane indexing with indirect descriptors

We need to add the plane index to compute the address from which to
load the descriptor (anv_sampled_image_descriptor in this case).

This was likely broken before we added direct descriptor support so
that gets a stable backport.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11125
Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Reviewed-by: Ivan Briano <ivan.bri...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29111>
(cherry picked from commit 665cad6408217c35a26f12ae0751441f213aecc6)

- - - - -
38485a49 by Karol Herbst at 2024-05-10T22:52:47+02:00
rusticl/event: use Weak refs for dependencies

This fixes a potential stack overflow when the dep chain of events gets
too long and droped all at the same time.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29089>
(cherry picked from commit a45f1990860db3a8da6d7251bb627a314dfb8423)

- - - - -
90012f1f by Mike Blumenkrantz at 2024-05-10T22:52:51+02:00
egl/x11: disable dri3 with LIBGL_KOPPER_DRI2=1 as expected

cc: mesa-stable

Acked-by: Daniel Stone <dani...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29106>
(cherry picked from commit 568807cf889060fe7c3bd5b9f11ced4d84966790)

- - - - -
57198d2c by Georg Lehmann at 2024-05-10T22:53:06+02:00
zink: use bitcasts instead of pack/unpack double opcodes

The pack/unpack double opcodes may flush denorms, and the nir ops are pure
bitcasts.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29125>
(cherry picked from commit 925fff229fdc963a02348c59ef30ebc3f814d59f)

- - - - -
cb375dfe by Mike Blumenkrantz at 2024-05-10T22:53:07+02:00
zink: add a batch ref for committed sparse resources

this ensures that the sparse commit will complete before the resource
is destroyed

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29123>
(cherry picked from commit 67a356742fd3ff0f03abac07161da6e5c2e1daca)

- - - - -
020d145f by Mike Blumenkrantz at 2024-05-10T22:53:08+02:00
u_blitter: stop leaking saved blitter states on no-op blits

drivers expect blitter to clean up after itself

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29122>
(cherry picked from commit cd004defd4920243b5b1ad2ca4f8a79e67e5900f)

- - - - -
5be42f69 by Rhys Perry at 2024-05-10T22:56:59+02:00
aco/waitcnt: fix DS/VMEM ordered writes when mixed

Signed-off-by: Rhys Perry <pendingchao...@gmail.com>
Reviewed-by: Georg Lehmann <dadschoo...@gmail.com>
Reviewed-by: Daniel Schürmann <dan...@schuermann.dev>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28981>
(cherry picked from commit 5b1b09ad429f180dd0b7758487b7e0557c8b094b)

- - - - -
9343ede6 by Eric Engestrom at 2024-05-13T11:09:20+02:00
.pick_status.json: Update to e154f90aa9e71cc98375866c3ab24c4e08e66cb7

- - - - -
6d23f70e by Eric Engestrom at 2024-05-13T11:09:56+02:00
.pick_status.json: Mark ae8fbe220ae67ffdce662c26bc4a634d475c0389 as denominated

- - - - -
254b300f by Mike Blumenkrantz at 2024-05-13T11:09:58+02:00
frontends/dri: only release pipe when screen init fails

the caller (driCreateNewScreen3) will always call dri_destroy_screen()
when these functions return failure, so releasing the screen
is always wrong

cc: mesa-stable

Reviewed-by: Adam Jackson <a...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29021>
(cherry picked from commit a1225e81c9d0d2b6ada9e6af51be710d2ae2d4dc)

- - - - -
ce7e1ca1 by Mike Blumenkrantz at 2024-05-13T11:10:00+02:00
frontends/dri: always init opencl_func_mutex in InitScreen hooks

this otherwise leads to a mismatch where some types of screen may have
the mutex initialized while others don't, in which case dri_release_screen()
will attempt to destroy an uninitialized mutex

cc: mesa-stable

Reviewed-by: Adam Jackson <a...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29021>
(cherry picked from commit bc15c95c7afe56cc0408aa2ba02a5a21f766547b)

- - - - -
0a312787 by Faith Ekstrand at 2024-05-13T11:10:10+02:00
nvk: Re-emit sample locations when rasterization samples changes

We need them for the case where explicit sample locations are not
enabled.  While we're at it, fix the case where rasterization_samples=0.
This can happen when rasterizer discard is enabled.  This fixes MSAA
resolves with NVK+Zink.  In particular, it fixes MSAA for the Unigine
Heaven and Valley benchmark.

This also fixes all of the spec@arb_texture_float@multisample-formats
piglit tests.

Fixes: 41d094c2cc1d ("nvk: Support dynamic state for enabling sample 
locations")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10786
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29147>
(cherry picked from commit a160c2a14e71bb36d420929b0cb408f6346d845d)

- - - - -
d68141bd by Faith Ekstrand at 2024-05-13T11:10:11+02:00
nvk/meta: Restore set_sizes[0]

Fixes: af3e7ba1057e ("nvk: Stash descriptor set sizes")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29147>
(cherry picked from commit c834644c4e4b39d65003b455e3be5e129767200d)

- - - - -
df810add by Bas Nieuwenhuizen at 2024-05-13T11:10:12+02:00
radv: Use zerovram for Enshrouded.

Two users now reporting that zerovram fixes hangs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10500
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29149>
(cherry picked from commit 79cb8842753e6dc7c10d6c5af1f1cf7ece5ecc75)

- - - - -
ca6431d9 by Konstantin Seurer at 2024-05-13T11:10:12+02:00
radv: Fix radv_shader_arena_block list corruption

Remove it from the previous list befor adding it to a new one.

cc: mesa-stable

Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28961>
(cherry picked from commit e050abc961d2d063f9d7cf419f43aaf17ba0b039)

- - - - -
c64129a0 by Konstantin Seurer at 2024-05-13T11:10:13+02:00
radv: Remove arenas from capture_replay_arena_vas

Avoids an use after free when looking up an arena.

cc: mesa-stable

Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28961>
(cherry picked from commit df82221bb32c73f111d60e02655339846136e2de)

- - - - -
9eb14991 by Konstantin Seurer at 2024-05-13T11:12:33+02:00
radv: Zero initialize capture replay group handles

radv_serialized_shader_arena_block is not tightly packed and using an
initializer list leaves the gaps uninitialized.

cc: mesa-stable

Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28961>
(cherry picked from commit 406dda70e7c9baa59c975eb64025e7c3b210c3bc)

- - - - -
abf8b28b by Mike Blumenkrantz at 2024-05-13T11:12:34+02:00
zink: clean up semaphore arrays on batch state destroy

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29152>
(cherry picked from commit 604573cf0a81c499667bb107b42c25e21bfa98db)

- - - - -
e462e3cc by Eric Engestrom at 2024-05-20T10:51:15+02:00
.pick_status.json: Update to a31996ce5a6b7eb3b324b71eb9e9c45173953c50

- - - - -
c2739fef by Antoine Coutant at 2024-05-20T10:52:17+02:00
drisw: fix build without dri3

commit 1887368df41 ("glx/sw: check for modifier support in the kopper 
path")
added dri3_priv.h header and dri3_check_multibuffer() function in drisw that
can be build without dri3.

Commit 4477139ec2e added a guard around dri3_check_multibuffer()
function but not around dri3_priv.h header.

Add HAVE_DRI3 guard around dri3_priv.h header.

Fixes: 1887368df41 ("glx/sw: check for modifier support in the kopper 
path")

v2: Remove the guard around dri3_check_multibuffer() function.

Signed-off-by: Romain Naour <romain.na...@smile.fr>
Signed-off-by: Antoine Coutant <antoine.cout...@smile.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478>
(cherry picked from commit 3163b65ba73c4c6343e1d3ee69db07721a3713bf)

- - - - -
c291a732 by Romain Naour at 2024-05-20T10:52:18+02:00
glxext: don't try zink if not enabled in mesa

Commit 7d9ea77b459 ("glx: add automatic zink fallback loading between hw 
and sw drivers")
added an automatic zink fallback even when the zink gallium is not
enabled at build time.

It leads to unexpected error log while loading drisw driver and
zink is not installed on the rootfs:

  MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so

Fixes: 7d9ea77b459 ("glx: add automatic zink fallback loading between hw 
and sw drivers")

Signed-off-by: Romain Naour <romain.na...@smile.fr>
Reviewed-by: Antoine Coutant <antoine.cout...@smile.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478>
(cherry picked from commit 02ab51a61eed8fed5940cf88df71f536ce14f0e2)

- - - - -
028dc895 by Patrick Lerda at 2024-05-20T10:52:19+02:00
clover: fix memory leak related to optimize

Indeed, the object returned by LLVMCreatePassBuilderOptions()
was not freed.

For instance, this issue is triggered with 
"piglit/bin/cl-api-build-program":
Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7f6b15abdf57 in operator new(unsigned long) 
(/usr/lib64/libasan.so.6+0xb2f57)
    #1 0x7f6afff6529e in LLVMCreatePassBuilderOptions 
llvm-18.1.5/lib/Passes/PassBuilderBindings.cpp:83
    #2 0x7f6b1186ee41 in optimize 
../src/gallium/frontends/clover/llvm/invocation.cpp:521
    #3 0x7f6b1186ee41 in 
clover::llvm::link_program(std::vector<clover::binary, 
std::allocator<clover::binary> > const&, clover::device 
const&, std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&, std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >&) 
../src/gallium/frontends/clover/llvm/invocation.cpp:554
    #4 0x7f6b1150ce67 in link_program 
../src/gallium/frontends/clover/core/compiler.hpp:78
    #5 0x7f6b1150ce67 in 
clover::program::link(clover::ref_vector<clover::device> const&, 
std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&, 
clover::ref_vector<clover::program> const&) 
../src/gallium/frontends/clover/core/program.cpp:78
    #6 0x7f6b11401a2b in clBuildProgram 
../src/gallium/frontends/clover/api/program.cpp:283

Fixes: 2d4fe5f2297 ("clover/llvm: move to modern pass manager.")
Signed-off-by: Patrick Lerda <patrick9...@free.fr>
Reviewed-by: Karol Herbst <kher...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29164>
(cherry picked from commit df39994d51b4c28201f1b9ca12e572692d8d169c)

- - - - -
74802851 by Yiwei Zhang at 2024-05-20T10:52:20+02:00
turnip: msm: clean up iova on error path

Fixes: e23c4fbd9b6 ("tu: Switch to userspace iova allocations if kernel 
supports it")
Signed-off-by: Yiwei Zhang <zzyi...@chromium.org>
Reviewed-by: Danylo Piliaiev <dpilia...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29173>
(cherry picked from commit 3909803849ef492e66dd4590fbf3bf51256efb22)

- - - - -
0598097e by Yiwei Zhang at 2024-05-20T10:54:18+02:00
turnip: msm: fix racy gem close for re-imported dma-buf

For dma-buf, if the import and finish occur back-2-back for the same
dma-buf, zombie vma cleanup will unexpectedly close the re-imported
dma-buf gem handle. This change fixes it by trying to resurrect from
zombie vmas on the dma-buf import path.

Fixes: 63904240f21 ("tu: Re-enable bufferDeviceAddressCaptureReplay")
Signed-off-by: Yiwei Zhang <zzyi...@chromium.org>
Reviewed-by: Danylo Piliaiev <dpilia...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29173>
(cherry picked from commit a1392394ba1de0fad8cbcf10bdece3d623c9d7a6)

- - - - -
5dbc8d49 by David Heidelberg at 2024-05-20T10:54:56+02:00
freedreno/ci: move the disabled jobs from include to the main file

Accidentally moved.

Fixes: 9442571664e5 ("ci: separate hiden jobs to -inc.yml files")

Signed-off-by: David Heidelberg <david.heidelb...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29155>
(cherry picked from commit d9a0373a65963dc0507538b77de68808c6652f94)

- - - - -
6eaf495a by Faith Ekstrand at 2024-05-20T10:55:02+02:00
nouveau/winsys: Take a reference to BOs found in the cache

Fixes: c370260a8f15 ("nouveau/winsys: Add dma-buf import support")
Reviewed-by: Dave Airlie <airl...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795>
(cherry picked from commit 19b143b7bc3865fed8c8b09156b85d8c41c32d6b)

- - - - -
20595e46 by Faith Ekstrand at 2024-05-20T11:00:53+02:00
drm-uapi: Sync nouveau_drm.h

Taken from drm-misc-next-fixes:

    commit 959314c438caf1b62d787f02d54a193efda38880
    Author: Mohamed Ahmed <mohamedahmedegypt2...@gmail.com>
    Date:   Thu May 9 23:43:52 2024 +0300

        drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations

Reviewed-by: Dave Airlie <airl...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795>
(cherry picked from commit 03c4a46fe5511d09b5b99a0a370e8f308a892549)

- - - - -
11559802 by Faith Ekstrand at 2024-05-20T11:00:53+02:00
nouveau/winsys: Add back nouveau_ws_bo_new_tiled()

This reverts commit ce1cccea98d6257f2015b32b92d826e4ebc0a7f9.  In this
new version, we also add a query for whether or not tiled BOs are
supported by nouveau.ko.

Reviewed-by: Dave Airlie <airl...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795>
(cherry picked from commit 3bb531d24599d8daa10c1cee631ea8ed3e9fa432)

- - - - -
ba4462df by Faith Ekstrand at 2024-05-20T11:02:02+02:00
vulkan/wsi: Bind memory planes, not YCbCr planes.

Reviewed-by: Joshua Ashton <jos...@froggi.es>
Fixes: f5433e4d6ce2 ("vulkan/wsi: Add modifiers support to 
wsi_create_native_image")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10176
Reviewed-by: Dave Airlie <airl...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795>
(cherry picked from commit 28342a581f926777f9923835525fd2f267edfd53)

- - - - -
368892e9 by Marek Olšák at 2024-05-20T12:40:10+02:00
util: shift the mask in BITSET_TEST_RANGE_INSIDE_WORD to be relative to b

so that users don't have to shift it at every use. It was supposed to be
like this from the beginning.

Fixes: fb994f44d91a4b947 - util: make BITSET_TEST_RANGE_INSIDE_WORD take a 
value to compare with

Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29187>
(cherry picked from commit 5502ecd7716045e76f13f007a4aa5f5653c80ecd)

- - - - -
d3b8a283 by Friedrich Vock at 2024-05-20T12:40:10+02:00
aco/tests: Insert p_logical_start/end in reduce_temp tests

Linear VGPR insertion will depend on a p_logical_end existing in the
blocks the VGPR is inserted in.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28041>
(cherry picked from commit 84c1870b655d4987da722f03b315d41da57d13ec)

- - - - -
1aaec51f by Friedrich Vock at 2024-05-20T12:40:10+02:00
aco/spill: Insert p_start_linear_vgpr right after p_logical_end

If p_start_linear_vgpr allocates a VGPR that is already blocked, RA
will try moving the blocking VGPR somewhere else. If
p_start_linear_vgpr is inserted right before the branch, that move will
be inserted after exec has been overwritten, which might cause the move
to be skipped for some threads.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28041>
(cherry picked from commit 590ea76104899edd6883fe50d9590f919b9e97d5)

- - - - -
69c7b250 by David Rosca at 2024-05-20T12:40:10+02:00
frontends/va: Only increment slice offset after first slice parameters

Fixes slice offset if app submits exactly one data buffer followed by
parameter buffers.

Fixes: 6746d4df6ea ("frontends/va: Fix AV1 slice_data_offset with multiple 
slice data buffers")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11133
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11138
Tested-by: Marcus Seyfarth <m.seyfa...@gmail.com>
Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29124>
(cherry picked from commit b33bb4077d7500232a5cadd956b5c8810bb5c9ba)

- - - - -
352d44ce by Yiwei Zhang at 2024-05-20T12:40:10+02:00
turnip: virtio: fix error path in virtio_bo_init

Fixes: f17c5297d7a ("tu: Add virtgpu support")
Signed-off-by: Yiwei Zhang <zzyi...@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29093>
(cherry picked from commit 585a87ae53a181ab2a0e73fca0e4d84f75523823)

- - - - -
699ec9c4 by Yiwei Zhang at 2024-05-20T12:40:10+02:00
turnip: virtio: fix iova leak upon found already imported dmabuf

There's a success path on found dmabuf while the iova won't be cleaned
up. This change defers iova alloc till lookup miss and also to prepare
for later racy dmabuf re-import fix.

Also documented a potential leak on error path due to unable to tell
whether a gem handle should be closed or not without refcounting.

Fixes: f17c5297d7a ("tu: Add virtgpu support")
Signed-off-by: Yiwei Zhang <zzyi...@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29093>
(cherry picked from commit 6ca192f586fe1470a97b6f34bce7761a760ce15d)

- - - - -
2c1cbf29 by Yiwei Zhang at 2024-05-20T12:40:10+02:00
turnip: virtio: fix racy gem close for re-imported dma-buf

Similar to the prior fix for msm. On the dmabuf import path, tu_bo_init
can be outside of the vma lock, but left inside for code simplicity.

Fixes: f17c5297d7a ("tu: Add virtgpu support")
Signed-off-by: Yiwei Zhang <zzyi...@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29093>
(cherry picked from commit 43bb9890708c0bc51159338395984e93fbf6af35)

- - - - -
a0e1b5f4 by Lionel Landwerlin at 2024-05-20T12:40:10+02:00
anv: fix push constant subgroup_id location

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Fixes: 7c76125db2 ("anv: use 2 different buffers for surfaces/samplers in 
descriptor sets")
Reviewed-by: Ivan Briano <ivan.bri...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25814>
(cherry picked from commit 3716bd704f8259545d34c73c2d065be7008f147f)

- - - - -
eac0e52c by Lionel Landwerlin at 2024-05-20T12:40:10+02:00
nir/divergence: add missing load_printf_buffer_address

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Cc: mesa-stable
Reviewed-by: Karol Herbst <kher...@redhat.com>
Reviewed-by: Ivan Briano <ivan.bri...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25814>
(cherry picked from commit 8d336f069e8a354e8fb0b7c69968d0e5d86af460)

- - - - -
11f595f5 by Karol Herbst at 2024-05-20T12:40:11+02:00
Revert "rusticl/event: use Weak refs for dependencies"

I didn't like the solution and I _think_ it even introduced a potential
regressions involving releasing failed events and that causing dependents
to run and succeed regardless.

This reverts commit a45f1990860db3a8da6d7251bb627a314dfb8423.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29190>
(cherry picked from commit 2f1f98e8468a92d4f5e7f97fa3e674ec338f9394)

- - - - -
30ddd43e by Karol Herbst at 2024-05-20T12:40:11+02:00
event: break long dependency chains on drop

This prevents stack overflows on drop without making it expensive to read
from dependencies (e.g. my attempt to use Weak instead).

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29190>
(cherry picked from commit 48c752d3e060fc62dcc5ed228c2464efc6591029)

- - - - -
1bf18474 by Karol Herbst at 2024-05-20T12:40:11+02:00
rusticl/mesa/context: flush context before destruction

Drivers might still be busy doing things and not properly clean things up.

Fixes a rare crash on applicatione exits with some drivers.

Fixes: 50e981a0504 ("rusticl/mesa: add fencing support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29223>
(cherry picked from commit f1662e9bc96705fd1ae596db6eba8d0b873eec61)

- - - - -
331d4408 by David Rosca at 2024-05-20T12:40:11+02:00
radeonsi: Update buffer for other planes in si_alloc_resource

The buffer is shared with all planes, so it needs to be updated
in all other planes. This is already done in si_texture_create_object
when creating the buffer, but it was missing when reallocating
in si_texture_invalidate_storage.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11155
Cc: mesa-stable
Reviewed-by: Pierre-Eric Pelloux-Prayer 
<pierre-eric.pelloux-pra...@amd.com>
Reviewed-by: Marek Olšák <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29216>
(cherry picked from commit c522848d5afd598ac16d4dd9fdaf498111ee0d0c)

- - - - -
450ad166 by Patrick Lerda at 2024-05-20T12:40:11+02:00
r600: fix vertex state update clover regression

This change handles the case when "vertex_fetch_shader.cso" is null,
it implements the previous behavior in this specific case. This
situation is happening with clover.

For instance, this issue is triggered with 
"piglit/bin/cl-custom-buffer-flags":
==6467==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 
0x7ff92908fe6e bp 0x7ffe86ae5ad0 sp 0x7ffe86ae5a30 T0)
==6467==The signal is caused by a READ memory access.
==6467==Hint: address points to the zero page.
    #0 0x7ff92908fe6e in evergreen_emit_vertex_buffers 
../src/gallium/drivers/r600/evergreen_state.c:2123
    #1 0x7ff92908444b in r600_emit_atom 
../src/gallium/drivers/r600/r600_pipe.h:627
    #2 0x7ff92908444b in compute_emit_cs 
../src/gallium/drivers/r600/evergreen_compute.c:798
    #3 0x7ff92908444b in evergreen_launch_grid 
../src/gallium/drivers/r600/evergreen_compute.c:927
    #4 0x7ff9349f9350 in clover::kernel::launch(clover::command_queue&, 
std::vector<unsigned long, std::allocator<unsigned long> > 
const&, std::vector<unsigned long, std::allocator<unsigned long> 
> const&, std::vector<unsigned long, std::allocator<unsigned 
long> > const&) ../src/gallium/frontends/clover/core/kernel.cpp:105
    #5 0x7ff9349c331d in std::function<void 
(clover::event&)>::operator()(clover::event&) const 
/usr/include/c++/11.4.0/bits/std_function.h:590
    #6 0x7ff9349c331d in clover::event::trigger() 
../src/gallium/frontends/clover/core/event.cpp:54
    #7 0x7ff9349c82f1 in 
clover::hard_event::hard_event(clover::command_queue&, unsigned int, 
clover::ref_vector<clover::event> const&, std::function<void 
(clover::event&)>) ../src/gallium/frontends/clover/core/event.cpp:138
    #8 0x7ff9348daa47 in create<clover::hard_event, 
clover::command_queue&, int, clover::ref_vector<clover::event>&, 
clEnqueueNDRangeKernel(cl_command_queue, cl_kernel, cl_uint, const size_t*, 
const size_t*, const size_t*, cl_uint, _cl_event* const*, 
_cl_event**)::<lambda(clover::event&)> > 
../src/gallium/frontends/clover/util/pointer.hpp:241
    #9 0x7ff9348daa47 in clEnqueueNDRangeKernel 
../src/gallium/frontends/clover/api/kernel.cpp:334

Fixes: 659b7eb2 ("r600: better tracking for vertex buffer emission")
Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10079
Signed-off-by: Patrick Lerda <patrick9...@free.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29163>
(cherry picked from commit f8a1d9f787908612d234c5e7ffeaab825c5b7d7a)

- - - - -
93572f4e by David Rosca at 2024-05-20T12:40:11+02:00
frontends/va: Store slice types for H264 decode

Cc: mesa-stable
Reviewed-by: Leo Liu <leo....@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29055>
(cherry picked from commit 9837dab4bdbb7fd438b443378570b8224f50be38)

- - - - -
ea6c8484 by David Rosca at 2024-05-20T12:40:11+02:00
radeonsi/vcn: Ensure DPB has as many buffers as references

In case of corrupted streams (or application bugs) the number
of references may not be equal to DPB size. This needs to be fixed by
filling the missing slots with dummy buffers.

Cc: mesa-stable
Reviewed-by: Leo Liu <leo....@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29055>
(cherry picked from commit 47b6ca47d0be9e218a7ca3f47f90de2ed6c174f7)

- - - - -
c3f11a40 by David Rosca at 2024-05-20T12:40:11+02:00
radeonsi/vcn: Allow duplicate buffers in DPB

In case of missing frames (eg. when decoding corrupted streams), there
will be duplicate buffers and all of them needs to be in DPB to keep
the layout correct for decoding.

Cc: mesa-stable
Reviewed-by: Leo Liu <leo....@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29055>
(cherry picked from commit 2ef3a34f1a2d404ee28b2edd9007aeb203419e24)

- - - - -
0fd4f156 by David Rosca at 2024-05-20T12:40:11+02:00
radeonsi/vcn: Ensure at least one reference for H264 P/B frames

The original fix from

0f3370eede2 ("raseonsi/vcn: fix a h264 decoding issue")

would in some cases also trigger for I frames with interlaced streams.
Instead of checking used_for_reference_flags, use slice type and
only add one reference for P/B frames if needed.
This change still fixes playback of the sample from the original issue,
avoids the issue with interlaced streams and also fixes the case where
application provides no references at all.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11060
Cc: mesa-stable
Reviewed-by: Leo Liu <leo....@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29055>
(cherry picked from commit 5f4a6b5b00b392a2c98f8565fb967871bdd24a29)

- - - - -
d5675923 by Karol Herbst at 2024-05-20T12:40:11+02:00
nir/lower_cl_images: set binding also for samplers

Fixes https://github.com/darktable-org/darktable/issues/16717 on radeonsi.

Fixes: 31ed24cec7c ("nir/lower_images: extract from clover")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29230>
(cherry picked from commit 564e569072d874a61097f1a622184975855207c8)

- - - - -
16c64c18 by Mike Blumenkrantz at 2024-05-20T12:40:11+02:00
nir/lower_aaline: fix for scalarized outputs

this otherwise was broken

cc: mesa-stable

Acked-by: Marek Olšák <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28753>
(cherry picked from commit e28061c5021b7902b39d8e93ae0e2d12682b1fbe)

- - - - -
8c913751 by Mike Blumenkrantz at 2024-05-20T12:40:12+02:00
nir/linking: fix nir_assign_io_var_locations for scalarized dual blend

this would previously assign all scalar variables to the highest
driver location

cc: mesa-stable

Acked-by: Marek Olšák <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28753>
(cherry picked from commit ffe54ca2935284f0248be3f04606e0fc8ff7990d)

- - - - -
c15886ec by David Heidelberg at 2024-05-20T12:40:12+02:00
winsys/i915: depends on intel_wa.h

Prevent compilation failure due to not-yet generated intel_wa header.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11174
Cc: mesa-stable

Reviewed-by: Mark Janes <markja...@swizzler.org>
Signed-off-by: David Heidelberg <david.heidelb...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29252>
(cherry picked from commit 08659a0baaae74dfec90f6a871005357cacfca3c)

- - - - -
8f3dfb0a by Eric Engestrom at 2024-05-22T18:48:26+02:00
docs: add release notes for 24.0.8

- - - - -
d6695f16 by Eric Engestrom at 2024-05-22T18:48:39+02:00
VERSION: bump for 24.0.8

- - - - -
01ae3e9a by Timo Aaltonen at 2024-05-23T09:26:05+03:00
Merge branch 'upstream-unstable' into debian-unstable

- - - - -
22fee7cf by Timo Aaltonen at 2024-05-23T12:58:33+03:00
release to sid

- - - - -


30 changed files:

- .pick_status.json
- VERSION
- debian/changelog
- docs/relnotes.rst
- docs/relnotes/24.0.7.rst
- + docs/relnotes/24.0.8.rst
- include/drm-uapi/nouveau_drm.h
- src/amd/ci/radv-navi21-aco-flakes.txt
- src/amd/ci/radv-navi31-aco-flakes.txt
- src/amd/compiler/aco_insert_waitcnt.cpp
- src/amd/compiler/aco_reduce_assign.cpp
- src/amd/compiler/aco_spill.cpp
- src/amd/compiler/tests/test_insert_waitcnt.cpp
- src/amd/compiler/tests/test_reduce_assign.cpp
- src/amd/vulkan/radv_device.c
- src/amd/vulkan/radv_pipeline_rt.c
- src/amd/vulkan/radv_shader.c
- src/amd/vulkan/radv_shader.h
- src/compiler/nir/nir_divergence_analysis.c
- src/compiler/nir/nir_linking_helpers.c
- src/compiler/nir/nir_lower_cl_images.c
- src/egl/drivers/dri2/platform_x11.c
- src/freedreno/ci/gitlab-ci-inc.yml
- src/freedreno/ci/gitlab-ci.yml
- src/freedreno/vulkan/.clang-format
- src/freedreno/vulkan/tu_knl.h
- src/freedreno/vulkan/tu_knl_drm_msm.cc
- src/freedreno/vulkan/tu_knl_drm_virtio.cc
- src/gallium/auxiliary/nir/nir_draw_helpers.c
- src/gallium/auxiliary/util/u_blitter.c


The diff was not included because it is too large.


View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/compare/89ce99ffb0160a0f227b065bb6fdf269aa3d6cf7...22fee7cf6231f2c818ab1ce1ccdbf22e10cfc246

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/compare/89ce99ffb0160a0f227b065bb6fdf269aa3d6cf7...22fee7cf6231f2c818ab1ce1ccdbf22e10cfc246
You're receiving this email because of your account on salsa.debian.org.


Reply via email to