Konstantin Seurer
ff145d2ddc
lavapipe: Bump maxPrimitiveCount
...
The vulkan spec requires at least 2^29-1.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14212
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38197 >
2025-11-03 19:44:46 +01:00
David Heidelberg
9334b5659c
ci: implement debian-cross-riscv64
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Revival of my old effort to get riscv64 testing in!
Now we're at Debian 13 (trixie), we can support RISC-V builds!
Disable llvmpipe suite because of lp_test_arit failure, see
https://gitlab.freedesktop.org/mesa/mesa/-/issues/14123
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37445 >
2025-11-03 15:04:57 +01:00
Daniel Schürmann
43f1ad308a
radv/shader_info: repack and compact struct radv_shader_info
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
using pahole.
Reduces the size of radv_shader_info from 760 bytes to 640 bytes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37931 >
2025-11-03 13:38:38 +01:00
Daniel Schürmann
e1bcbbf3dd
radv/shader_info: rename gs_ring_info -> legacy_gs_info and use union with ngg_info
...
Reduces the size of radv_shader_info from 784 bytes to 760 bytes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37931 >
2025-11-03 13:38:38 +01:00
Daniel Schürmann
9b34da3da8
radv/shader_info: use union for precomputed register values of non-overlapping stages
...
Reduces the size of radv_shader_info from 872 bytes to 784 bytes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37931 >
2025-11-03 13:38:38 +01:00
Daniel Schürmann
68ab01b2f2
radv/shader_info: remove unused output_usage_mask
...
Reduces the size of radv_shader_info from 1000 bytes to 872 bytes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37931 >
2025-11-03 13:38:37 +01:00
Karmjit Mahil
9a6ab041fd
tu: Use TU_BREADCRUMBS_ENABLED value
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The code was checking for the define to exists, which it always
does, and is set to 0, where it should instead have checked its
value.
Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38210 >
2025-11-03 10:11:41 +00:00
David Rosca
502f7e85e5
radv/ci: Enable video tests on navi21 and navi31
...
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/38184 >
2025-11-03 08:39:59 +00:00
David Rosca
874e02003a
radv/video: Only use write_memory for encode feedback with full support
...
write_memory is used after encoding every frame to mark the feedback
buffer as ready. Only use it when write_memory can work without PCIe
atomics support.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38184 >
2025-11-03 08:39:59 +00:00
David Rosca
8e1d74bbb4
radv/video: Introduce two levels of write_memory support
...
Print warning when using write_memory with firmwares that require
PCIe atomics support.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38184 >
2025-11-03 08:39:59 +00:00
Samuel Pitoiset
f91e5c9cb7
radv: use radv_get_shader_layout() more with ESO
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38106 >
2025-11-03 08:00:35 +00:00
Samuel Pitoiset
e5513826aa
radv: fix creating linked graphics ESOs with a compute shader
...
It's valid to create shader objects with linked VS/FS and with a
compute shader.
This reworks radv_CreateShadersEXT() completely to allow this. Unlinked
shaders are created first, then linked shaders.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14193
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38106 >
2025-11-03 08:00:35 +00:00
Valentine Burley
69ddb910e0
panfrost/ci: Enable G610 piglit job
...
Make `panfrost-g610-piglit:arm64` a pre-merge job.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38182 >
2025-11-03 07:24:17 +00:00
Valentine Burley
d11d83dee6
panfrost: Don't dump shader disassembly by default on CSF
...
Dumping disassembly when not explicitly requested to do so was probably
helpful during early CSF bringup. But the CSF code is relatively robust
now, so let's move this to only happen if PAN_DBG_TRACE is set, similar
to what we do in the JM backend.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38182 >
2025-11-03 07:24:17 +00:00
Valentine Burley
74d9a90546
panfrost/ci: Drop redundant PAN_MESA_DEBUG variables
...
This is already set in `.panfrost-test`.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38182 >
2025-11-03 07:24:17 +00:00
Janne Grunau
83b97379dc
hk: Report the correct plane count in VkDrmFormatModifierProperties2?EXT
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Fixes import of planar formats like NV12 in gtk4. Allows
`gst-launch-1.0 v4l2src ! gtk4paintablesink` to use vulkan instead of
falling back to OpenGL.
Closes : #14217
Cc: mesa-stable
Signed-off-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38200 >
2025-11-03 07:09:36 +00:00
spencer-lunarg
943d7b246e
llvmpipe: Fix warning casting 32-bit int to 8-bit
...
Signed-off-by: spencer-lunarg <spencer@lunarg.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38207 >
2025-11-02 22:42:19 -05:00
Marek Olšák
5d92c92ce5
Revert ABI breakage "amd: Add user queue HQD count to hw_ip info"
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This reverts commit 56d758d321 .
It broke ABI between Mesa and libdrm, causing crashes due to stack smashing.
See: https://gitlab.freedesktop.org/mesa/libdrm/-/issues/121#note_3172362
Fixes: 56d758d321
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38203 >
2025-11-02 02:54:59 +00:00
Marek Olšák
2f6b4803ab
nir/validate: expand IO intrinsic validation with nir_io_semantics
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
There are many workarounds.
v2: add more validation
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38113 >
2025-11-02 02:21:46 +00:00
Marek Olšák
390023f9fd
nir/lower_io: force src offset=0 for any indirect access with num_slots == 1
...
This reduces indirect indexing of 1-element arrays to indexing with 0.
Without this, we fail an assertion later.
Discovered when writing a test.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38113 >
2025-11-02 02:21:46 +00:00
Marek Olšák
9125e34372
amd: lower get_ssbo_size in ac_nir_lower_resinfo
...
The code for lowering get_ssbo_size will be different in future chips,
so do it in common code to reduce duplication in the future.
Lower get_ssbo_size to ssbo_descriptor_amd + nir_channel.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38097 >
2025-11-02 01:42:07 +00:00
Marek Olšák
3e2c11597a
nir: add nir_intrinsic_ssbo_descriptor_amd for lowering get_ssbo_size
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38097 >
2025-11-02 01:42:07 +00:00
Dave Airlie
6a70406bb2
lavapipe: use vk_query_pool as the base for lvp_query_pool
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This just moves to the common code.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 06:14:22 +10:00
Dave Airlie
3fc9c072b2
lavapipe: drop instance pointer from lvp_device.
...
This can be gotten elsewhere.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 06:00:38 +10:00
Dave Airlie
f819e269f6
lavapipe: drop physical device pointer from lvp_device
...
Use the base pointer.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:53:02 +10:00
Dave Airlie
b2db496ea3
lavapipe: drop unneeded physical device in sparse image format props
...
This isn't used here.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:50:47 +10:00
Dave Airlie
7aef746de6
lavapipe: drop device pointer from pipeline cache
...
This is unused
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:43:51 +10:00
Dave Airlie
5875d6cf93
lavapipe: drop device pointer from queue
...
Just use the copy in the base
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:42:31 +10:00
Dave Airlie
fe5a99175f
lavapipe: drop device pointer from pipeline object
...
Just get it from the base object.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:39:11 +10:00
Dave Airlie
8fae2cb67f
lavapipe: drop device pointer from lvp_cmd_buffer
...
just get it from the vk object.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:38:44 +10:00
Dave Airlie
8e01a11a00
lavapipe: remove image pointer from lvp_image_view
...
Just use the underlying image pointer and pack the struct a bit
better.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:27:48 +10:00
Dave Airlie
9f0b57ce41
lavapipe: drop unused macro.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:13:29 +10:00
Dave Airlie
49c7b69020
lavapipe: cleanup some whitespace in lvp_private.h
...
This just has some wierd inconsistent stuff, clean it up.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:10:26 +10:00
Dave Airlie
cde13f3674
lavapipe: drop lavapipe specific macro for generic one.
...
These can just all use the standard VK macro we define.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38198 >
2025-11-02 05:01:12 +10:00
Arcady Goldmints-Orlov
be2e4b6fde
kk: Enable independentBlend
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38154 >
2025-11-01 16:31:27 +00:00
Arcady Goldmints-Orlov
4c7c5a2a11
kk: enable VK_KHR_vertex_attribute_divisor
...
And also VK_EXT_vertex_attribute_divisor
Reviewed-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38154 >
2025-11-01 16:31:26 +00:00
Arcady Goldmints-Orlov
ef66fdf47c
kk: enable VK_KHR_workgroup_memory_explicit_layout
...
Reviewed-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38154 >
2025-11-01 16:31:24 +00:00
Alyssa Rosenzweig
aa9f937116
asahi,ail: fix multi-plane imports
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
We need to handle plane offsets everywhere. I noticed this broken before but
didn't realize it was a GL driver issue. Fix is easy, wrote this on my sofa
while waking up in the morning.
Fixes gst-launch-1.0 v4l2src ! glimagesink
Note that cheese & snapshot both still hang for some reason due to
libgstpipewire, but the Mesa side should be fine now.
Closes : #14217
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38160 >
2025-11-01 14:06:32 +00:00
Ian Romanick
2e8b89ec60
elk: Apply vgrf127 workaround in more cases
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
No shader-db changes on Broadwell. Older platforms were not tested.
Fixes: e7b7d572b3 ("intel/fs/ra: Re-arrange interference setup")
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38122 >
2025-10-31 22:55:53 +00:00
Ian Romanick
3e6af6c5bb
brw: Apply Gfx9 vgrf127 workaround in more cases
...
No shader-db changes on any Intel platform.
fossil-db:
Skylake
Intel(R) HD Graphics 530 (SKL GT2)
Totals:
Cycle count: 57669758527 -> 57669757913 (-0.00%); split: -0.00%, +0.00%
Totals from 10 (0.00% of 1736875) affected shaders:
Cycle count: 274949 -> 274335 (-0.22%); split: -0.36%, +0.14%
This change is likely due to subtle differences of different registers
being allocated.
In addition, fossils/google-meet-clvk/BgBlur.1f58fdf742c27594.1.foz and
fossils/google-meet-clvk/Relight.1f58fdf742c27594.1.foz stopped failing
EU validation on Gfx9 platforms.
Closes : #14171
Fixes: e7b7d572b3 ("intel/fs/ra: Re-arrange interference setup")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38122 >
2025-10-31 22:55:53 +00:00
Caio Oliveira
b7e2041750
anv, hasvk: Don't assert on alignment if the value is known to be zero
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Fixes: 7be63ef956 ("intel: do not NIH util_is_aligned")
Reported-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Tested-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38194 >
2025-10-31 22:18:50 +00:00
Pohsiang (John) Hsu
59b10dbe80
mediafoundation: add support for initial pool size and max pool size for stats pool
...
Reviewed-by: Yubo Xie <yuboxie@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:47:08 -07:00
Silvio Vilerino
00700bae45
mediafoundation: Check for PIPE_VIDEO_CODEC_UNIT_LOCATION_FLAG_MAX_SLICE_SIZE_OVERFLOW in calls to get_slice_bitstream_data
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:47:04 -07:00
Silvio Vilerino
e0394008ac
d3d12: Add buffer size check to d3d12_video_encoder_get_slice_bitstream_data
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:58 -07:00
Silvio Vilerino
087b1f4948
mediafoundation: Remove stale call to MFCreateMemoryBuffer
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:54 -07:00
Silvio Vilerino
871a1a20ef
d3d12: Bump min size in d3d12_video_encoder_calculate_max_output_compressed_bitstream_size
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:49 -07:00
Silvio Vilerino
7fb5c10f65
mediafoundation: Add a min slice buffer size stopgap
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:44 -07:00
Silvio Vilerino
027b523398
mediafoundation: Fix num_output_buffers for PIPE_VIDEO_SLICE_MODE_AUTO
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:40 -07:00
Silvio Vilerino
a3d072a301
d3d12: Fix max slice worst case estimation for PIPE_VIDEO_SLICE_MODE_AUTO
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:35 -07:00
Silvio Vilerino
3c983ecdb1
d3d12: Fix hang in d3d12_video_encoder_extract_encode_metadata with PIPE_VIDEO_SLICE_MODE_AUTO
...
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38195 >
2025-10-31 13:46:20 -07:00