Commit graph

70866 commits

Author SHA1 Message Date
David Rosca
4893e09c10 radeonsi/vcn: Enable AV1 decode workaround for gfx1153
Cc: mesa-stable
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36725>
2025-08-20 09:51:32 +00:00
Valentine Burley
021a3f768b zink/ci: Update expectations from nightly jobs
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Document current failures and flakes from the nightly jobs.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36608>
2025-08-20 08:53:36 +00:00
Valentine Burley
c4d8c5ed4a zink/ci: Switch to quick_gl profile for nightly ANV jobs
The full nightly jobs have been failing for a while without much interest
in them.

Reduce Piglit coverage by switching to the `quick_gl` profile, which
is what the pre-merge jobs run.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36608>
2025-08-20 08:53:36 +00:00
Yonggang Luo
bdda1cf5ef va: Use { 0 } initialize struct
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
../src/gallium/frontends/va/config.c(574): error C2059: syntax error: '}'

MSVC 2019 doesn't support for it yet

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36843>
2025-08-20 02:02:55 +00:00
Yonggang Luo
76c1243dc8 va: Remove unused variable pscreen
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36843>
2025-08-20 02:02:54 +00:00
Eric Engestrom
a5b516804e r300/ci: document flake
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36857>
2025-08-20 00:41:19 +00:00
Eric Engestrom
9cb27063fd zink+turnip/ci: document fixed tests
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36857>
2025-08-20 00:41:19 +00:00
Eric Engestrom
19021733e6 zink+turnip/ci: document regression in b22806705c...cac3b4f404
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36857>
2025-08-20 00:41:19 +00:00
Yonggang Luo
2a0a5a3e3f d3d10umd: Fixes building with mingw/gcc and windows sdk/ddk 10.0.26100.0
Avoid recursive include between DriverIncludes.h and Debug.h

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36844>
2025-08-19 23:22:07 +00:00
Mike Blumenkrantz
0d7e38f431 zink: improve deferred buffer barrier heuristics
this is only to catch the case of a bound descriptor being written to
by some operation other than its draw/dispatch descriptor bind,
so any non-write binds are ignored

previously those non-write binds were required because of how sync
analysis could drop non-write access, so that is fixed as well

also use the vbo bind count instead of the mask because why not

also also ignore non-write GENERAL image deferred sync because that shouldn't
need anything deferred

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36846>
2025-08-19 22:11:51 +00:00
Mike Blumenkrantz
cf5d41575b zink: remove UNSYNCHRONIZED map flag during unmap flush for non-subdata calls
this avoids a scenario where a non-subdata UNSYNCHRONIZED unmap triggers through
tc at the same time the frontend calls an UNSYNCHRONIZED subdata call
in the main thread, which desynchronizes the cmdbuf and hits an assert

Fixes: 8ee0d6dd71 ("zink: add a third cmdbuf for unsynchronized (not reordered) ops")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36846>
2025-08-19 22:11:51 +00:00
Mike Blumenkrantz
4d0650d188 zink: fix image sync deferral
each of these cases wasn't actually checking what the comment claimed
it was checking, which would add unnecessary deferred sync

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36846>
2025-08-19 22:11:51 +00:00
Mike Blumenkrantz
af7b39a22f zink: optimize a GENERAL layout case in pre-draw/dispatch barriers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36846>
2025-08-19 22:11:50 +00:00
Michal Krol
2385fa2098 gallium: Do not flush subnormals during tessellation.
D3D11 requires that subnormals are not flushed to zero
when tessellating primitives. Since we are flushing
subnormals during shader execution, we must temporarily
turn flushing off when calling the tessellator.

Reviewed-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36811>
2025-08-19 19:45:29 +00:00
Gert Wollny
8fc2b0d24c r600/sfn: Emit thread position as two-slot op
It doesn't change much though, because it always has to be scheduled
as in the xy channels.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:33 +00:00
Gert Wollny
b0bf1d914a r600/sfn: give more liberty to the channel selection in simple two-slot ops
Some ops on 64 bit data don't require the data to reside in neighboring
channels and can be executed as seperate 32 bit ops. In these cases we don't
need to pin the registers to a specific channel, but for scheduling it is better
that we make sure that both destination values reside in different channels, so
that they can be scheduled into one ALU group and reduce the probability of
read-port conflicts when used as source values.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:33 +00:00
Gert Wollny
206d50ba25 r600/sfn: op1v_flt64_to_flt32 as multi-slot instruction
With that the optimizer can better switch the channel.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:32 +00:00
Gert Wollny
2d88e9236d r600/sfn: Handle more ops in desk mask evaluation
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:32 +00:00
Gert Wollny
00c41ad03a r600/sfn: replace hard-coded multislot dot handling
More ops then op2_dot_ieee + op2_mul_ieee can be submitted
as multi-slot ops. Make it ease to handle additional opcodes
when splitting the alu op that has only one dst but requires
multiple slots. With that we can emit more multi-slot ops that
use consecutive slots and use a different opcode in the last slot.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:31 +00:00
Gert Wollny
f2916b3df4 r600/sfn: Fix the mods when splitting ALU op
In preparation of splitting 64 bit two slot ops with one 32 bit
dest register use the right start slot.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:31 +00:00
Gert Wollny
1ba8ff9fe6 r600/sfn: Take slot count into account when pinning registers
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:30 +00:00
Gert Wollny
77eaad8e21 r600/sfn: Fix test when allocating registers more freely
With the changes to the register pinning we have to update the test
to avoid failures later.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:29 +00:00
Gert Wollny
b6a917b6da r600/sfn: Only map ssa index to register index if pinning is not free
If we have more than one register that is associated with the same
ssa index, but can be allocated without a specific channel pinning,
then don't add it to the ssa.index/register.index map to not
re-use the same register index.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:29 +00:00
Gert Wollny
6e2f08633a r600/sfn: Take allowed dest mask into account in copy-prop
In addition, on Cayman some trans opts can use three or four channels,
and it may be an advantage to use the four channel version if the
result needs to be written to the w channel to reduce the all-over
ALU instruction group count.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36743>
2025-08-19 19:30:29 +00:00
Samuel Pitoiset
9eed511337 zink/ci: update list of flakes for NAVI31/VANGOGH/CEZANNE
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: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36808>
2025-08-19 11:51:30 +00:00
Samuel Pitoiset
72790754c0 zink/ci: skip one piglit subset that randomly hangs on RADV
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36808>
2025-08-19 11:51:30 +00:00
Gert Wollny
c221956b68 r600/sfn: remove early emmission of ALU last op
The scheduler sets the flag when scheduling the ALU
instructions into ALU groups, so there is no need to
set these flags early and it was already done inconsistently
anyway. The only expection is the ALU predicate instructions,
because it is not yet handled direcly by the scheduler.

