Mike Blumenkrantz
13ea671b68
zink: simplify state iterating in find_completed_batch_state()
...
this is a bit easier to read
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37306 >
2025-09-11 17:54:22 +00:00
Mike Blumenkrantz
a6918f1bed
zink: don't init batch descriptors for copy contexts
...
these are never used and waste memory
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37306 >
2025-09-11 17:54:22 +00:00
Eric Engestrom
2fe2ab2bd0
zink+nvk/ci: update test expectations
...
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/37302 >
2025-09-11 16:02:38 +00:00
Eric Engestrom
d195e64278
zink+turnip/ci: update test expectations
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37302 >
2025-09-11 16:02:38 +00:00
Eric Engestrom
4db3851b5a
zink+lvp/ci: document recent flakes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37302 >
2025-09-11 16:02:38 +00:00
Eric Engestrom
ce39a7e2a8
zink+radv/ci: document recent flakes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37302 >
2025-09-11 16:02:38 +00:00
Eric Engestrom
bcb66ddd28
zink+radv/ci: sort vangogh flakes
...
removes noise out of the next commit
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37302 >
2025-09-11 16:02:38 +00:00
Samuel Pitoiset
d46a114206
zink/ci: mark one test as crash/flake for turnip a618
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36174 >
2025-09-11 15:21:50 +00:00
Erik Faye-Lund
fc0418a69f
aux/pp: fixup sampler-view release
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Without this, the prost-processing mechanism crashes badly, whoops.
Fixes: 73da0dcddc ("gallium: eliminate frontend refcounting from samplerviews")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37290 >
2025-09-11 13:44:55 +00:00
Karol Herbst
b584b47d01
rusticl/mem: fix Image::read for 1Darray images
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Some drivers do not return identical strides when mapping 1Darray images
leading to data being written in the wrong place.
Cc: mesa-stable
Tested-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37284 >
2025-09-11 09:26:30 +00:00
Rob Clark
6ab682e5f2
freedreno/blitter: Don't ignore blit swizzle
...
Noticed by inspection.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37279 >
2025-09-11 03:08:54 +00:00
Rob Clark
250dba1dce
freedreno/a6xx: Fallback to original blit in the snorm_copy path
...
Unlike z/s blits, where we want the fallback to use the re-written blit,
we don't want this in the handle_snorm_copy_blit() path.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37279 >
2025-09-11 03:08:54 +00:00
Valentine Burley
fd6d285417
zink/ci: Add a new Minecraft restricted trace
...
From @zmike, it exposes a very niche corner case bug in zink.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37270 >
2025-09-10 14:35:23 +00:00
David Rosca
9d9fc1fe72
radeonsi/vcn: Get rid of PIPE_ALIGN_IN_BLOCK_SIZE
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37143 >
2025-09-10 13:27:54 +00:00
David Rosca
8eb84f8854
radeonsi/vcn: Fix calculating QP map region dimensions
...
It needs to be aligned to block size otherwise it would skip last
row/column on resolutions like 1080p.
Cc: mesa-stable
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37143 >
2025-09-10 13:27:54 +00:00
Mike Blumenkrantz
5fefb9e795
zink: flag vertex element state for rebind after vstate draws
...
vstate draws bind their own elements unrelated to the bound
gallium elements, so any draw occurring after a vstate draw must
rebind to ensure the correct ones are bound
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13570
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37274 >
2025-09-10 13:06:07 +00:00
David Rosca
a03a79aa9d
pipe: Remove PIPE_VIDEO_CAP_PREFERS/SUPPORTS_INTERLACED
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36632 >
2025-09-10 12:33:57 +00:00
David Rosca
6954460899
radeonsi/video: Remove support for interlaced buffers
...
This is not used anymore with VDPAU removed.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36632 >
2025-09-10 12:33:57 +00:00
David Rosca
223d3ec433
gallium/vl: Remove now unused filters
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36632 >
2025-09-10 12:33:57 +00:00
David Rosca
4b54277d2e
Remove VDPAU
...
VDPAU only supports X11 and GL interop. There is no Wayland or Vulkan
interop support. The API has limitations that makes it impossible to
correctly decode certain streams.
Application support is also very limited, and VAAPI is always a better
choice over VDPAU.
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36632 >
2025-09-10 12:33:57 +00:00
Mike Blumenkrantz
dee9600ac7
zink: eliminate buffer refcounting to improve performance
...
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/36296 >
2025-09-09 20:47:38 +00:00
Mike Blumenkrantz
b3133e250e
gallium: add pipe_context::resource_release to eliminate buffer refcounting
...
refcounting uses atomics, which are a significant source of CPU overhead
in many applications. by adding a method to inform the driver that
the frontend has released ownership of a buffer, all other refcounting
for the buffer can be eliminated
see MR for more details
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36296 >
2025-09-09 20:47:38 +00:00
Mike Blumenkrantz
7c1c2f8fce
zink: ensure transient surface is created when doing msaa expand
...
forgetting this can lead to res->transient being NULL
Fixes: ef3f798957 ("zink: prune zink_surface down to the imageview and create/fetch on demand")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37257 >
2025-09-09 19:10:25 +00:00
Mike Blumenkrantz
8eca6ee134
zink: just reference compute progs to batch on delete
...
eliminates a bunch of pointless refcounting
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37139 >
2025-09-09 16:14:16 +00:00
Mike Blumenkrantz
1e07f58c62
zink: do bindless init when binding a bindless shader, not on create
...
this avoids doing bindless init in multi-context scenarios where one
context is used solely for shader compilation
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37139 >
2025-09-09 16:14:16 +00:00
Mike Blumenkrantz
e21438192a
zink: set current compute prog after comparing against current compute prog
...
not sure how this was never caught before now?
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37139 >
2025-09-09 16:14:16 +00:00
Mike Blumenkrantz
3fecf68784
zink: only set compute module info on dispatch (after compile fence)
...
this otherwise can attempt to access thread data
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37139 >
2025-09-09 16:14:14 +00:00
Gert Wollny
b7ac5d8453
r600/sfn: Optimize pred(not X != 0) to pred(X == 0)
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:54 +00:00
Gert Wollny
125ce0f909
r600/sfh: Handle 64 bit comparisons in predicate optimization
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:54 +00:00
Gert Wollny
abe9b61212
r600/sfn: relax restrictions when optimizing predicate evaluation with a register
...
If the comparison comes right before the predicate evaluation it still
can be contracted.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:53 +00:00
Gert Wollny
bbbb2be123
r600/sfn: emit 64 bit predicates like normal ALU ops
...
Also clean up the scheduler changes we did to deal with one-slot and
two slot predicate ops at the same time.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:53 +00:00
Gert Wollny
51d8ca2dff
r600/sfn: optimize comparison results
...
* optimize not(compare(a,b)), nir_opt_algebraic does this only if the
comparison result is used only once, but on a vector arch we still get
an advantage when doing this, because it reduces dependencies.
* optimize b2f32(compare(a,b)), this is r600 specific
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:53 +00:00
Gert Wollny
82dffae611
r600/sfn: don't use dummy regs in alu ops when no dest register is needed
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:53 +00:00
Gert Wollny
4f1f5aa02d
r600/sfn: Add handling of channels for dest-less ALU ops
...
This will be used to get rid of some dummy register handling.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:52 +00:00
Gert Wollny
90b2fbbab4
r600/sfn: Pass chan and dest_clamp to alu op if no dest register is given
...
v2: move common code
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:52 +00:00
Gert Wollny
4dd3951323
r600/sfn: fix op2_pred_sete_64 opcode
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205 >
2025-09-09 12:11:52 +00:00
Tomeu Vizoso
5eab4f06d5
teflon/tests: Remove dependency on xtensor
...
Upstream has been moving headers around and breaking users.
Because we don't use it for much right now, drop the dependency
altogether by open coding some rand() helpers.
Issue: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13681
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37220 >
2025-09-09 11:07:19 +02:00
Yonggang Luo
773a7f347a
clang-format: Update the .clang-format files to conformance clang-format json-schema
...
The document is at
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
The json-schema at
https://www.schemastore.org/clang-format.json
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37235 >
2025-09-09 07:04:55 +00:00
Karol Herbst
dcfa4fafca
rusticl: add a bunch of trivial tests
...
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/35188 >
2025-09-09 00:49:33 +00:00
norablackcat
ccf099d0d1
rusticl: add Test targets
...
v2: Add more targets and a little test lib to add stubs for missing symbols
v3: Condition building tests on a recent enough meson (@leftmostcat)
v4: Set suite parameter for new tests (@leftmostcat)
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188 >
2025-09-09 00:49:33 +00:00
Dallas Strouse
6af462b27f
rusticl/device: skip loading devices in cfg(test)
...
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188 >
2025-09-09 00:49:33 +00:00
Karol Herbst
85deec44d7
rusticl: specify allowed lints for tests in lib.rs
...
Sadly, meson doesn't allow us to specify custom flags for test targets yet
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188 >
2025-09-09 00:49:33 +00:00
Karol Herbst
06776969d6
rusticl: drop global allow statements
...
Just to stay consistent. We might want to use them instead of declaring
them inside meson, but I'd rather prefer we have a consistent list across
all crates and that's easier done in meson.
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188 >
2025-09-09 00:49:33 +00:00
norablackcat
af269d3394
rusticl: fix unit tests
...
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188 >
2025-09-09 00:49:32 +00:00
Karol Herbst
1b777e6cae
rusticl: drop unneeded dependency to generated sources
...
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35188 >
2025-09-09 00:49:32 +00:00
Mel Henning
eba08245a8
treewide: Spell indices correctly
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
LOLed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36184 >
2025-09-08 23:03:13 +00:00
Christian Gmeiner
72ba6bbbe3
r300: re-format using clang-format
...
No manual changes here, this is simply running
$ ninja -C build/ clang-format
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37224 >
2025-09-08 21:14:53 +00:00
Mike Blumenkrantz
28342d1f11
zink: correctly handle batch_id==0 in check_last_finished()
...
in some places this assert is used to hang check, but here we
can assume that the batch_id is always valid (i.e., not a hang) and
check it accordingly to avoid spurious crashes
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37239 >
2025-09-08 15:04:33 -04:00
Mike Blumenkrantz
683e3ea0af
zink: fix edgeflags check on program creation
...
can't check the shaders before the shaders are set
Fixes: a93685ef55 ("zink: add `has_edgeflags` flag to zink_shader and zink_gfx_program")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37239 >
2025-09-08 15:04:32 -04:00
Mike Blumenkrantz
a11a02d6f6
zink: clamp subgroup op return types to required int/uint types
...
required by spec
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37239 >
2025-09-08 15:04:32 -04:00