Daniel Schürmann
5342576789
aco/isel: rename aco_instruction_selection.cpp -> aco_isel_nir.cpp
...
Also remove some unused includes and unnecessary static specifiers.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
b6442669c1
aco/isel: move select_ps_epilog() into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
776384d99d
aco/isel: move select_ps_prolog() into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
c3ef927e31
aco/isel: move select_vs_prolog() into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
c4ec430c26
aco/isel: move select_rt_prolog() into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
4d910ca301
aco/isel: move select_trap_handler_shader() into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
146ce57f2d
aco/isel: move control-flow helper functions into separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
59f314a9a6
aco/isel: move some helper functions into a separate file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
62a92417ef
aco: move instruction selection files to /compiler/instruction selection/ subfolder
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
Daniel Schürmann
85a4ec32e8
aco: rename aco_instruction_selection_setup.cpp -> aco_isel_setup.cpp
...
Also remove unused includes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34977 >
2025-05-16 11:01:19 +00:00
David Rosca
bade93c447
radeonsi/vce: Fix output quality and performance in speed preset
...
Fixes: 544a180320 ("radeonsi/vce: Support quality presets")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894 >
2025-05-16 10:36:44 +00:00
David Rosca
ad96031ec6
radeonsi/vce: Only send one task per IB
...
There is no need to use second task for config when creating the
session, also it doesn't work now as we don't set the next task
offset in task info anymore.
Fixes: 9ca1cda2be ("radeonsi/vce: Cleanup")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894 >
2025-05-16 10:36:44 +00:00
David Rosca
fd1480c3df
radeonsi/vce: Fix bitstream buffer size
...
On old VCE this was being rejected by kernel because the size here
was the buffer size, but the bitstream buffer address includes the
offset.
Fixes: 901aafb030 ("radeonsi/vce: Support raw packed headers")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13128
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894 >
2025-05-16 10:36:44 +00:00
Juan A. Suarez Romero
f27d062abc
gallium/util: fix num primitives for line loops
...
When computing the number of primitives from the number of vertices, for
the case of line loops we need to include an extra line that closes the
shape.
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35007 >
2025-05-16 09:06:17 +00:00
Gert Wollny
58d8dc9543
r600/sfn: dump the lowered shader when translation fails
...
So far we printed the variant before the final lowering was done,
this is usually not that helpful. For this the code to dump the
shader has to go into r600_shader_from_nir.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34999 >
2025-05-16 08:45:58 +00:00
Valentine Burley
2ce2c1f835
zink/ci: Skip flaky trace on TGL
...
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35016 >
2025-05-16 08:00:11 +00:00
Valentine Burley
4ad8c8752d
ci: Run rustfmt and python jobs on aarch64
...
The x86_64 shared runners often have long queues.
Move the rustfmt, python-artifacts, and yaml-toml-shell-py-test jobs to
use the aarch64 runners instead.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35000 >
2025-05-16 06:07:20 +00:00
Valentine Burley
3029898a15
ci/container: Include DEBIAN_BUILD_TAG in debian/arm64_build
...
Unlike other containers (e.g. debian/x86_64_build-base and
debian/x86_64_build), debian/arm64_build is a single-stage image without
a separate -base variant.
Including DEBIAN_BUILD_TAG in its FDO_DISTRIBUTION_TAG ensures it gets
rebuilt when the build tag changes.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12737
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35000 >
2025-05-16 06:07:20 +00:00
Yiwei Zhang
cc4fd7cc9d
vulkan: fix random tabs to spaces
...
Only the vk_time_max_deviation tab usage requires a manual fix to make
sense. Others are boring replacements.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35011 >
2025-05-16 03:57:31 +00:00
Kovac, Krunoslav
360d252888
amd/vpelib: Fix CodeQL issues Pt1
...
[WHY]
Redundant / inconsisten nullptr checks
Reviewed-by: Jude Shih <Jude.Shih@amd.com >
Reviewed-by: Evan Damphousse <Evan.Damphousse@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Chang, Tomson
134b5bede7
amd/vpelib: Update headers
...
Update new headers
Reviewed-by: Jude Shih <Jude.Shih@amd.com >
Reviewed-by: Ricky Lin <Ricky.Lin@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Tomson Chang <tomson.chang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Chan, Roy
ffa5aadd2f
amd/vpelib: fix doxgen warnings
...
What does the change do after sanization if any.
Delete this section if not applicable.
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Roy Chan <roy.chan@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Nagulendran, Iswara
80af9d4756
amd/vpelib: Fix VPELIB Build Warnings
...
Fix build warnings.
Signed-off-by: Iswara Nagulendran <Iswara.Nagulendran@amd.com >
Reviewed-by: Roy Chan <Roy.Chan@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Okenczyc, Andrzej
71b285d091
amd/vpelib: Resolve query, predication and timestamp operations
...
[HOW]
Some clients of vpelib requires additional operations to be implemented.
Implemented support for new firmware operations.
Reviewed-by: Roy Chan <Roy.Chan@amd.com >
Reviewed-by: Jesse Agate <Jesse.Agate@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Okenczyc, Andrzej <andrzej.okenczyc@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Nagulendran, Iswara
f10244d8d9
amd/vpelib: Setup cost profiling support
...
Add logs to profile registers writes.
Reviewed-by: Roy Chan <Roy.Chan@amd.com >
Reviewed-by: Jesse Agate <Jesse.Agate@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Nagulendran, Iswara <Iswara.Nagulendran@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Han, Szu Chih
8bdbd12508
amd/vpelib: add TF_BT709
...
[HOW]
Add VPE_SURFACE_PIXEL_FORMAT_VIDEO_420_10bpc_YCrCb -> VPE_TF_BT709 in
vpe_visual_confirm.c
Reviewed-by: Tomson Chang <Tomson.Chang@amd.com >
Reviewed-by: Min-Hsuan You <Min-Hsuan.You@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Han, Szu Chih <SzuChih.Han@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Han, Szu Chih
3bd03b3cb0
amd/vpelib: add VPE_TF_SRGB
...
[HOW]
Add VPE_SURFACE_PIXEL_FORMAT_VIDEO_420_10bpc_YCrCb -> VPE_TF_SRGB in
vpe_visual_confirm.c
Co-authored-by: Mike Han <szuchhan@amd.com >
Reviewed-by: Tomson Chang <Tomson.Chang@amd.com >
Reviewed-by: Min-Hsuan You <Min-Hsuan.You@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Han, Szu Chih <SzuChih.Han@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Shih, Jude
7b68174bf0
amd/vpelib: Alpha Fill add mode
...
Add destination and source stream mode
[WHY]
In the new version, we add the two alpha fill mode
[HOW]
Add the two enum first
Reviewed-by: Brendan Steve Leder <BrendanSteve.Leder@amd.com >
Reviewed-by: Tomson Chang <Tomson.Chang@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Jude Shih <shenshih@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Shih, Jude
cb0b8d58a0
amd/vpelib: remove sensitive keywords
...
[WHY]
The KWS hit the words in the vpelib as forbidden
[HOW]
replace it with proper ones
Reviewed-by: Tomson Chang <Tomson.Chang@amd.com >
Reviewed-by: Tiberiu Visan <Tiberiu.Visan@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Jude Shih <shenshih@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Shih, Jude
c40ac921aa
amd/vpelib: VPE descriptor added
...
[WHY]
- Need to implement code for new version
- There are some format changes in new version
[HOW]
- Add plane descriptor
- Add plane descriptor patch
- Add command builder
- Restructure the code base to apply for multiple version
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Reviewed-by: Tomson Chang <Tomson.Chang@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Jude Shih <shenshih@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Agate, Jesse
f80a69d756
amd/vpelib: Add macro to perform ceil division
...
Add macro to perform ceil division
Reviewed-by: Brendan Steve Leder <BrendanSteve.Leder@amd.com >
Reviewed-by: Navid Assadian <Navid.Assadian@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Agate, Jesse <Jesse.Agate@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Zhao, Jiali
7b8c912c22
amd/vpelib: G2084 STUDIO output gamma fix
...
Made output gamma a hook function
Reviewed-by: Jesse Agate <Jesse.Agate@amd.com >
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Zhao, Jiali <Jiali.Zhao@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Kovac, Krunoslav
fc5973429f
amd/vpelib: Update comment and fix some code alignment issues.
...
Update comment and fix some code alignment issues.
Reviewed-by: Tomson Chang <Tomson.Chang@amd.com >
Reviewed-by: Evan Damphousse <Evan.Damphousse@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Visan, Tiberiu
96b7e52b57
amd/vpelib: feature augment
...
[WHY]
support future feature augment
Co-authored-by: Chan, Roy <Roy.Chan@amd.com >
Reviewed-by: Navid Assadian <Navid.Assadian@amd.com >
Reviewed-by: Jesse Agate <Jesse.Agate@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Visan, Tiberiu <Tiberiu.Visan@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Krunoslav Kovac
f6144116c9
amd/vpelib: Remove RGBE_ALPHA
...
No such DXGI_FORMAT, nor is there space to squeeze in alpha.
Reviewed-by: Navid Assadian <Navid.Assadian@amd.com >
Reviewed-by: Jesse Agate <Jesse.Agate@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Chen, Phoebe
f2e65c02e6
amd/vpelib: Fix memory leak from segment ctx
...
[WHY]
There is potential memory leak from vpe_alloc_segment_ctx.
This memory leak occurs only in multi-frame VPE tests where
between vpe_create and vpe_destroy, multiple calls are made
to vpe_check_support that allocates new segment context without
releasing the old one.
[HOW]
Allocate segment_ctx only when it is not already allocated. If it is
already allocated, check whether re-allocation is needed. If not, skip
the allocation.
Signed-off-by: Phoebe Chen <phoebe.chen@amd.com >
Reviewed-by: Roy Chan <Roy.Chan@amd.com >
Reviewed-by: Jesse Agate <Jesse.Agate@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Leder, Brendan Steve
c1a3d021f3
amd/vpelib: Make BG gen stream idx adjustable
...
Update BKGR API
Change bg generation code so bg gen isn't hard-coded to stream 0, as
certain cases result in bg being generated at different stream.
Reviewed-by: Roy Chan <Roy.Chan@amd.com >
Reviewed-by: Evan Damphousse <Evan.Damphousse@amd.com >
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com >
Signed-off-by: Leder, Brendan Steve <BrendanSteve.Leder@amd.co >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012 >
2025-05-16 11:33:08 +08:00
Faith Ekstrand
5b34895e81
nak/dce: Use BitSet for live phis and SSA values
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
52dcb1c9c1
nak: Add a Phi struct type
...
Instead of passing raw u32's arround, this adds a new Phi wrapper struct
which is treated as opaque by most of the rest of the compiler. This is
similar to what we're already doing with Label and SSAValue. This also
gives us the opportunity to properly document NAK's phi model.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
531070cf91
nak: Use op instead of phi when referring to OpPhiSrcs or OpPhiDsts
...
This will reduce name conflicts in the next patch
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
5f5ce00410
nak/repair_ssa: Rename Phi to PhiTracker
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
fc54e6e1d2
nak/liveness: Use typed bitsets
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
afb11a5a9e
nak/liveness: Use an SSA value as the last_use HashMap key
...
We're not saving ourselves anything by using just the index.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
56f06a072c
compiler/rust/bitset: Make BitSet a generic container type
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:28:31 -04:00
Faith Ekstrand
323769d3bb
compiler/rust,nak: Rename BitSet::get() to contains()
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:14:12 -04:00
Faith Ekstrand
20d247d754
nak: Use Default::default() for BitSet constructors
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34994 >
2025-05-15 22:14:12 -04:00
Mel Henning
ed658a2d3a
compiler/rust/cfg: Add a hash func type parameter
...
and switch nak over to rustc-hash for CFGBuilder
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865 >
2025-05-16 01:40:05 +00:00
Mel Henning
f5231e0677
nak: Also use rustc-hash for UnionFind
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865 >
2025-05-16 01:40:04 +00:00
Mel Henning
43c3f5a8db
nak: Switch most Hash{Set,Map} uses to rustc-hash
...
We shouldn't need to worry about HashDoS attacks because:
1. All of these keys are compiler-assigned IDs which makes it very
difficult to force collitions, and
2. Anyone who can hit the NAK compiler backend can already use CPU
power by spamming shader compiles or using O(n^2) behavior in
shader opt loops
As a result, we can afford to use a weaker hash function without
randomization.
This decreases total compile times by around 12% on shaderdb
(from 8113.74 user to 7115.47 user) on my machine.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865 >
2025-05-16 01:40:04 +00:00
Mel Henning
c1f979d84a
nak: Add a dependency on rustc-hash
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865 >
2025-05-16 01:40:04 +00:00