Commit graph

218944 commits

Author SHA1 Message Date
Alyssa Rosenzweig
8c90bc028d mailmap: update my personal email
The future of .io domains is... uncertain. New TLD, same me.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenz.ca>
Acked-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40031>
2026-02-23 20:04:12 +00:00
Emma Anholt
e6ec3244c4 ir3/ra: Assert that our calculated pressures aren't bigger than the reg file.
If you were to try to reg allocate to more full regs than the file has,
you'll end up bit clearing off of available[]/available_to_evict[] and
corrupting the RB tree.  Let's make sure we don't land there again.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39997>
2026-02-23 19:25:27 +00:00
Emma Anholt
0c6da326f8 ir3/ra: Fix DOUBLE_ONLY limit pressure computation.
As the comment says, we want to limit our pressure based on underlying HW
reg file size, not max it out to HW reg file size.  This caused us to not
spill when we should when the HW reg size was bigger than the ISA reg file
size, leading to OOB writes in RA when it tried to allocate to the limit
pressure we spilled to.

Fixes segfaults in llama.cpp's test-backend-ops.

Fixes: e6e34883a9 ("ir3: Add wavesize control")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14846
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39997>
2026-02-23 19:25:27 +00:00
Emma Anholt
8c30d48610 ir3/ra: Clean up the ra_ctx_dump() output a bit.
Having the associated lines all show what file they're about helps
navigate the dump when you first turn it on again, having paged out most
of your memory of RA.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39997>
2026-02-23 19:25:26 +00:00
Alyssa Rosenzweig
bac43d28a9 agx: use util_is_probably_float
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
To demonstrate that this helper is legitimately useful cross-tree and should
be made common code :-)

Sample AGX IR with this patch:

   10 = mov_imm #0x3f5680f1 /* 0.837905 */

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40021>
2026-02-23 18:23:41 +00:00
Alyssa Rosenzweig
da4296c27c util,intel: move probably_float to common code
This helper is generally useful when trying to prettyprint a 32-bit value, so
make it available to the rest of the tree.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40021>
2026-02-23 18:23:41 +00:00
José Roberto de Souza
48c685ee39 intel/perf: Add HSW verx10 to intel_perf_query_result_write_mdapi()
HSW is verx10 75 and when we switched from ver to verx10 I forgot to add the case
75.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: a097a3d214 ("intel/perf: Change mdapi switch cases from ver to verx")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14902
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40039>
2026-02-23 18:00:52 +00:00
Jason Macnak
5dd52846ec gfxstream: enable VK_EXT_primitives_generated_query
... as this is a needed extension for ANGLE To enable GLES 3.2.

Test: cvd create --gpu_mode=gfxstream_guest_angle on Nvidia

Reviewed-by: Aaron Ruby <aruby@qnx.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40045>
2026-02-23 17:41:30 +00:00
Gurchetan Singh
6c66b30add virtio/kumquat: add safety comments
This is to help enable to clippy safety lint tree-wide.

Reviewed-by: Aaron Ruby <aruby@qnx.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39222>
2026-02-23 17:20:10 +00:00
Collabora's Gfx CI Team
1e442125d3 Uprev ANGLE to b90b9ee1a4f901e6ba9e649d8f6cf9098a944f50
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
63d1dd7c2d...b90b9ee1a4

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39667>
2026-02-23 16:46:07 +00:00
Gurchetan Singh
5260acb30c lavapipe: fix uninitialized variable warning
Otherwise, the following error is observed:

