Rhys Perry
397920c16e
nir: fix left shift of negative value in ibfe constant folding
...
Fixes "left shift of negative value -128" with parallel_rdp/00f93a9497dfbb3b
and UBSan.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35255 >
2025-06-03 09:45:01 +00:00
Rhys Perry
78aae4b1ba
nir: fix signed overflow in pack_half_2x16 constant folding
...
Without this cast, the left shift is promoted to 'int'.
Fixes "left shift of 50432 by 16 places cannot be represented in type 'int'"
with horizon_zero_dawn/001064f580f8e3be and UBSan.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35255 >
2025-06-03 09:45:01 +00:00
Rhys Perry
2e82f481ca
radv: fix too large shift exponent in radv_remove_color_exports
...
"shift exponent 1020 is too large for 32-bit type 'unsigned int'" with
madmax/25b8180e05220b8c and UBSan
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35255 >
2025-06-03 09:45:01 +00:00
Rhys Perry
6852538ba0
nir: fix unpack_unorm_2x16/unpack_snorm_2x16 constant folding
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Backport-to: 25.0
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35255 >
2025-06-03 09:45:01 +00:00
Valentine Burley
817c14cc7c
ci/lava: Only deploy kernel-modules when needed
...
Not all LAVA jobs appear to require kernel modules, so only apply the
kernel-modules overlay when HWCI_KERNEL_MODULES is explicitly set.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35129 >
2025-06-03 07:27:26 +00:00
Valentine Burley
3a0cc0ee0d
ci: Use zstd compressed kernel modules
...
Change how we package kernel modules: instead of storing them in
.tar.zst archives with uncompressed .ko files inside, we now compress
each .ko file individually with ZSTD and bundle them into a plain tar
archive.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35129 >
2025-06-03 07:27:26 +00:00
Faith Ekstrand
347e957b44
vulkan/pipeline: Hash null descriptor robustness info
...
Fixes: 6ae401aa86 ("vulkan: Add null descriptor bits to vk_pipeline_robustness_state")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34967 >
2025-06-03 07:02:36 +00:00
Georg Lehmann
a6675f35b2
aco: clamp exponent of 16bit ldexp
...
The hw uses only a 16bit int, but NIR's src is 32bit.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34073 >
2025-06-03 06:34:18 +00:00
Marek Olšák
bf2ed20eb9
nir: remove unused nir_io_semantics::invariant
...
Acked-by: Alyssa on IRC
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35256 >
2025-06-02 23:08:58 +00:00
Marek Olšák
44fcda9631
nir/opt_clip_cull_const: support GS
...
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35256 >
2025-06-02 23:08:58 +00:00
Marek Olšák
6677d087c0
nir/xfb_info: add new fields to describe 16-bit XFB better
...
for drivers that need this information
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35256 >
2025-06-02 23:08:58 +00:00
Marek Olšák
7b70b419b5
nir: always index SSA defs before printing
...
This makes the output more readable.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35256 >
2025-06-02 23:08:58 +00:00
Marek Olšák
cf94ae8544
nir: change the type of shader_info::patch_* fields to 32 bits
...
Patch outputs only use 32 bits.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35256 >
2025-06-02 23:08:58 +00:00
Ryan Mckeever
b69dcd8d33
panvk: Enable VK_EXT_load_store_op_none
...
Signed-off-by: Ryan Mckeever <ryan.mckeever@collabora.com >
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/32915 >
2025-06-02 22:01:11 +00:00
Mike Blumenkrantz
a7e61f95b8
zink: delete zink_ctx_surface
...
finally the nightmare is over
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
1d1ca611be
zink: don't fixup depth buffer if it's already big enough
...
the zs buffer doesn't have to exactly match the size of the framebuffer,
it just has to be "big enough"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
3dc8d81332
zink: delete zink_ctx_surface::needs_mutable
...
this was some awfulness required because previously pipe_surface objects
could be created from a different thread, but now they are only ever created
by the driver
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
8ad4b07c38
zink: delete zink_ctx_surface::transient
...
this untangles a lot of code and makes surfaces very nearly comprehensible
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
92d76f16ed
zink: delete another pipe_surface from msaa replicate
...
this was never used anyway
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
92f4d506d7
zink: remove some trivial transient surface references in rt init
...
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
ad5a115246
zink: slightly rework transient surface/image handling
...
this was a big nightmare because of how the pipe_surface object worked,
but now it's more possible to move the backing multisampled image
onto the base resource and reuse the 'valid' flag instead of the special
surface one for transients
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Mike Blumenkrantz
4f81f121e6
zink: remove a pipe_surface from blitting
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35240 >
2025-06-02 20:51:47 +00:00
Alyssa Rosenzweig
e5e91887cf
asahi: clang-format
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35295 >
2025-06-02 20:34:32 +00:00
Alyssa Rosenzweig
49564786f7
asahi: drop dead surface stuff
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35295 >
2025-06-02 20:34:32 +00:00
Calder Young
6f28364541
intel_aux_map: Avoid creating new table pages when removing
...
Fixes #13241 , where iris_bufmgr occasionally deadlocks while allocating buffers.
The deadlock happens when iris_bufmgr.c calls intel_aux_map_unmap_range while
holding the bufmgr lock, with a range that includes pages that were never created,
which can happen because the iris_resource that adds aux mappings will sometimes
use a slightly larger buffer with an offset to ensure the resource is aligned
correctly.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35266 >
2025-06-02 20:10:49 +00:00
Natalie Vock
dac6f09451
radv/rt: Report 256 byte alignment for scratch
...
This mirrors AMDVLK. 128-byte alignment is possible, but DOOM: The Dark
Ages screws up scratch allocation with alignments <256 bytes.
Fixes hangs in DOOM: The Dark Ages.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35152 >
2025-06-02 19:52:51 +00:00
Natalie Vock
6628ac8ad9
radv/rt: Avoid encoding infinities in box node coords
...
On Navi33, certain box sorting modes combined with infinity/-infinity in
the child AABBs cause image_bvh64_intersect_ray to return garbage node
pointers.
To avoid this, convert infinity to the maximum representable
floating-point value, which will still intersect with any non-inf ray.
Fixes consistent hangs in DOOM: The Dark Ages.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35254 >
2025-06-02 19:33:18 +00:00
Jordan Justen
d84d7b78e4
intel/dev: Add PTL PCI IDs 0xb084-0xb087
...
Ref: linux v6.15 027a362fb36b ("drm/xe/ptl: Update the PTL pci id table")
Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.15&id=027a362fb36b479030beecbaaec30711ddabf8fa
Ref: bspec 72574
Backport-to: 25.1
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35226 >
2025-06-02 11:36:25 -07:00
Jonathan Gray
ca33127652
vulkan: add missing include for FALLTHROUGH
...
When CLOCK_MONOTONIC_RAW and CLOCK_MONOTONIC_FAST are not
defined FALLTHROUGH is used. Add the include for the define.
Fixes the build on OpenBSD.
Fixes: 3bc7564bb0 ("vulkan: add vk_device_get_timestamp")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35145 >
2025-06-02 17:51:56 +00:00
Mike Blumenkrantz
e0641fdac7
zink: fix ZINK_RENDERDOC=all
...
the intent of this option is to create a single capture for the lifetime
of the app, which is great for unit test debugging, and this instead
created a capture for every queue submission, which is a nightmare
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35292 >
2025-06-02 17:34:04 +00:00
Mike Blumenkrantz
cb6dfc4169
zink: unlock instance mutex if creation fails
...
avoids a deadlock
Fixes: 015eda4a41 ("zink: deduplicate VkDevice and VkInstance")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35292 >
2025-06-02 17:34:04 +00:00
Eric Engestrom
f611fb4af9
svga/ci: fix indentation
...
The list of files is _inside_ `changes:`, not alongside it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35289 >
2025-06-02 17:15:18 +00:00
Eric Engestrom
0c5fa54b5b
svga/ci: fix job stages
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35289 >
2025-06-02 17:15:18 +00:00
Mike Blumenkrantz
a321b3207c
util/dd: delete surface object hooks
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
ddef6be19a
noop: delete surface object hooks
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
bbc4a2d2d9
aux/trace: delete surface object hooks
...
should never be used
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
0100e44a8c
util/tc: delete surface hooks
...
these should never be called from a frontend now
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
94979fec2c
vl: delete a missed pipe_surface_reference usage
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: David Rosca <david.rosca@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
06cf5794b1
vdpau: de-pointerize surfaces
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: David Rosca <david.rosca@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
b36fba19cc
va: remove one more pipe_surface object
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: David Rosca <david.rosca@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
5607797743
d3d10umd: update to latest pipe_surface changes
...
does it work? nobody knows!
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
561fed955b
d3d10umd: stop using pipe_surface::width/height
...
these were deleted months ago
Fixes: 9d359c6d10 ("gallium: delete pipe_surface::width and pipe_surface::height")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
3ecec254a7
util/tc: fix surface refcounting (by deleting it)
...
missed this in earlier series
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
11a3f2f3d1
lavapipe: kill off pipe_surface objects
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
db500d4a56
gallium: kill off pipe_surface_unref_no_context()
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
718e277ab5
util/surface: delete more pipe_context::create_surface usage
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
2d9f5d3bcd
util/debug: delete more pipe_context::create_surface usage
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Mike Blumenkrantz
b92b67c941
util/blitter: delete more pipe_context::create_surface usage
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236 >
2025-06-02 16:49:32 +00:00
Caterina Shablia
b81359ec84
panvk: bump maxPushConstantSize to 256
...
Vulkan 1.4 raises the minimum for maxPushConstantSize to 256, and given
that we intend on supporting 1.4 eventually and the change is very simple
might as well do it now.
Reviewed-by: Olivia Lee <olivia.lee@collabora.com >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35191 >
2025-06-02 16:21:34 +00:00
Caterina Shablia
c6f19e87ac
panvk: ensure we don't go over the hardware FAU limit
...
All the Malis in existence out there support at most 64 user-supplied FAUs.
Reviewed-by: Olivia Lee <olivia.lee@collabora.com >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35191 >
2025-06-02 16:21:34 +00:00