Commit graph

71052 commits

Author SHA1 Message Date
Mike Blumenkrantz
86d0fc7b38 zink: stop deferring resource object unrefs
now that batch state reset is threaded, this is unnecesary

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
cdb9bec202 zink: move buffer hashlist clear to normal batch state reset
this is threaded now so it doesn't need to be in the submit thread

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
a184a4ca30 zink: rename zink_batch_state::unref_resources -> unref_resource_objs
more accurate

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
3b39ecbdf8 zink: stop trying to oom prune batch states
this should be regular enough now that such checks are no longer
necessary

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
ffa5518c45 zink: stop using atomics to check fence submit/complete
this isn't actually achieving anything since reading a "wrong" value
here isn't harmful

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
d1f8cd54f4 zink: check ctx batch states first when finding a usable one
this ensures the completed ones get queued for recycling faster

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
067873d4a4 zink: defer batch state resets more competently
previously batch states would defer resource object destruction until
"later", which was somewhat unreliable in the event that the batch state
wasn't checked again for a long while

instead, defer all "large" batch states and then reset them in the submit
thread, which should yield more consistent results, including in scenarios
with multiple contexts in use

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
6dd081ab1b zink: null out zink_batch_state::next when reusing a batch state
this is harmless at present

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
cec2b1327b zink: split out batch state finding
should be no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:34 +00:00
Mike Blumenkrantz
6246590da1 zink: add a util function for appending a batch state
these are a singly-linked list with a tail pointer

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
2025-09-02 14:43:33 +00:00
Gert Wollny
c1611edc3a r600/sfn: remove superfluous semicolon
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37123>
2025-09-02 13:50:31 +00:00
Gert Wollny
d41ac790d0 r600/sfn: Increase limit for lowering local arrays to scratch
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37123>
2025-09-02 13:50:31 +00:00
Gert Wollny
47c1880275 r600: remove hack to force a new CF if TEX grad is set
The sfn scheduler takes care that we don't hit the slot limit for TEX
instructions when doing this.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37123>
2025-09-02 13:50:31 +00:00
Martin Roukala (né Peres)
4a42ea6785 nvk/ci: switch to default kernel to b2c's default kernel
This brings linux v6.16.3 to all CI-tron jobs.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37085>
2025-09-02 07:48:53 +00:00
Martin Roukala (né Peres)
40a632cb18 radv/ci: switch to default kernel to b2c's default kernel
This brings linux v6.16.3 to most jobs but the following ones:

* navi21/31: still waiting for the zerovram bug fix
* polaris10: 6.16 introduced an sdma-related hang that is being bisected

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37085>
2025-09-02 07:48:53 +00:00
Martin Roukala (né Peres)
20dfc94bf6 ci-tron: uprev b2c to v0.9.17
This brings also brings Linux v6.16.3 to r300 and etnaviv.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37085>
2025-09-02 07:48:53 +00:00
Rob Clark
c6aba9abfa freedreno/a6xx: Mark tex and samp descriptors for dumping
Fixes: c1aaef71da ("freedreno/a6xx: Make tex/samp descriptors a normal BO")
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37129>
2025-09-02 01:07:31 +00:00
Rob Clark
39d8dcabf2 freedreno/a6xx: Disallow impossible image swizzles
The image instructions can't do arbitrary swizzles, so L/LA/I formats
would require shader lowering.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37129>
2025-09-02 01:07:31 +00:00
Eric Engestrom
a6bfb7e869 zink+lavapipe/ci: document recent flakes
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37127>
2025-09-01 20:46:42 +00:00
Eric Engestrom
9d73641b39 zink+radv/ci: document recent flakes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37127>
2025-09-01 20:46:42 +00:00
Christian Gmeiner
ff008db792 etnaviv: blt: Add hardware based mipmap generation
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This provides a hardware-accelerated path for mipmap generation
on supported formats.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35991>
2025-09-01 19:10:34 +00:00
Christian Gmeiner
23b26c94f5 etnaviv: blt: Extend translate_blt_format(..)
Add A8_UNORM, L8_UNORM, and L8A8_UNORM format translations to
translate_blt_format(..) to enable BLT-based mipmap generation for
these formats.