Clanup the use of alu_write too.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36790>
2025-08-19 11:03:40 +00:00
Olivia Lee
78d3b9cd0a perfetto: allow specifying clock domain for cpu timestamps
Everything is currently using CLOCK_BOOTTIME, which is perfetto's
default, and matches the previous behavior. On some hardware, different
clocks may be better synchronized with the gpu clock.

Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34390>
2025-08-19 09:50:36 +00:00
Max R
d4586224fb d3d10umd: Flush on present
To ensure all submitted commands are visible on screen flush them.
Fixes tri.cpp test with softpipe.

Signed-off-by: Max Ramanouski <max8rr8@gmail.com>
Signed-off-by: Max R <max8rr8@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36769>
2025-08-19 08:21:42 +00:00
Max R
53b5c759c0 d3d10umd: De-bufferize OutputMerger
Remove all references to union pipe_surface_desc. This also removes
support for buffer RenderTargetView, requires further investigation.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13577
Fixes: 05f8b59c90 ("gallium: delete union pipe_surface_desc")

Signed-off-by: Max Ramanouski <max8rr8@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36769>
2025-08-19 08:21:42 +00:00
Patrick Lerda
521b848ea8 r600: fix evergreen gds atomic_counter_comp_swap
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This change fixes the gds implementation of
atomic_counter_comp_swap which requires three arguments.
This update is based on 4e3b43f180 "r600/atomic: fix
ATOMCAS instruction." which was the tgsi implementation.

Note: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36554
is required for this change to work properly on cayman.

This change was tested on palm, cypress and barts. Here is the test fixed:
khr-gl4[5-6]/shader_atomic_counter_ops_tests/shaderatomiccounteropsexchangetestcase: fail pass

Cc: mesa-stable
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36254>
2025-08-19 06:41:50 +00:00
Corentin Noël
6da8752758 tgsi: Remove return type from tgsi_instruction_texture
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This return type is never used.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36765>
2025-08-15 08:03:04 +00:00
Yonggang Luo
5e51c707ed lavapipe: Revise HAVE_LIBDRM to guard on drm only variables
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: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Lucas Fryzek <lfryzek@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36731>
2025-08-15 05:58:23 +00:00
Karol Herbst
da8e990a0a rusticl: specify FD type when importing fences
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/36780>
2025-08-15 00:13:09 +00:00
Karol Herbst
f543b36178 rusticl/mesa: port PipeFence to use ThreadSafeCPtr
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:08 +00:00
Karol Herbst
ec88e83796 rusticl: handle failures when importing fences
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:08 +00:00
Karol Herbst
c3a331234d rusticl/icd: sort extension functions by extension name
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:07 +00:00
Karol Herbst
dda52143d4 rusticl/icd: qualify CLResult inside impl_cl_type_trait_base macro
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:07 +00:00
Karol Herbst
ad0402fc57 rusticl/util: drop uneccesary Arc in event_list_from_cl
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
495a46bf49 rusticl/util: use read_and_advance in Properties
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
4826e37f24 rusticl/util: add read_and_advance methods for pointers
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
060a084a12 rusticl: fix a bunch of warnings
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
2025-08-15 00:13:06 +00:00
Karol Herbst
a1aed20842 rusticl: implement cl_ext_immutable_memory_objects
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
d483566271 rusticl/mem: turn bool argument into enum in validate_mem_flags
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
bcec4acbd3 rusticl/mem: split out mem_flags validation for creation operations
validate_mem_flags is used by clCreate* and clGetSupportedImageFormats
which is a bit akward as those APIs have slightly different semantics on
the image flags and the clCreate* APIs support more flags with more
complex validation rules. And clGetSupportedImageFormats should be very
permissive in what combination of flags to accept.

Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
61ad2bdf7f rusticl/kernel: create shader constants as immutable
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:35 +00:00
Karol Herbst
c5f57f6594 rusticl/mesa: add ResourceType::Immutable
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
2025-08-14 18:40:34 +00:00
Yinjie Yao
4cb6094f2e ac,radeonsi/vcn: Use correct swizzle_mode for vcn4
On VCN4 SWIZZLE_MODE_8x8_1D_THIN_12_24BPP use different value
than previous VCN generations

Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36775>
2025-08-14 17:24:40 +00:00
Eric Engestrom
0aef7ede1e zink+radv/ci: give gfx1201 piglit tests a display to use
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/36579>
2025-08-14 18:10:10 +02:00
Eric Engestrom
d0ef3c02c7 zink+radv/ci: give vangogh piglit tests a display to use
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36579>
2025-08-14 18:10:10 +02:00