Alyssa Rosenzweig
7eb7db3613
hk: clarify command pool types
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633 >
2025-08-08 10:10:58 +00:00
Alyssa Rosenzweig
e9bf1c59ed
hk: fix todo
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633 >
2025-08-08 10:10:58 +00:00
Alyssa Rosenzweig
1ef97241d7
asahi: reduce ppp alignment
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633 >
2025-08-08 10:10:58 +00:00
Alyssa Rosenzweig
7297a699f7
asahi: clang-format
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633 >
2025-08-08 10:10:57 +00:00
David Rosca
9491ea761f
radv/video: Use more common defines
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36645 >
2025-08-08 09:22:54 +00:00
David Rosca
d1165984e9
ac/vcn_dec: Add RDECODE_IT_SCALING_TABLE_SIZE
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36645 >
2025-08-08 09:22:54 +00:00
David Rosca
532eb40404
radv/video: Remove unused enum
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36645 >
2025-08-08 09:22:54 +00:00
David Rosca
c904796350
radv/video: Simplify vp9 q params
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36645 >
2025-08-08 09:22:53 +00:00
David Rosca
27dec41c81
radv/video: Don't init vp9 probs table in message buffer
...
This is needed in context buffer, but message buffer only uses the
segmentation data.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36645 >
2025-08-08 09:22:53 +00:00
David Rosca
142d54817a
radv: Add timeout to video encode query
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36645 >
2025-08-08 09:22:52 +00:00
Lionel Landwerlin
4c65aef155
brw: implement ACCESS_COHERENT on Gfx12.5+
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36595 >
2025-08-08 08:44:22 +00:00
Samuel Pitoiset
2e51b50db2
radv: regroup CB related states emission together
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31659 >
2025-08-08 08:16:26 +00:00
Samuel Pitoiset
fa677ca0c3
radv: track more CB related context registers on < GFX12
...
The tracked registers mechanism isn't used yet on GFX12.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31659 >
2025-08-08 08:16:25 +00:00
Samuel Pitoiset
6a170c5de1
radv: precompute color blend equations
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31659 >
2025-08-08 08:16:25 +00:00
Samuel Pitoiset
52589ed1e9
radv: precompute the mask for color write attachments
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31659 >
2025-08-08 08:16:25 +00:00
Samuel Pitoiset
43cc048deb
radv: precompute the mask for enabled color writes
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31659 >
2025-08-08 08:16:24 +00:00
Valentine Burley
d2a1acaa2c
zink/ci: Document flakes on ANV
...
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36662 >
2025-08-08 09:54:12 +02:00
Valentine Burley
b2eba071c5
zink/ci: Skip flaky tests on CML due to HW deficiency
...
This is a known hardware limitation on Gfx9 that can cause intermittent
failures. See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36348#note_3037412 .
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36662 >
2025-08-08 09:02:28 +02:00
Yonggang Luo
723eeac89b
util: Refactoring util_dl_get_path_from_proc out of clc/clc_helpers.cpp
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
For getting clc_helpers.cpp can be compiled with gcc/mingw
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36597 >
2025-08-07 21:15:13 +00:00
Konstantin Seurer
38db7119cc
lavapipe: Mask invalid shader stage flags
...
lvp_execute.c iterates over all set bits which can cause oob access.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13512
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36371 >
2025-08-07 20:46:24 +00:00
Konstantin Seurer
fe4c3dcab8
vulkan: Add MESA_VK_SHADER_STAGE_ALL
...
For masking invalid bits.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36371 >
2025-08-07 20:46:24 +00:00
Konstantin Seurer
c4b18c689f
radv: Emit compressed primitive nodes on GFX12
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Emits two triangles per node whenever possible. The nir code will
revisit the triangle node to handle the second triangle only if both
triangles are interescted by the ray.
Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35734 >
2025-08-07 20:23:15 +00:00
Konstantin Seurer
fb83a5793a
radv/rra/gfx12: Handle compressed primitive nodes
...
Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35734 >
2025-08-07 20:23:15 +00:00
Faith Ekstrand
5eb2c2ab06
nouveau/winsys: Refactor nouveau_ws_context_create()
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:13 +00:00
Faith Ekstrand
4bcb784339
nouveau/winsys: Allow subchan_dealloc() on zeroed subchans
...
This makes cleanup a little more robust. I'm not sure it's strictly
needed as the kernel will probably just error in that case but it's
probably safer to not call destroy on something that isn't registered or
is already destroyed.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:13 +00:00
Faith Ekstrand
5a9eda9285
nouveau/push: Map b0 classes to subchannel 4
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:12 +00:00
Daniel Almeida
e2872a0ab0
nouveau: Handle video decode in nv_push_print()
...
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:11 +00:00
Dave Airlie
4bb256e5ac
nouveau: Handle subchannels better in nv_push_print()
...
Do not hardcode subchannels to specific classes. Instead, read the right values
from calls to SET_OBJECT.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:10 +00:00
Faith Ekstrand
ce2a2d7ed0
nouveau/headers: Import video encode/decode headers from NVIDIA
...
From open-gpu-doc commit c8607fe576b5 ("Add hopper and blackwell
dma-copy class header files").
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:10 +00:00
Daniel Almeida
03d79bc09d
nouveau/headers: Import the video class headers from NVIDIA
...
From open-gpu-doc commit c8607fe576b5 ("Add hopper and blackwell
dma-copy class header files").
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:10 +00:00
Faith Ekstrand
31a6e80bb3
nouveau/class_parser: Strip unnecessary parens
...
Some of the headers (video is a particularly egregious culprit) wrap
defined values in parens, even when they don't need to be. This changes
the parser to up-front strip all outer pairs of parens to get us down to
the original value.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36641 >
2025-08-07 20:09:10 +00:00
Simon Perretta
ba92104b56
wsi/display: make HDR_OUTPUT_METADATA, Colorspace properties optional
...
Fixes some dEQP-VK.wsi.display.* issues on platforms that don't
support said properties following their addition in !35461 .
Fixes: b4176393a0 ("wsi/display: Implement VK_EXT_hdr_metadata on KHR_display swapchain")
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36607 >
2025-08-07 20:32:02 +01:00
Mel Henning
2bd5639152
nvk: Disable non-graphics timestamp queries
...
We can support this in the future, but we don't implement it just yet.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651 >
2025-08-07 18:47:47 +00:00
Mel Henning
9c6d6daf1b
nvk: Check subchannels are valid in nv_push
...
The hardware already checks that any subchannel that we use is valid,
but those error messages don't provide much context and can be hard to
debug. Add an assert in nv_push that the subchannel we're using has
been allocated. This way, we can pinpoint exactly where the incorrect
method was used by looking at the stack trace.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651 >
2025-08-07 18:47:47 +00:00
Mel Henning
521537503c
nvk: Factor out nvk_queue_engines_from_queue_flags
...
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651 >
2025-08-07 18:47:47 +00:00
Mel Henning
87d6840110
nvk: Call cmd_buffer_begin_* based on queue flags
...
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651 >
2025-08-07 18:47:47 +00:00
Faith Ekstrand
66017ae4a6
nvk: Handle empty pushes in nvk_queue_push()
...
The only reason why this did not crash until now is because NVKMD_ENGINE_3D
and NVKMD_ENGINE_COMPUTE are always set in the only queue we returned.
With the addition of a video queue, where no state must be submitted, the logic
would try to push an empty push_buffer. This is wrong and the first place where
it fails is when it tries to allocate a BO of size 0 for the push data.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36651 >
2025-08-07 18:47:46 +00:00
Mel Henning
9a579673dd
meson,nvk: Require rustc-hash 2.0 or later
...
rustc-hash 1.1 does not have FxBuildHasher, and 1.2 has been yanked from
crates.io. I've verified that version 2.0 builds and seems to work, so
set the required version as 2.0.
Fixes: c1f979d84a ("nak: Add a dependency on rustc-hash")
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36650 >
2025-08-07 18:31:08 +00:00
Marek Olšák
900e56fc44
ac/nir: clarify the behavior of ac_nir_lower_ngg_options::can_cull
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36578 >
2025-08-07 18:12:53 +00:00
Marek Olšák
1ddbe7e818
radeonsi/gfx12: print swizzle modes for AMD_TEST=imagecopy
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36578 >
2025-08-07 18:12:53 +00:00
Marek Olšák
9244618e5f
ac/nir/meta: allow compute blits with R5G6B5 & R5G5B5A1 formats on GFX9+
...
v2: add a workaround for incorrect hw rounding
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36578 >
2025-08-07 18:12:52 +00:00
Valentine Burley
82a7085898
freedreno/ci: Move a660-gl-cl job to nightly
...
The sm8350-hdk devices in the Collabora lab are experiencing power
issues: most are unable to boot via the barrel jack and only receive
power over the USB-C port, which is also used for fastboot.
Out of 9 devices, only 4 are currently operational. To reduce the load
on the remaining devices, move the 3 a660-gl-cl jobs to nightly.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36623 >
2025-08-07 17:16:29 +00:00
Matt Turner
a8ab696033
meson: Allow configuring with Android-internal perfetto
...
This enables ninja-to-soong to generate an Android.bp that builds Mesa
against Android's `libperfetto_client_experimental` library.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36561 >
2025-08-07 16:22:37 +00:00
Matt Turner
eb6f6c1976
meson: Allow controlling perfetto fallback
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36561 >
2025-08-07 16:22:37 +00:00
Mike Blumenkrantz
d476a8c07b
zink: stop always syncing threaded flushes
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
async flushes are meant to be async here, and the other ones are manually
synced later in the function
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36643 >
2025-08-07 16:00:54 +00:00
Mike Blumenkrantz
f5f7a5f801
zink: don't access ctx in submit_queue
...
this can be executed from a thread
Fixes: 63e17ccc0a ("zink: rework sparse semaphore waits")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36643 >
2025-08-07 16:00:54 +00:00
Romaric Jodin
7dc4f28507
pan/bi: schedule simple iterators to avoid extra move
...
Try to move iterator as close to the end of the block as possible. The
goal is to avoid the iterator being used after being updated, to
prevent the need for an extra move instruction.
shader-db report on `Mali-G725`:
```
total instrs in shared programs: 720530 -> 716482 (-0.56%)
instrs in affected programs: 231842 -> 227794 (-1.75%)
helped: 3804
HURT: 1
helped stats (abs) min: 1.0 max: 8.0 x̄: 1.06 x̃: 1
helped stats (rel) min: 0.14% max: 6.25% x̄: 2.75% x̃: 2.86%
HURT stats (abs) min: 1.0 max: 1.0 x̄: 1.00 x̃: 1
HURT stats (rel) min: 0.05% max: 0.05% x̄: 0.05% x̃: 0.05%
95% mean confidence interval for instrs value: -1.08 -1.04
95% mean confidence interval for instrs %-change: -2.79% -2.71%
Instrs are helped.
total cycles in shared programs: 35295.80 -> 35295.55 (<.01%)
cycles in affected programs: 3.50 -> 3.25 (-7.14%)
helped: 8
HURT: 0
helped stats (abs) min: 0.03125 max: 0.03125 x̄: 0.03 x̃: 0
helped stats (rel) min: 6.90% max: 7.41% x̄: 7.15% x̃: 7.15%
95% mean confidence interval for cycles value: -0.03 -0.03
95% mean confidence interval for cycles %-change: -7.38% -6.92%
Cycles are helped.
total fma in shared programs: 5054.34 -> 5054.34 (0.00%)
fma in affected programs: 0 -> 0
helped: 0
HURT: 0
total cvt in shared programs: 4707.69 -> 4644.44 (-1.34%)
cvt in affected programs: 1471.28 -> 1408.03 (-4.30%)
helped: 3804
HURT: 1
helped stats (abs) min: 0.015625 max: 0.125 x̄: 0.02 x̃: 0
helped stats (rel) min: 0.37% max: 12.50% x̄: 6.01% x̃: 6.67%
HURT stats (abs) min: 0.015625 max: 0.015625 x̄: 0.02 x̃: 0
HURT stats (rel) min: 0.13% max: 0.13% x̄: 0.13% x̃: 0.13%
95% mean confidence interval for cvt value: -0.02 -0.02
95% mean confidence interval for cvt %-change: -6.07% -5.94%
Cvt are helped.
total sfu in shared programs: 1878.25 -> 1878.25 (0.00%)
sfu in affected programs: 0 -> 0
helped: 0
HURT: 0
total v in shared programs: 2353 -> 2353 (0.00%)
v in affected programs: 0 -> 0
helped: 0
HURT: 0
total t in shared programs: 5530 -> 5530 (0.00%)
t in affected programs: 0 -> 0
helped: 0
HURT: 0
total ls in shared programs: 27975 -> 27975 (0.00%)
ls in affected programs: 0 -> 0
helped: 0
HURT: 0
total code size in shared programs: 6386560 -> 6289664 (-1.52%)
code size in affected programs: 508544 -> 411648 (-19.05%)
helped: 757
HURT: 0
helped stats (abs) min: 128.0 max: 128.0 x̄: 128.00 x̃: 128
helped stats (rel) min: 0.83% max: 33.33% x̄: 31.09% x̃: 33.33%
95% mean confidence interval for code size value: -128.00 -128.00
95% mean confidence interval for code size %-change: -31.57% -30.60%
Code size are helped.
total threads in shared programs: 14698 -> 14698 (0.00%)
threads in affected programs: 0 -> 0
helped: 0
HURT: 0
total loops in shared programs: 166 -> 166 (0.00%)
loops in affected programs: 0 -> 0
helped: 0
HURT: 0
total spills in shared programs: 37 -> 37 (0.00%)
spills in affected programs: 0 -> 0
helped: 0
HURT: 0
total fills in shared programs: 111 -> 111 (0.00%)
fills in affected programs: 0 -> 0
helped: 0
HURT: 0
```
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36021 >
2025-08-07 15:09:56 +00:00
Romaric Jodin
4a53eca97d
pan/bi: add pass to simplify control flow
...
That pass tries to remove blocks that are not needed:
blocks with only 1 predecessor and 1 successor containing no
instruction or only 1 branch instruction.
Also remove unnecessary branch at the end of block with only 1
successor which is the next block
Run this pass at the end of the compiler flow once all optimisations
have been applied.
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36021 >
2025-08-07 15:09:56 +00:00
Gert Wollny
fa2bd65171
r600/sfn: Move RA helper class declaration into implementation file
...
There is no need that these types are exposed.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36586 >
2025-08-07 14:23:25 +00:00
Gert Wollny
2bb3e5c265
r60/sfn: Update .clang-format
...
* Short inline methods in headers may stay on one line.
* Include system headers last to avoid hidden dependencies.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36542 >
2025-08-07 14:08:46 +00:00