Pierre-Eric Pelloux-Prayer
d453045b87
radeonsi/tests: rename glcts_path -> vk_gl_cts_path
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36463 >
2025-10-15 08:27:10 +00:00
Pierre-Eric Pelloux-Prayer
522d19966a
radeonsi/tests: rename --no-xxx arguments
...
Use --xxx instead as it makes it easier to control
enablement/disablement of each suite.
vkcts is disabled by default.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36463 >
2025-10-15 08:27:10 +00:00
Pierre-Eric Pelloux-Prayer
6af562d0df
radeonsi/tests: add gfx11_5 to the list
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36463 >
2025-10-15 08:27:09 +00:00
Pierre-Eric Pelloux-Prayer
67c6f80a54
radeonsi/tests: allow to test radv
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36463 >
2025-10-15 08:27:09 +00:00
Pierre-Eric Pelloux-Prayer
ce97b6cd6f
radeonsi/tests: use black to fix style issues
...
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36463 >
2025-10-15 08:27:08 +00:00
Pierre-Eric Pelloux-Prayer
c0c95dc845
util: use F_DUPFD_QUERY on Linux
...
F_DUPFD_QUERY has been introduced in 6.10 exactly for the purpose
of telling if 2 fd points at the same file description so use it
first.
If it's not supported, we'll get r=-1 and errno=EINVAL, and we can
fallback on KCMP or epoll.
Acked-by: Simona Vetter <simona.vetter@ffwll.ch >
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34447 >
2025-10-15 07:58:12 +00:00
Pierre-Eric Pelloux-Prayer
17e286529b
util: mimic KCMP_FILE via epoll when KCMP is missing
...
On Linux platforms where KCMP isn't allowed epoll can be used
as a fallback mechanism to provide the same feature.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34447 >
2025-10-15 07:58:12 +00:00
Samuel Pitoiset
88f53906d8
amd,radv,radeonsi: add ac_emit_cp_pfp_sync_me()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:25 +00:00
Samuel Pitoiset
7ead034a06
amd,radv,radeonsi: add ac_emit_cp_copy_data()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:25 +00:00
Samuel Pitoiset
af169d7393
radv: use ac_emit_cp_{acquire,release}_mem_pws() when syncing GE rings
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:24 +00:00
Samuel Pitoiset
0e358cec52
amd,radv,radeonsi: add ac_emit_cp_release_mem_pws()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:24 +00:00
Samuel Pitoiset
c45035ceb4
amd,radv,radeonsi: add ac_emit_cp_acquire_mem_pws()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:23 +00:00
Samuel Pitoiset
6329e282b8
amd,radv,radeonsi: add ac_emit_cp_wait_mem()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:23 +00:00
Samuel Pitoiset
82cbfc964a
amd,radv: add ac_emit_write_data_imm()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:20 +00:00
Samuel Pitoiset
ac262c351f
amd,radv: add ac_emit_cond_exec()
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:20 +00:00
Samuel Pitoiset
34e445e1fc
radv: use COPY_DATA_DST_MEM when writing timestamps
...
Only for consistency.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37813 >
2025-10-15 07:35:19 +00:00
David Rosca
3e458d06b8
radeonsi/vcn: Support BT2020 matrix with EFC
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
8b194cb0ac
pipe: Remove pipe_video_vpp_color_standard_type
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
f59e0971b5
pipe: Remove PIPE_VIDEO_CAP_VPP_SUPPORT_HDR_INPUT/OUTPUT
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
a337a97429
gallium/vl: Remove vl_compositor_set_csc_matrix
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
a46aeff216
gallium/vl: Remove luma key support
...
This was only used for VDPAU.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
69717c257f
vl,frontends/va: Implement gamma and primaries conversion
...
This enables basic HDR support.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
5bc0df5aad
vl,frontends/va: Implement YUV->YUV matrix coeff conversion
...
Use separate matrix for YUV->RGB and RGB->YUV conversions.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
6e8a8d8ee7
frontends/va: Stop using vpp colors standard
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
acc4041302
radeonsi/vpe: Stop using vpp colors standard
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
99d6e5c078
radeonsi/vcn: Stop using vpp colors standard
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
27a3911460
frontends/va: Always advertise explicit color standard support
...
This has nothing to do with HDR support.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
40df7363b9
gallium/vl: Remove vl_csc_get_matrix
...
Not used anymore.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
9393a0510b
frontends/va: Use new RGB YUV conversion matrix
...
This adds support for SMPTE240M, BT2020 and RGB->YUV conversion for
all color standards and color ranges.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
a284bff8ad
frontends/va: Set color properties when not using explicit color standard
...
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
David Rosca
228b2ac2a3
gallium/vl: Add new function to get RGB YUV conversion matrix
...
This supports Identity, BT601, BT709, BT2020, SMPTE240M and color range
conversions in both directions.
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37058 >
2025-10-15 06:06:44 +00:00
Timothy Arceri
39fa54bc6e
Revert "Reapply "ci/freedreno: Skip overly-slow trace""
...
This reverts commit 2f799ef0f1 .
The trace should now run without timing out after the fix in the
previous commit.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:36 +00:00
Timothy Arceri
45a8cce5d6
util/range_remap: switch to using sorted array
...
Here we switch to using a sorted arrays for the binary search which
significantly speeds up the lookups. For a shader with ~8000
uniforms its up to 10x faster and the godot-tps-gles3-high.trace
in issue #13894 returns to its original runtime length before we
switched to using range remap in e052254066
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:36 +00:00
Timothy Arceri
2ea58908ae
util/range_remap: add util_range_switch_to_sorted_array() helper
...
This creates an array of the linked list elements to be used for
faster binary searches in the following patch, and frees the old
linked list.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:36 +00:00
Timothy Arceri
f8326657f8
util/range_remap: use child memory context for list
...
This will allow us to easily free the list when we switch to
a sorted array in a following patch
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:35 +00:00
Timothy Arceri
9536de6eac
util/range_remap: split list node from range entry
...
This will allow us to create an array of entries without the
node member in a following patch.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:34 +00:00
Timothy Arceri
754c6d0f54
glsl/util: update util_range_remap to use range_remap struct
...
This will allow us to use the linked list for validation of inserts
during linking then switch to using an array for fast binary searches.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:34 +00:00
Timothy Arceri
35d5e903ac
util/range_remap: dont overwrite entry if ptr is NULL
...
If the ptr value is NULL and we match an existing entry during an
insert call we now just return the existing value. This allows us
to drop an extra lookup, this will become important as the
following patches change `util_range_remap()` lookups to use a
sorted array that is not created until after we have added all
entries to our linked list.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37754 >
2025-10-15 02:16:33 +00:00
Francisco Jerez
a48ecca4d9
intel/brw/gfx12.0+: Sync on all pending send messages after halt target.
...
This works around a long-standing synchronization issue consequence of
the HALT instruction used to implement FS discard not being considered
a control flow instruction by the back-end -- The fact that it doesn't
cause the CFG pass to introduce an edge in the graph means that the
software scoreboard pass is completely blind to the effect of discard
jumps on control flow, so it doesn't introduce the required
annotations to avoid data hazards when the discard path of the CFG is
taken. Note that because of the very limited set of instructions that
can follow the HALT target in a fragment shader this was very unlikely
to lead to issues in practice, but starting on xe3 it appears to have
become far more likely due to the use of SENDG, since SENDG requires
the scalar register to be set prior to the submission of the render
target write payloads, which can easily lead to a WaR hazard if there
was another SENDG before the HALT jump that wasn't done reading out
its payload from the GRF.
In an ideal world this would be avoided by having HALT be a normal
control flow instruction represented as an edge in the control flow
graph -- But unfortunately that would prevent the optimizations we
currently do that take advantage of the ability of reordering code
past the HALT instruction, so it would have a pretty large performance
cost. Instead this simply adds a SYNC.ALLWR instruction after the
HALT target to guarantee that all pending SEND messages have finished
execution -- That may also seem costly, however its cost in practice
appears to be minimal since at the point of the program when the
target HALT is executed there is almost nothing left to do other than
send out the render target write payloads, so any pending operations
had to be waited on at roughly this point of the program regardless.
There appear to be no statistically significant regressions in Traci
on neither BMG nor PTL. Fixes hangs observed on Dying Light 2 and
Cyberpunk on PTL.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13896
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13965
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14092
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37674 >
2025-10-15 01:40:22 +00:00
Lionel Landwerlin
988d3dbc39
intel/ci: remove old comments
...
Should have been removed with the CTS uprev.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37877 >
2025-10-15 01:10:49 +00:00
Faith Ekstrand
e88b579f1e
nil: Add GOBType::TegraColor
...
Reviewed-by: Mohamed Ahmed <mohamedahmedegypt2001@gmail.com >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37824 >
2025-10-15 00:30:34 +00:00
Faith Ekstrand
8a758fd38a
nil: Add a GOB_TYPE_MODIFIER_INFOS table
...
Instead of a bunch of switches which have to match, this introduces a
table which we can use to map bidirectionally from GOBType to
(GOBKindVersion, SectorLayout).
Backport-to: 25.2
Reviewed-by: James Jones <jajones@nvidia.com >
Reviewed-by: Mohamed Ahmed <mohamedahmedegypt2001@gmail.com >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37824 >
2025-10-15 00:30:33 +00:00
Mike Blumenkrantz
da2647f14e
zink: enable srgb-mutable for dmabufs when possible
...
this should "just work"
...except on intel
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37873 >
2025-10-14 23:33:00 +00:00
Mike Blumenkrantz
9d0e73335a
zink: enable GL_EXT_mesh_shader
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37788 >
2025-10-14 23:14:17 +00:00
Faith Ekstrand
f91f86dded
compiler/rust: Implement dfs() non-recursively
...
Recursion in Rust can be annoyingly expensive. The recursive DFS
implementation we have now is probably not terrible but these things
bloat in debug builds more than you'd expect. This replaceas it with a
non-recursive implementation which uses a Vec instead.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Reviewed-by: Lorenzo Rossi <git@rossilorenzo.dev >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37536 >
2025-10-14 22:47:40 +00:00
Faith Ekstrand
97febfde28
compiler/rust/cfg: Use DepthFirstSearch for finding reaches sets
...
Reviewed-by: Lorenzo Rossi <git@rossilorenzo.dev >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37536 >
2025-10-14 22:47:40 +00:00
Faith Ekstrand
76bba3ffba
compiler/rust/cfg: Use DepthFirstSearch for find_back_edges()
...
Reviewed-by: Lorenzo Rossi <git@rossilorenzo.dev >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37536 >
2025-10-14 22:47:40 +00:00
Faith Ekstrand
030005a772
compiler/rust/cfg: Use DepthFirstSearch for calc_dominance()
...
Reviewed-by: Lorenzo Rossi <git@rossilorenzo.dev >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37536 >
2025-10-14 22:47:40 +00:00
Faith Ekstrand
7f73a027ae
compiler/rust/cfg: Use DepthFirstSearch for rev_post_order_sort()
...
Reviewed-by: Lorenzo Rossi <git@rossilorenzo.dev >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37536 >
2025-10-14 22:47:39 +00:00
Faith Ekstrand
993f5c9e30
compiler/rust: Add a DepthFirstSearch trait
...
There are four depth first searches in cfg.rs. This adds a DFS
abstraction which we can later optimize.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Reviewed-by: Lorenzo Rossi <git@rossilorenzo.dev >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37536 >
2025-10-14 22:47:38 +00:00