Romaric Jodin
6b693e281a
pan/va: improve lowering of SWZ_V4I8
...
Use bi_make_vec_to to allow to use only 1 MKVEC.v2i8 when possible.
Also add support for all swizzles instead of only mono-byte ones,
using bi_swizzle_to_byte_channels.
Update assert in bi_byte.
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35643 >
2025-08-07 13:48:33 +00:00
Romaric Jodin
857f29d67b
pan/bi: use only 1 MKVEC.v2i8 to generate v4i8 when possible
...
When making a vector of 4 elements, try to make it with only 1
instruction instead of 2 at the moment, if the last 2 elements respect
the pattern supported by MKVEC.v2i8
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35643 >
2025-08-07 13:48:32 +00:00
Alyssa Rosenzweig
8b96f66da6
agx: gate scratch opt on internal shaders
...
fixes a bunch of OpenCL CTS including test_basic vload_private due to failing
to relower the derefs but also lol.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Backport-to: 25.1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36631 >
2025-08-07 13:34:22 +00:00
Karol Herbst
45c28a20a4
rusticl/gl: flush and wait on gl objects inside clEnqueueAcquireGLObjects
...
This fixes flakes in the gl/gles OpenCL CTS tests on radeonsi and zink.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36249 >
2025-08-07 12:58:33 +00:00
Karol Herbst
f6b844e239
rusticl/gl: only flush objects on import if we get a valid fd
...
If no context is current we might not get anything to wait on.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36249 >
2025-08-07 12:58:33 +00:00
Karol Herbst
4d8b08e7ec
st/interup: flushing objects is a no-op when no context is bound
...
Luckily this is backwards compatible, because without this change users
would simply run into crashes within _mesa_glthread_finish.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36249 >
2025-08-07 12:58:32 +00:00
Karol Herbst
2e1fff8e5d
rusticl/gl: store the mesa_glinterop_export_in
...
We need it later for proper flushing and waiting.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36249 >
2025-08-07 12:58:32 +00:00
Karol Herbst
8617cf46d6
rusticl/mesa: wire up fence_server
...
We need this to wait on imported fences.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36249 >
2025-08-07 12:58:32 +00:00
Eric R. Smith
24c692c981
panvk: fix a NULL pointer dereference in occlusion queries
...
If a meta operation (like a blit or clear) happens while occlusion
queries are active, we temporarily disable the query. Unfortunately
the code for this did not clear out the `syncobj` field. In rare
combinations of circumstances this could cause an attempt to issue
a write back of the occlusion query values, and since we've zeroed
the `ptr` field it writes to a NULL value, causing a bus fault and
device lost error.
Fixes: 61534faf4e ("panvk: Wire occlusion queries to internals")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36525 >
2025-08-07 11:58:53 +00:00
Lionel Landwerlin
2d691d7dd3
meson: remove intel-clc options
...
This tool is gone.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: f0e18c475b ("intel: remove GRL/intel-clc")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36625 >
2025-08-07 11:25:41 +00:00
Eric Engestrom
3e19c0f129
Revert "ci: mark igalia farm as offline"
...
This reverts commit 09272e5da9 .
The issue has been resolved.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36627 >
2025-08-07 11:02:05 +00:00
Alyssa Rosenzweig
94a2740cab
panvk: rewrite pan_nir_lower_static_noperspective
...
Really this should be using the common code I added in
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36501 but one thing at
a time.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Olivia Lee <olivia.lee@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36600 >
2025-08-07 10:33:36 +00:00
John Anthony
dff1d91c64
panvk: Enable VK_ARM_shader_core_builtins
...
While the shaderCoreBuiltins feature is only supported on v9+, the
extension itself provides some useful physical device properties and is
supported on all GPUs.
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36019 >
2025-08-07 11:46:33 +02:00
John Anthony
c46407de88
pan/va: Add support for SPV_ARM_core_builtins
...
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36019 >
2025-08-07 11:46:33 +02:00
John Anthony
000bd3046d
nir,spirv: Add support for SPV_ARM_core_builtins
...
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36019 >
2025-08-07 11:46:33 +02:00
John Anthony
a68a825aad
nir,agx: unvendor core_id_agx
...
core_id will be used by SPV_ARM_core_builtins
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36019 >
2025-08-07 11:46:33 +02:00
Samuel Pitoiset
dad0c7e6d4
zink/ci: make zink-radv-navi31-valve a pre-merge job
...
Otherwise, it's regularly broken and a waste of time for everyone.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13501
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36594 >
2025-08-07 09:14:00 +00:00
Samuel Pitoiset
06338ccf9e
zink/ci: reduce timeout of zink-radv-navi31-valve
...
It usually runs in ~5 minutes, and it's important to reduce it for
pre-merge testing.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36594 >
2025-08-07 09:14:00 +00:00
Vignesh Raman
b6ab6139c1
ci/container: add comment to bump image tag
...
Add a comment to update ALPINE_X86_64_LAVA_SSH_TAG when this
script is modified.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36620 >
2025-08-07 08:44:53 +00:00
Karol Herbst
cfd8b9d3b3
rusticl: use pipe_sampler_view_release
...
Fixes: a245ed462a ("rusticl/mesa: use pipe_sampler_view_reference")
Suggested-by: Seán de Búrca <leftmostcat@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36613 >
2025-08-07 08:05:55 +00:00
Yonggang Luo
8e39bab014
addrlib: __debugbreak only present on Windows and from intrin.h
...
Both MSVC/MINGW support this.
For fixes compiling with MINGW/GCC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36598 >
2025-08-07 07:47:42 +00:00
Yonggang Luo
d83234c8f3
radv: Move the amdgpu.h defines for Win32 to ac_linux_drm.h
...
This is for fixes compiling with MINGW/GCC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36598 >
2025-08-07 07:47:42 +00:00
Kenneth Graunke
dc2c3cf06b
intel: Disable 16x MSAA support on Xe3
...
16x MSAA isn't supported at all on certain Xe3 variants, and on its way
out on the rest. Most vendors choose not to support it, and many apps
offer more modern multisampling and upscaling techniques these days.
Only 2/4/8x are supported going forward.
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36592 >
2025-08-07 07:30:35 +00:00
Kenneth Graunke
f7def1ac1e
crocus: Fix a comment about supporting 16x MSAA
...
The mask here was already 0xff (8-bits) because only 8x MSAA is
supported, but the comment was copy-pasted from iris which did 16x.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36592 >
2025-08-07 07:30:35 +00:00
Kenneth Graunke
d098b3b973
crocus: Drop 16X MSAA code remnants
...
No platforms supported by crocus actually support 16X MSAA, so this is
just copy-pasted from iris without actually offering any benefit.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36592 >
2025-08-07 07:30:35 +00:00
Samuel Pitoiset
9765624ed8
radv/ci: fix GPU hang detection regex with recent kernels
...
Since July 2024, *ERROR* is no longer printed in dmesg and this caused
GPU hangs to not be detected with recent kernels. Hopefully, this won't
uncover more problems in CI...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36611 >
2025-08-07 07:08:14 +00:00
Samuel Pitoiset
418a335626
zink/ci: skip spec@arb_fragment_program@fog-modes on RADV
...
This test seems to hang.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36611 >
2025-08-07 07:08:14 +00:00
jglrxavpok
b987ec42ac
radv: Avoid calls to strlen when parsing umr output to speed up hang progressing
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36451 >
2025-08-07 06:44:41 +00:00
Samuel Pitoiset
4094706828
radv: invalidate compute/rt descriptors at dispatch time
...
Invalidating descriptors at bind time is wrong in a scenario like
trace rays -> dispatch -> trace rays because RT uses compute shaders
and the user SGPRs need to be re-emitted.
Noticed by Konstantin.
Fixes: 40ceece75f ("radv: invalidate compute/rt descriptors at pipeline bind time")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36605 >
2025-08-07 06:26:43 +00:00
Marek Olšák
ba6f731ead
glsl: remove gl_shader_compiler_options
...
unused
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:41:40 -04:00
Marek Olšák
10b7f0e95d
glsl: move PositionAlwaysInvariant/Precise options to gl_constants
...
They are only set for 1 shader stage.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:39:05 -04:00
Marek Olšák
a489fd32f0
st/mesa: replace EmitNoIndirect* with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:39:01 -04:00
Marek Olšák
c57af04c9f
glsl: replace LowerPrecisionConstants with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:57 -04:00
Marek Olšák
2fc83bca1f
glsl: replace LowerPrecision16BitLoadDst with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:55 -04:00
Marek Olšák
6defdf6518
glsl: replace LowerPrecisionFloat16Uniforms with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:39 -04:00
Marek Olšák
7290cc6eef
glsl: replace LowerPrecisionDerivatives with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:35 -04:00
Marek Olšák
3b252cbe92
glsl: replace LowerPrecisionFP16/Int16 with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:33 -04:00
Marek Olšák
7fa7240ae1
glsl: replace LowerBuiltinVariablesXfb with pipe caps
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:02 -04:00
Marek Olšák
0c14420169
glsl: use pipe caps in opt_shader
...
do_algebraic doesn't use any options
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36582 >
2025-08-06 17:38:00 -04:00
Yiwei Zhang
0de5e8cd59
docs/android: drop pkg-config workaround from cross-file
...
This used to workaround missing libdrm dependency from pkg-config, and
is no longer needed since allow-fallback-for meson option gets
introduced for libdrm.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36534 >
2025-08-06 21:21:09 +00:00
Yiwei Zhang
2f5db959a7
docs/android: update cross file and add nvk instructions
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36534 >
2025-08-06 21:21:09 +00:00
Yiwei Zhang
1e11f4fb1c
docs/android: fix meson setup for Android cross-compilation
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36534 >
2025-08-06 21:21:08 +00:00
Yiwei Zhang
18d7162951
docs/android: add docs for preparing offline compilers
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36534 >
2025-08-06 21:21:08 +00:00
Connor Abbott
c0884d04d8
tu: Don't keep track of acceleration structure sizes
...
We don't actually need to put the size of the AS in the descriptor, as
the blob is doing, because we don't need to rely on bounds checking as
the index is controlled by the driver. The only chance to get a
"garbage" index is if ray query functions are called in the wrong order,
which is already undefined behavior. By just always using the maximum
size, we can stop tracking sizes for VK_EXT_descriptor_buffer where only
the AS address is provided.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36502 >
2025-08-06 21:03:12 +00:00
Marek Olšák
91cee75e63
mesa: stop using inc_mesa in most places that have nothing to do with GL
...
Acked-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36562 >
2025-08-06 20:35:26 +00:00
Marek Olšák
ebdecb8d45
mesa: remove inc_mapi
...
We don't need this to be in include dirs.
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36562 >
2025-08-06 20:35:26 +00:00
Marek Olšák
d00d260145
docs,ci: update mapi relocation
...
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36562 >
2025-08-06 20:35:26 +00:00
Marek Olšák
8f2532453c
mesa: move src/mapi to src/mesa/glapi
...
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36562 >
2025-08-06 20:35:26 +00:00
Eric Engestrom
0a0ec32a84
docs: add 25.2.x release dates
...
The dates stop mid-October because I haven't figured out what I'll be
able to do, coming back from surgery. I'll update the calendar when
I know more.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36616 >
2025-08-06 19:18:40 +02:00
Eric Engestrom
22194d590b
docs: add sha sum for 25.2.0
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36616 >
2025-08-06 19:14:17 +02:00