This enables passing dEQP-GLES2/3 functional texture mipmap
generation tests for these additional formats.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35991>
2025-09-01 19:10:34 +00:00
David Rosca
2667db1114 radeonsi/vcn: Correctly set chroma location with EFC
EFC supports horizontal left and vertical top/center.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36977>
2025-09-01 10:30:38 +00:00
Ashley Smith
b35bb9f5c7 panfrost: Enable shader_atomic_int64 for gallium
Vulkan support was added previously, enable gallium support.

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Mary Guillemard <mary.guillemard@collabora.com>
Signed-off-by: Ashley Smith <ashley.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37051>
2025-09-01 08:22:10 +00:00
Karol Herbst
24c7e247af rusticl: implement cl_khr_external_semaphore
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:17 +00:00
Karol Herbst
daf777df8c rusticl: implement cl_khr_semaphore
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:17 +00:00
Karol Herbst
99bf8fc4a8 rusticl: add stubs for semaphores and external_memory
The OpenCL CTS are using some of them without their related extension
advertised. Just stub them all out so it's all there.

Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:17 +00:00
Karol Herbst
389577c8bb radeonsi: implement pipe_screen::semaphore_create
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
51d03ba1b9 zink: implement pipe_screen::semaphore_create
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
129f22140c zink: factor out fence creation function
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
64fb3c81af rusticl/mesa: wire up semaphores
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
cc32c5c2eb gallium: add pipe_screen::semaphore_create
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
9bacd232b8 gallium/noop: add fence_server_signal
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
712734d600 rusticl/util: add MultiValProperties
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
5d29acf23d rusticl/event: fix create_and_queue for deps in error states
Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Karol Herbst
a7966f693b rusticl/device: add DeviceCaps::has_create_fence_fd and use it
Device::is_gl_sharing_supported was calling helper_ctx() but that can
block randomly for any reason, so let's not do that.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36007>
2025-08-31 13:12:16 +00:00
Marek Olšák
9e16ed7a13 ac/nir: switch nir_load_smem_amd uses to ac_nir_load_smem wrapper
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
ac_nir_load_smem will use load_global_amd

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37101>
2025-08-30 15:04:32 -04:00
Marek Olšák
4c87d002e3 aco,radeonsi: expand 32-bit shader arg pointers to 64 bits for ACO
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37101>
2025-08-30 15:04:32 -04:00
Seán de Búrca
70794de792 rusticl/kernel: delay calculation of CSO info until kernel creation
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37036>
2025-08-30 09:59:54 -07:00
Eric Engestrom
ba292ac34a zink+radv/ci: add traces job on gfx1201
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37010>
2025-08-30 14:53:55 +00:00
Eric Engestrom
e0417ea468 zink+radv/ci: add traces job on vangogh
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37010>
2025-08-30 14:53:55 +00:00
Karol Herbst
0478d83eae rusticl/kernel: rework KernelExecBuilder::get_resources_and_globals to reduce allocations
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:53 +00:00
Karol Herbst
0b80bf3ee0 rusticl/kernel: allocate the full input buffer at creation time
This should save us random reallocations of the input buffer lowering
kernel launch overhead by a bit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:53 +00:00
Karol Herbst
cfbe6020dc rusticl/kernel: add KernelExecBuilder::input
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:53 +00:00
Karol Herbst
183cbb0862 rusticl/kernel: move workgroup id offset handling into KernelExecBuilder
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:52 +00:00
Karol Herbst
3edb4daba2 rusticl/kernel: add KernelExecBuilder::get_resources_and_globals
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:52 +00:00
Karol Herbst
89f35e99a4 rusticl/kernel: add KernelExecBuilder::add_zero_padding
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:52 +00:00
Karol Herbst
0dc2a8fc01 rusticl/kernel: add KernelExecBuilder::add_values
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:51 +00:00
Karol Herbst
f83cfe7b21 rusticl/kernel: move add_sysval into KernelExecBuilder
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:51 +00:00
Karol Herbst
955c83992b rusticl/kernel: move add_global into KernelExecBuilder
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
2025-08-30 14:36:50 +00:00