lvp_pipeline.c:422:28:
  error: variable 'progress' is used uninitialized whenever
         'if' condition is false [-Werror, -Wsometimes-uninitialized]

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40046>
2026-02-23 16:04:12 +00:00
Simon Perretta
4cd956b932 pvr: report nir shader in pipeline executable properties
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39846>
2026-02-23 15:48:44 +00:00
Pavel Ondračka
83d636fc74 r300: Z16 polygon offset fixes
The way I understand the HW docs is that the polygon offset is applied
always in 24bit depth domain (there are no polygon offset depth format
control registers like r600 has), so we need to manually rescale for
16bit buffers.

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39196>
2026-02-23 15:49:36 +01:00
Eric R. Smith
399c0d22f3 panfrost: blending fixes for Midgard
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The main change here is adding an architecture argument to
pan_blend_can_fixed_function, so that we can take into
account fixed function hardware limitations in particular
generations.

Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39705>
2026-02-23 13:32:59 +00:00
Eric R. Smith
40db69604f panfrost: adjust format in blend shaders
Blend shaders operate on 4 components, and this makes
a difference for some operations (particularly blends
with constant values). Usually the hardware handles the
conversion smoothly, but there are a few special cases where
there is an alpha channel in the "wrong" place; we need
to handle those specially.

Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39705>
2026-02-23 13:32:59 +00:00
Eric R. Smith
77bba3cf87 panfrost: remove I8_UNORM from the blendable format table
We can still render to it, but hardware blending needs a slightly
different path (the supplied GL_R8 internal format did not work
correctly).

Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39705>
2026-02-23 13:32:58 +00:00
Eric R. Smith
432babec11 panfrost: optimize blending with DST_ALPHA when there is no alpha
If the output format has no alpha channel then DST_ALPHA is the same
as CONST_ONE, and hence the blend operation becomes trivial (opaque).
This also fixes some piglit test failures, possibly because the
fixed function blending hardware isn't really set up to handle RGB1.

Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39705>
2026-02-23 13:32:58 +00:00
Eric R. Smith
af0f4b0460 pan: add some missing formats to pan_nir_lower_framebuffer
We were hitting an assert on a piglit test on midgard. Note that,
oddly, PIPE_FORMAT_R10G10B10X2_UINT is not defined, so we cannot
add that case.

Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39705>
2026-02-23 13:32:57 +00:00
Jose Maria Casanova Crespo
b88d395c75 v3dv: disable blending when logicOpEnable is set
The Vulkan spec states:

 "If logicOpEnable is VK_TRUE, then a logical operation selected by
  logicOp is applied between each color attachment and the
  fragment’s corresponding output value, and blending of all
  attachments is treated as if it were disabled. Any attachments
  using color formats for which logical operations are not supported
  simply pass through the color values unmodified."

pack_blend() was only checking blendEnable from the attachment state,
causing hardware blending to be applied even when logic ops were enabled.

