Doug Nazar
c3980bb4ec
glx: Fix memory leak with software dri
...
dri_screen_init() now calls glx_screen_init() directly. Calling
twice overwrites the config.
Fixes: 7930fe5f01 ("glx: unify dri screen init")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35525 >
2025-06-21 23:47:13 +00:00
Lucas Stach
3387e9e8e9
Revert "etnaviv/ci: document new failure"
...
This reverts commit 757ad6a333 . This test has been flagged as failing
due to something that looks more like a runner issue than a real test
failure and it has been showing up as unexpected pass in later CI runs.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35671 >
2025-06-21 18:59:24 +00:00
Christian Gmeiner
74526442b2
etnaviv: nir: Use nir offset lowering
...
We can use the offset lowering for
- nir_texop_tex in vertex shader only
- nir_texop_txf
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com >
Reviewed-by: Lucas Stach <l.stach@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35573 >
2025-06-21 17:09:17 +00:00
Lucas Stach
3a40d5a7bf
etnaviv: don't advertise anisotropic filtering on GPUs with NO_ANISTRO_FILTER
...
Anisotropic filtering is generally supported starting with halti0, but there
is a separate feature bit telling us that the filter is not available.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35666 >
2025-06-21 11:59:29 +00:00
Lucas Stach
4b424e9b86
etnaviv: use TX_SEAMLESS_CUBE to determine seamless cubemap support
...
I have no idea why the HWDB includes two distinct bits that seem to
relate to seamless cubemap support. However, the only cores where
both bits disagree are NPUs (which don't have any samplers) and the
GC880, which is currently special cased in the driver.
Use TX_SEAMLESS_CUBE to determine seamless cubemap support, which
seems to accurately reflect the real support status.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35666 >
2025-06-21 11:59:29 +00:00
Eric Engestrom
d31b0c9b3b
egl/meson: include glvnd in the devenv
...
This was working by accident in the case where `-D glvnd-vendor-name`
was not set, because `meson devenv` adds all the folders that produce
a lib to `LD_LIBRARY_PATH` and the system's glvnd's json was pointing
to the same filename as the build had, which ended up getting picked up.
This breaks when `-D glvnd-vendor-name` is set to any other value than
the one set by the distro packagers though, so let's set it up properly.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35652 >
2025-06-20 22:18:22 +00:00
Eric Engestrom
367fb5e233
egl/meson: allow passing a full path to the glvnd json file
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35652 >
2025-06-20 22:18:22 +00:00
Eric Engestrom
b952c1a26a
egl/meson: move glvnd config file after libEGL
...
Necessary for the next commit.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35652 >
2025-06-20 22:18:21 +00:00
Eric Engestrom
2e8d14406f
egl/meson: reuse existing glvnd_vendor_name variable
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35652 >
2025-06-20 22:18:21 +00:00
Eric Engestrom
b5b49dcfd7
egl/meson: simplify glvnd json configuration
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35652 >
2025-06-20 22:18:20 +00:00
Eric Engestrom
413dbcdf79
meson: include VkLayer_MESA_overlay in the devenv
...
See https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderLayerInterface.md#linux-layer-discovery
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35650 >
2025-06-20 21:51:17 +00:00
Eric Engestrom
294d8ce80a
meson: include VkLayer_MESA_device_select in the devenv
...
See https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderLayerInterface.md#linux-layer-discovery
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35650 >
2025-06-20 21:51:17 +00:00
Eric Engestrom
6b11a53a3a
meson: include VkLayer_INTEL_nullhw in the devenv
...
See https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderLayerInterface.md#linux-layer-discovery
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35650 >
2025-06-20 21:51:17 +00:00
Alyssa Rosenzweig
43a47266c8
hk: merge adjacent CDM control streams
...
this reduces submission overhead in the kernel/firmware.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:12 +00:00
Alyssa Rosenzweig
f7db4afd09
hk: use fast-clears for empty render passes
...
this generalizes our trivial VDM optimization.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:12 +00:00
Alyssa Rosenzweig
9cdf486f14
hk: implement vkCmdClear*Image with fast-clears
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:11 +00:00
Alyssa Rosenzweig
7120f86035
libagx: add fast-clear kernels
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:11 +00:00
Alyssa Rosenzweig
908d12d346
libagx: export coordinate twiddle routine
...
we'll use for both image atomics and fast-clears
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:11 +00:00
Alyssa Rosenzweig
319a6259d9
libagx: add agx_2d grid helper
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:11 +00:00
Alyssa Rosenzweig
349e802e78
ail,asahi,hk: distinguish logical vs allocation compression
...
the hw uses the wrong definition of compressability of mip levels in some
places, but not in others. we need to distinguish these for correct fast clears.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:11 +00:00
Alyssa Rosenzweig
9740474021
ail: generalize solid mode values
...
this is blocksize dependenant, fill in the gaps.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:11 +00:00
Alyssa Rosenzweig
cdb4463b52
asahi,hk: fix ts allocation for more shader types
...
3c5c3d7819 ("hk: fix texture state count"), part 2.
Backport-to: 25.1
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662 >
2025-06-20 21:38:10 +00:00
Marek Olšák
d4b742f934
radeonsi: fix printing asm for the first shader of merged shaders for ACO
...
When we print asm for merged VS+TCS, we need to record asm for VS
even when only TCS is being printed because they are printed together.
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35620 >
2025-06-20 21:21:27 +00:00
Marek Olšák
23c3646164
radeonsi: fix tess regression with latest LLVM git
...
The problem was that SGPRs returned from LS were treated as VGPRs by LLVM
because LS executes conditionally. The workaround is to use input SGPRs
initialized by the hw (i.e. parameters of the wrapper function) instead of
the ones returned by LS.
Fixes: 80236f2367 - ac/nir/tess: add if/endif for HS threads in NIR instead of ACO/LLVM
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35620 >
2025-06-20 21:21:27 +00:00
Eric Engestrom
b3ed7f7b63
radeonsi/ci: reduce coverage of radeonsi-vangogh-glcts
...
It currently takes 15min of test run time, which is higher than what
a merge-pipeline test is allowed.
Reduce it to 10min, and reduce the timeouts which were way too high.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35588 >
2025-06-20 20:24:59 +00:00
Eric Engestrom
fb8c2a6318
turnip/ci: document vkd3d regression
...
It started failing after a commit in the 2782fa2c...df55ea8c range.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35661 >
2025-06-20 20:08:57 +00:00
Emma Anholt
e9d75ce16b
ci/tu: Sync up a660's flakes with a618 where they seem to match up.
...
and generalize a couple more things into regexes. I noticed these after
enabling 660 flake reporting and starting to see them roll in on the CI
channel.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35659 >
2025-06-20 19:46:45 +00:00
Emma Anholt
8e22420187
ci/tu: Don't forget to report flakes on a660, too.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35659 >
2025-06-20 19:46:45 +00:00
Emma Anholt
2919d64d98
ci/tu: Add some recent flakes and consolidate lists into regexes.
...
I was going to stability test an MR, and for that I want the flakes list
to be truthful.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35659 >
2025-06-20 19:46:45 +00:00
Eric Engestrom
6addaca3d4
hasvk: only run tests on x86 (32 & 64 bit)
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13305
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35635 >
2025-06-20 19:32:18 +00:00
Danylo Piliaiev
9db945c3be
tu: Add info about usage to command buffers tracepoint
...
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35637 >
2025-06-20 19:15:44 +00:00
Danylo Piliaiev
9f74fcffe4
tu: Add MESA_TRACE_FUNC to submit and BO alloc paths
...
Makes much easier to see how slow are submits and BO allocs,
which sometimes happen together.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35637 >
2025-06-20 19:15:44 +00:00
Danylo Piliaiev
6e5944ec4b
tu: Cache copy timestamp cs to avoid allocations on submit
...
For non-ONE_TIME_SUBMIT command buffers we have to create CS that
copies u_trace timestamps. Having cs pool allows us to avoid
allocations in most cases.
Together with previous commit, BO allocations on submit would be
rare during normal u_trace tracing.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35637 >
2025-06-20 19:15:44 +00:00
Danylo Piliaiev
a1b9aa3385
tu: Suballocate u_trace buffers to avoid allocations on submit
...
For non-ONE_TIME_SUBMIT command buffers we have to copy tracepoints
which leads to BO allocations. That adds overhead we don't want,
especially when there are many tiny submissions.
While suballocator for u_trace BOs is allocated only when needed,
it's not deallocated afterwards, since the point where it's not needed
is tricky to determine.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35637 >
2025-06-20 19:15:44 +00:00
Alyssa Rosenzweig
8ec4337c1f
hk: drop psiz writes with !largePoints
...
affects geom/tess mostly.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:16 +00:00
Alyssa Rosenzweig
691aa581c3
hk: optimize !largePoints
...
should slightly help proton
requires reordering the uvs lowering to be after tes lowering since that can
insert psiz writes.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:16 +00:00
Alyssa Rosenzweig
9d7301b2d1
hk: disable custom border for proton
...
zoom.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:16 +00:00
Alyssa Rosenzweig
ba4bab0584
hk: make border colour lint quieter
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:16 +00:00
Alyssa Rosenzweig
81e005c18b
hk: don't give DXVK fake min/max
...
no games use this, we want to be demoted to fl11 for dxvk for perf anyway.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:16 +00:00
Alyssa Rosenzweig
b68f34e1f9
hk: stop uploading blend constants
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:15 +00:00
Alyssa Rosenzweig
34b8ef8f7e
hk: stop reserving pile of uniform regs for literally no reason
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:15 +00:00
Alyssa Rosenzweig
8fb891334f
hk: make image heap / root uniform dynamic
...
so we don't have to worst case alloc without disrupting gl.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:15 +00:00
Alyssa Rosenzweig
f64ba2d2dc
hk: don't advertise b4g4r4a4 format
...
it is optional and broken with opaque_black
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:14 +00:00
Alyssa Rosenzweig
3afd675310
hk: use #defines for uniforms
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:14 +00:00
Alyssa Rosenzweig
53bbd850f5
asahi: use #defines for uniforms
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:14 +00:00
Alyssa Rosenzweig
c3b449ff98
asahi: use #defines for prologs/epilogs
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:14 +00:00
Alyssa Rosenzweig
733dd3ba4e
asahi: clean up fs prolog pass
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:14 +00:00
Alyssa Rosenzweig
c4b3f8cf74
agx: add headers for uniform abi
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:14 +00:00
Alyssa Rosenzweig
5795c8595f
nir: model dynamic uniform layout on hk
...
add some new intrinsics so we can defer lowering until we have the information.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35658 >
2025-06-20 18:46:13 +00:00
Yiwei Zhang
7b81c5bb78
vulkan/android: clean up u_gralloc_get_buffer_color_info handling
...
Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35613 >
2025-06-20 18:13:36 +00:00