Faith Ekstrand
fef64b7e7d
nak/sm20: Encode OpAL2P
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35172 >
2025-05-26 22:03:06 -04:00
Faith Ekstrand
9fe2a21e93
nvk: Allocate the correct VAB size on Kepler
...
We were allocating 128 KiB but claimed 256 KiB. Allocate the right size
and assert that the size matches.
Fixes: 970bd70584 ("nvk: allocate VAB memory area")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35172 >
2025-05-26 22:02:33 -04:00
Faith Ekstrand
4bab33db20
nak/sm20: Fix a comple misplaced bits
...
Fixes: 078ffb860b ("nak/sm20: Add initial SM20 encoding")
Fixes: a3330f1d46 ("nak/sm20: Add float ops")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35170 >
2025-05-26 23:17:02 +00:00
Faith Ekstrand
00eaca4c8f
nak/sm20: Fix the encoding of fset
...
We weren't setting the accum src (which should be pT for now) and we put
ftz in the wrong place. Bit 5 is actually .bf which we want to set all
the time in order to get a float output. (Otherwise it gives an integer
output.)
Fixes: a3330f1d46 ("nak/sm20: Add float ops")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35170 >
2025-05-26 23:17:02 +00:00
Derek Foreman
6671251100
egl/dri/wayland: Add some arbitrary perfetto trace points
...
These are potentially slow functions, and would be interesting to see in
perfetto traces.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
04acb0eed8
egl/dri/wayland: Use presentation feedback to track frame delivery
...
Use the new shared presentation feedback code in the loader to implement
perfetto frame delivery tracing similar to the wayland vulkan wsi code.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
39fb510849
egl/dri/wayland: Refactor buffer wait out of get_back_bo()
...
This is a potentially slow process, so let's break it out into its own
function so we can have more meaningful profiling data from perfetto later.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
ebfd7df1b9
egl/dri/wayland: Refactor throttle code
...
The throttling code is potentially long running. Move it to a separate
function so we can have better perfetto tracing later.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
2f8d17ad35
egl/dri/wayland: Use loader_wayland_surface abstraction
...
Use the new wl_surface wrapper
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
54c4a41e2d
egl/dri/wayland: Use loader_wayland_buffer abstraction
...
Use the new wl_buffer wrapper.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
b3e3f0fc2e
loader/wayland: Move acquisition time tracking into perfetto flows
...
We only use the acquisition time for calculating latency for perfetto
tracks later, and the acquisition time should ideally be the start of the
perfetto flow.
This has been more or less true with very small error margin for vk wsi,
but the wayland EGL buffer handling is a lot more complicated. Moving the
time check into the flow start will make re-using this code for EGL much
simpler.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
336cbc499f
wsi/wayland: Move presentation tracing code into loader
...
Push the presentation feedback code into the common code in the loader,
so we're one step closer to using the perfetto instrumentation here in
the EGL code.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
3521abe0d1
wsi/wayland: Early return from tracing function
...
We can bail on all of this if tracing isn't enabled.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
94b45c6c8a
wsi/wayland: Refactor some surface management code into loader
...
Share some wayland surface setup code in the loader so we can use it in
both VK and (in an upcoming commit) EGL.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
aefd3d835e
wsi/wayland: Move buffer name string into common code
...
Push this into the loader bits so it will be available to egl when we
add profiling later.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
6946758682
wsi/wayland: Move perfetto flow_ids into loader_wayland_buffer
...
Pull some more common stuff into the new abstraction.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
c06624d797
wsi/wayland: Refactor some buffer management code into loader
...
For now just pull the tiny bit that looks up the wayland buffer id for
profiling. The end goal is to promote more code sharing between vk and egl
and improving wayland egl's perfetto profiling.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
81487d8663
wsi/wayland: Count outstanding feedbacks
...
Count the outstanding feedback requests instead of relying on list
length calculations.
When moving presentation feedback bits into common code shortly, the list
will no longer be exposed.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
08ed1390e2
wsi/wayland: Add a bool to track the presentation id fallback path
...
Instead of testing the protocol object pointer, track this with a bool.
We're going to wrap the protocol object in some common code later, so
testing it directly will become inconvenient.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:25 -05:00
Derek Foreman
d8c8a7fb6e
loader: Move the wayland protocol build into loader
...
We can hang this here instead of off wayland-drm's build.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32757 >
2025-05-26 16:13:19 -05:00
Valentine Burley
d09594cc40
ci/lava: Move mesa build job dependency to variant definitions
...
This will make adding ASan definitions easier.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
3d56b98061
ci/lava: Rename LAVA_S3_ARTIFACT_NAME
...
Now that we're no longer using multiple artifacts, we can drop the
LAVA_ prefix from the S3_ARTIFACT_NAME variable name for simplicity.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
8114d72606
ci: Delete python-artifacts job
...
LAVA was the last user of this job. Now that the lava-trigger container
includes all the necessary files, the python-artifacts job is no longer
needed and can be removed.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
080894325a
ci: Remove debian/x86_64_pyutils container
...
Delete the debian/x86_64_pyutils container, since the LAVA jobs no longer
use it.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
b85b84fde6
ci/lava: Drop LAVA_DISTRIBUTION_TAG
...
The alpine/x86_64_lava-trigger image was set up in a way that avoids
conflicts with MESA_IMAGE_PATH and FDO_DISTRIBUTION_TAG.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
60c531b7af
ci/baremetal: Set LAVA_DISTRIBUTION_TAG directly
...
This will make the following commit possible.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
f6dce6dee1
ci: Add a minimal Alpine container for running LAVA jobs
...
Compared to the existing Debian-based x86_64_pyutils container, this
Alpine-based variant reduces the image size by approximately 83%.
Include all the necessary python artifacts, including lava_job_submitter
in the container to avoid having to download them at the start of each
test job.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Valentine Burley
f83e830dbc
bin/ci: Split out LAVA-specific python requirements
...
Move LAVA-related Python packages into a separate requirements file to
simplify installing only the necessary dependencies.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34980 >
2025-05-26 17:25:40 +00:00
Georg Lehmann
96c0e600e3
docs/gallium: remove some nine mentions
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:04 +00:00
Georg Lehmann
3a42e43e01
gallium: remove tgsi_div pipe cap
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:04 +00:00
Georg Lehmann
bfeaf78922
gallium: remove polygon_offset_units_unscaled pipe cap
...
This was only used by nine.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:03 +00:00
Georg Lehmann
282310e1fe
nvc0: remove unscaled poly offset support
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:03 +00:00
Georg Lehmann
6071367ffa
r600: remove unscaled poly offset support
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:02 +00:00
Georg Lehmann
2f6d1f1f31
zink: remove unscaled poly offset support
...
This was incorrect anyway...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:01 +00:00
Georg Lehmann
806388a3a1
radeonsi: remove unscaled poly offset support
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35147 >
2025-05-26 17:01:01 +00:00
Faith Ekstrand
424ef4b260
nak/sm20: Add encodings for OpLdSharedLock and OpStSCheckUnlock
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35028 >
2025-05-26 16:29:05 +00:00
Lorenzo Rossi
93ddaa90b3
nak/sm32: Add encodings for OpLdSharedLock and OpStSCheckUnlock
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35028 >
2025-05-26 16:29:05 +00:00
Lorenzo Rossi
dccf5ed336
nak: Add OpLdSharedLock and OpStSCheckUnlock
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35028 >
2025-05-26 16:29:05 +00:00
Lorenzo Rossi
47f6c74b71
nir,nak: Add KeplerB shared atomics intrinsics and lowering
...
Kepler cards do not support shared atomic operations directly, but they
have special ldslk and stsul that can implement mutex locks on
addresses. Shared atomics can be lowered into operations in mutexes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35028 >
2025-05-26 16:29:05 +00:00
Faith Ekstrand
88e449dc85
nak/sm20: Encode OpViLd instead of OpIsberd
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35028 >
2025-05-26 16:29:05 +00:00
Valentine Burley
8b37cfae2e
ci/lava: Forward environmental variables to DUT directly
...
Instead of uploading the environmental variables to S3, append it to the
job definition instead.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35051 >
2025-05-26 15:30:47 +00:00
Valentine Burley
ffe8a2e023
ci/lava: Use init-stage2 and setup-test-env.sh from Mesa install
...
init-stage2.sh and setup-test-env.sh are already downloaded on the DUT as
part of the mesa-build overlay, which downloads the Mesa artifacts from
S3.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35051 >
2025-05-26 15:30:47 +00:00
Valentine Burley
a6e1926a8e
ci: Fix date parsing with BusyBox on Alpine
...
This fixes the timestamps in Alpine containers.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35051 >
2025-05-26 15:30:47 +00:00
Valentine Burley
cc83b3db5f
ci: Forward all environment variables to DUTs and crosvm
...
Instead of the current allowlist in export-gitlab-job-env-for-dut.sh,
filter out unwanted environment variables and forward the rest to
bare-metal and LAVA DUTs, as well as crosvm.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35051 >
2025-05-26 15:30:47 +00:00
Vladly
45e61f1203
freedreno/a3xx-a5xx: re-emit vertex state on VS change
...
On a3xx-a5xx information from vertex program is used to emit state
related to vertex buffer. However this state is not re-emitted if only
vertex program changes which causes rendering artifacts on gnome-shell
where there are 2 draws with same vertex buffer but different shaders
(due to changed vertex attribute destination regid).
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35164 >
2025-05-26 15:13:19 +00:00
Lorenzo Rossi
02805fd900
nak/sm20: Fix encoding panic for OpFAdd
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35151 >
2025-05-26 14:41:23 +00:00
Lorenzo Rossi
4942a29314
nvk: Fix local memory loads in Kepler shader header
...
Kepler cards shader header needs the load/store flag enabled even for
local memory usage.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35151 >
2025-05-26 14:41:23 +00:00
Lorenzo Rossi
a427f540e5
nvk: Don't advertise BAR memory for Kepler cards
...
Previously the driver would advertize the memory heap for BAR memory,
but no memory type to use it. This would cause a lot of crashes for
programs using the driver.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35151 >
2025-05-26 14:41:23 +00:00
Alessandro Astone
b519cb80a6
asahi: Avoid AND-ing with string literal in static_assert
...
Some compilers have trouble dealing with this, including the clang prebuilts
used in older AOSP trees.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35137 >
2025-05-26 13:45:50 +00:00
Alessandro Astone
33e0330baf
asahi: Do not require fopencookie on Android
...
The android build lies when setting _GNU_SOURCE, presumably to have access to
other functions that Android's libc actually implements.
However, fopencookie is not one of those.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35137 >
2025-05-26 13:45:50 +00:00