This is the v3dv equivalent of the RADV fix in commit c172f6ef01
("radv: fix disabling logic op for srgb/float formats when blending
is enabled").

Fixes: dEQP-VK.pipeline.monolithic.logic_op_na_formats.*_blend
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40025>
2026-02-23 13:07:36 +00:00
Natalie Vock
b08f9f192c radv/nir: Correctly handle workgroup sizes not aligned to 32
Since the stride is always 32 dwords, we need to treat the workgroup
size as multiples of that value. Using MAX2() only works for cases where
the workgroup size is less than 32, which was hit by some CTS with 1x1
workgroups.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39981>
2026-02-23 12:42:24 +00:00
Christian Gmeiner
086456111f panvk: Support VK_EXT_depth_clamp_control
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
The Mali GPUs have native support for user-defined depth clamp bounds
via the LOW_DEPTH_CLAMP/HIGH_DEPTH_CLAMP registers and the
depth_clamp_mode field. Wire up the existing runtime plumbing to these
registers so applications can specify a custom depth clamp range instead
of always clamping to the viewport's minDepth/maxDepth.

While at it, drop the redundant CLAMP on depth values in the CSF path.
Since VK_EXT_depth_range_unrestricted is not supported, panvk_depth_range()
is already guaranteed to produce values in the 0..1 range.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39925>
2026-02-23 12:15:29 +00:00
Faith Ekstrand
feeb620913 pan/texture: ASTC is not allowed for storage
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39758>
2026-02-23 11:18:26 +00:00
Faith Ekstrand
51d7a130be panvk: Don't emit storage descriptors for compressed views
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39758>
2026-02-23 11:18:26 +00:00
Tomeu Vizoso
2b632af73d ethosu: Update tests baseline for new models
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:26 +00:00
Tomeu Vizoso
825539f404 teflon/tests: Add MoveNet Lighning and Thunder models
Downloaded from https://github.com/google-coral/test_data/

Apache-2.0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:26 +00:00
Tomeu Vizoso
d07d177f61 teflon/tests: Add SSD MobileNetV2 model
Downloaded from https://github.com/google-coral/test_data/

Apache-2.0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:26 +00:00
Tomeu Vizoso
dd06e58a96 teflon/tests: Add MobileNetV2 model
Downloaded from https://tfhub.dev/tensorflow/lite-model/mobilenet_v2_1.0_224_quantized/1/default/1

Apache 2.0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:25 +00:00
Tomeu Vizoso
016290a4ca teflon/tests: Add InceptionV1 model
Downloaded from https://github.com/google-coral/test_data/

Apache-2.0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:25 +00:00
Tomeu Vizoso
db318818b4 teflon/tests: Add EfficientDet model
Copied from https://www.kaggle.com/models/tensorflow/efficientdet/tfLite/lite0-int8

Apache-2.0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:25 +00:00
Tomeu Vizoso
47a317aa8f teflon/tests: Fail tests with unsupported output types
Instead of asserting, which disrupts the other tests in the batch.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39911>
2026-02-23 10:55:25 +00:00
Erik Faye-Lund
6661c59981 pan/ci: add some more flakes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40034>
2026-02-23 10:37:39 +00:00
Erik Faye-Lund
44d207c244 pan/ci: g720 and t720 isn't the same
They're just one letter apart, but very different GPUs! Whoops!

Fixes: 6eeede8a52 ("pan/ci: add missing t720-flakes")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40034>
2026-02-23 10:37:39 +00:00
Samuel Pitoiset
7d03a1fc5b radv: skip some operations when the image is already zero-initialized
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
No need to clear to zero because it should already be cleared.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40012>
2026-02-23 09:06:21 +00:00
Samuel Pitoiset
837078b8d5 radv: fix potential corruption after FMASK decompression on GFX6-8
While reworking image resolves completely in RADV, I found a very weird
bug where the only fix was to emit caches immediately after
decompressing the source resolve image (after FMASK_DECOMPRESS).

I have been struggling this for few hours and figured that it was
something related to context rolls (ie. as long the context was rolled
out, emitting the flushes immediately was required).

It turns out this was a known hardware bug on GFX6 that was implemented
in PAL. Though PAL only applies on GFX6 but GFX7-8 are also affected
based on my testing. Note that RadeonSI flushes CB_META too.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39959>
2026-02-23 08:32:53 +00:00
Lionel Landwerlin
4f38b5c888 anv: disable ccs modifier reporting when ccs modifiers are disabled
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Reporting the modifiers when we're going to disable it in the back
hits various asserts in anv_image.c

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 2418c91537 ("anv/drirc: disable Xe2 CCS drm modifiers for GTK engine")
Helps: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14853
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39953>
2026-02-23 07:37:29 +00:00
Lionel Landwerlin
4ac47f8dde anv: apply the same ccs disabling for Xe3 than Xe2
The new compression scheme introduced in Xe2 also applies to Xe3, so
we're liable for the same bugs.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 2418c91537 ("anv/drirc: disable Xe2 CCS drm modifiers for GTK engine")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39953>
2026-02-23 07:37:28 +00:00
Rob Clark
b2050f1173 freedreno/a6xx: Implement PIPE_QUERY_TIMESTAMP_RAW
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
This will be needed by rusticl to convert ticks to ns.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39995>
2026-02-22 19:18:19 +00:00
Rob Clark
8451190601 gallium: Add PIPE_QUERY_TIMESTAMP_RAW
This is intended to enable rusticl to use get_query_result_resource()
for timestamp queries, for hw which cannot convert ticks to us on the
GPU (or for which doing the conversion on the GPU is expensive).  In
this case, the query result buffer is not exposed to the app, so we
can still do the necessary conversion on the CPU.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39995>
2026-02-22 19:18:19 +00:00
Pavel Ondračka
e57fca6de2 r300/ci: update expectations
Some checks failed
macOS-CI / macOS-CI (dri) (push) Has been cancelled
macOS-CI / macOS-CI (xlib) (push) Has been cancelled
Missed in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39850

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40023>
2026-02-21 09:45:32 +01:00
Caio Oliveira
4207cc673d nir: Handle nir_instr_type_cmat_call in more places
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Prefer to be explicit when handling it, like is done for regular
nir_instr_type_call.

Even though functions called by cmat_call have restrictions on them ("no
tangled instructions" for example), which could allow a couple of passes
to treat them differently, there's no tracking of what functions are
used only in such cases, so being conservative here should be safe.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39903>
2026-02-20 13:09:45 -08:00
Dylan Baker
88cfe6b4eb docs: update calendar for 25.3.6
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40015>
2026-02-20 12:26:09 -08:00
Dylan Baker
a93046c898 docs: Fix unescaped * in 25.3.6 release notes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40015>
2026-02-20 12:26:09 -08:00
Dylan Baker
cdae2cc703 docs: Add SHA sums for 25.3.6
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40015>
2026-02-20 11:44:58 -08:00
Dylan Baker
1b4a0a3755 docs: add release notes for 25.3.6
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40015>
2026-02-20 11:44:53 -08:00
Mike Blumenkrantz
46fbb67ea0 ci: add ASAN_OPTIONS=malloc_fill_byte=1 for asan jobs
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
this catches additional bugs where uninitialized memory being zeroed
masked failures

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39721>
2026-02-20 18:35:02 +00:00
Pavel Ondračka
5ee7d99f64 r300: handle polygon-mode points in point sprite path
arb_point_sprite-mipmap renders polygons with polygon mode set to POINT.
However, r300 point-sprite setup only treated MESA_PRIM_POINTS as point
draws, so sprite coord replacement was disabled for polygon primitives
that were rasterized as points. This produced wrong texcoord orientation
and failed the piglit test.

Detect point rasterization from the primitive plus rasterizer fill/cull
state and use that in both HWTCL and SWTCL draw paths when updating
is_point flag.

The test now pass on RV370 and fails with the rest of the CI HW, but the
remaining issues seem to be some LOD boundary mismatch at point size 22,
the hardware samples level 0 where test expects level 1. In total only 4
cases now fail instead of 82 before.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39850>
2026-02-20 17:47:20 +00:00
Caio Oliveira
922e3c75cf brw: Explicitly set group=0 in generator for SYNC used in workaround
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Instead of using whatever group was set by the previous
instruction.  No behavior change, just normalizes what
we generate.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39843>
2026-02-20 17:11:59 +00:00
Caio Oliveira
4382d51cd0 brw: Make brw_builder::uniform() ignore previous group
The `group()` helper creates the new builder "relative" to the existing
one, so this was resulting in some uniform instructions having
a non-zero channel offset ("group") -- which was surprising and had no
practical effect.

Normalize to always use group = 0.  No change in behavior expected.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39842>
2026-02-20 16:50:41 +00:00
Mike Blumenkrantz
055aec542e zink: use maintenance10 info for DRLR optimization
idk where the original version of this went?

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39739>
2026-02-20 15:24:07 +00:00
Mike Blumenkrantz
7e217112a0 zink: only update the value of VkAttachmentFeedbackLoopInfoEXT, not the pNext
messing with pNexts breaks other mechanics which expect those pointers
to remain constant

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39739>
2026-02-20 15:24:07 +00:00