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
Aitor Camacho
9c9b9208f5
kk: Fix addressModeW for unnormalized coordinates
...
Acked-By: Arcady Goldmints-Orlov <arcady@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38185 >
2025-10-31 18:55:31 +00:00
Aitor Camacho
e44a776f47
kk: Avoid Metal validation error due to empty calls
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reviewed-by: Arcady Goldmints-Orlov <arcady@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38174 >
2025-10-31 16:54:39 +00:00
Icenowy Zheng
cc60a7a39d
gallivm: orcjit: remember Context in addition to ThreadSafeContext
...
The llvm::orc::ThreadSafeContext object wraps an llvm::Context and keeps
its reference.
As we are no longer able to squeeze out Context from ThreadSafeContext
in LLVM 21, do not let ThreadSafeContext create Context implicitly for
LLVM 21, instead explicitly create Context and then remember it.
This also eliminates the code creating a Context that is never disposed.
Fixes: cd129dbf8a ("gallivm: support LLVM 21")
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37684 >
2025-10-31 16:22:01 +00:00
Samuel Pitoiset
cb4e0c4140
radv: add a workaround for illegal depth/stencil descriptors with No Man's Sky
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Using descriptors with both depth and stencil aspects is illegal in
Vulkan and this hangs the GPU.
Use NULL descriptors to mitigate the issue. Note that AMDVLK also
ignores them.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13325
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38180 >
2025-10-31 15:46:55 +00:00
Alyssa Rosenzweig
83303aa05d
pvr: don't NIH alignment helpers
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:58 +00:00
Alyssa Rosenzweig
603bfa34d9
panfrost,tu: use util_is_aligned
...
I was hoping this would catch more... Oh well.
Via Coccinelle patch:
@@
expression x, pot;
@@
-align(x, pot) == x
+util_is_aligned(x, pot)
@@
expression x, pot;
@@
-ALIGN(x, pot) == x
+util_is_aligned(x, pot)
@@
expression x, pot;
@@
-ALIGN_POT(x, pot) == x
+util_is_aligned(x, pot)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:58 +00:00
Alyssa Rosenzweig
6ac9bfdd1c
asahi: do not NIH util_is_aligned
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:58 +00:00
Alyssa Rosenzweig
5f53e6edc0
intel: use util_is_aligned more
...
Coccinelle + filtering hunks manually.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:58 +00:00
Alyssa Rosenzweig
7be63ef956
intel: do not NIH util_is_aligned
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:57 +00:00
Alyssa Rosenzweig
a014daea8f
nir: use alignment helpers more
...
Coccinelle + filtering hunks manually +
@@
expression pt, pot;
typedef uintptr_t;
@@
-util_is_aligned((uintptr_t)(pt), pot)
+util_ptr_is_aligned(pt, pot)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:57 +00:00
Alyssa Rosenzweig
1ff43db789
util: add util_ptr_is_aligned helper
...
This composition comes up a bunch.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:57 +00:00
Lionel Landwerlin
24179d96a1
Revert "anv: Convert DEBUG_SPARSE logging to use mesa_log"
...
This reverts commit bee04c63ba .
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38186 >
2025-10-31 16:22:48 +02:00
Mike Blumenkrantz
e152c80d18
zink: add back atomics for internal refcounts
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
in extensive testing, using no atomics at all is a bit too loose for
basic/common cases like sharing a vertex bufer between contexts, readily
leading to unintended behavior
keeping the atomics internal ensures that they remain in the same ccx,
which avoids impacting performance
it does require a little trickery to avoid an extra atomic in the buffer
decrement case, however
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38176 >
2025-10-31 12:40:43 +00:00
Tapani Pälli
f48df6f45c
anv: bring back some lost game drirc workarounds for subgroups
...
Fixes: d39e443ef8 (" anv: add infrastructure for common vk_pipeline")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38179 >
2025-10-31 12:18:37 +00:00
Christian Gmeiner
3c7fa2e6eb
anv: Convert DEBUG_HEAPS logging to use mesa_log
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Replace fprintf with the mesa_log API.
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38171 >
2025-10-31 11:45:47 +00:00
Eric R. Smith
5e380ca7e5
panfrost/panvk: Add size calculations to compiler register code
...
This helps us to more accurately count the number of registers that
need to be spilled to keep us below the maximum.
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37188 >
2025-10-31 10:12:21 +00:00
Gert Wollny
43d9765e35
r600/sfn: AR loads are not dependend on the future and other code blocks
...
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
If the AR is loaded from a register changing that register in a loop was
resulting in a scheduling failure because the AR load was made dependend
on a later instruction. Fix the dependencies by only using dependencies on
older instruuctions in the same block.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14114
Fixes: d21054b4bc ("r600/sfn: Add pass to split addess and index register loads")
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38056 >
2025-10-31 09:55:23 +00:00
Christian Gmeiner
bee04c63ba
anv: Convert DEBUG_SPARSE logging to use mesa_log
...
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38177 >
2025-10-31 09:19:19 +00:00
Georg Lehmann
cbf5c881a5
aco/opcodes: remove VOP3 alias for new gfx12 VOP2 opcodes
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:03 +00:00
Georg Lehmann
0f54136730
aco/isel: emit vop2 v_lshlrev_b64 for gfx12+
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:03 +00:00
Georg Lehmann
7ac67e2711
aco/isel: emit vop2 v_max_f64 for gfx12+
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:03 +00:00
Georg Lehmann
8397b91934
aco/isel: emit vop2 v_min_f64 for gfx12+
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:02 +00:00
Georg Lehmann
2e120d4e26
aco/isel: emit vop2 v_mul_f64 for gfx12+
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:01 +00:00
Georg Lehmann
86ea462f4d
aco/isel: emit vop2 v_fadd_f64 for gfx12+
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:01 +00:00
Georg Lehmann
7d2325b194
aco/lower_to_hw: emit vop2 for gfx12+ fp64 reductions
...
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38156 >
2025-10-31 08:31:00 +00:00
Samuel Pitoiset
968fb06a94
radv,vulkan: replace VK_RENDERING_INPUT_ATTACHMENT_NO_CONCURRENT_WRITES_BIT_MESA
...
The new flag from maintenance10 has similar meaning.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38043 >
2025-10-31 07:51:23 +00:00
Samuel Pitoiset
c8aaf3f5b5
radv: advertise VK_KHR_maintenance10
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38043 >
2025-10-31 07:51:22 +00:00