Yiwei Zhang
488b2d4d25
virgl/venus/vtest: align capset and protocol with virglrenderer
...
Virgl and venus capsets along with vtest protocol v3 are all stable now.
This change is to align with:
https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1311
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34135 >
2025-03-24 21:58:10 +00:00
Yiwei Zhang
25556de759
venus: enable VK_EXT_debug_utils
...
After adopting common command buffers, venus can safely enable the
extension leveraging the common implementation.
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34135 >
2025-03-24 21:58:10 +00:00
Yiwei Zhang
63cac09d74
venus: improve image memory requirement cache for image aliasing
...
We can strip the alias bit as the memory requirements are identical
between the bound image and the aliased image per spec.
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34135 >
2025-03-24 21:58:10 +00:00
Yiwei Zhang
adcb967c5c
venus: fix maint4 multi-planar memory requirements
...
Fixes: ce1bbd241e ("venus: extend image cache to vkGetDeviceImageMemoryRequirements")
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34135 >
2025-03-24 21:58:10 +00:00
Yiwei Zhang
ea6dc035d8
venus: fix ahb usage caching
...
Test: dEQP-VK.api.external.memory.android_hardware_buffer.*
Fixes: fde5cebec5 ("venus: fix image format cache miss with AHB usage query")
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34135 >
2025-03-24 21:58:10 +00:00
Yiwei Zhang
8b2703fe08
venus: fix unexpected ring alive status expire upon owner thread switch
...
If the last owner thread has just unset the alive status and released
the watchdog, the new owner thread could have acquired to abort
unexpectedly if the ownership transfer occurs right before the next
owner's warn order. So we must set watchdog alive for new owner so that
it can properly check ring alive status in the next warn order.
Cc: mesa-stable
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34135 >
2025-03-24 21:58:10 +00:00
Aaron Ruby
3fb07c5412
gfxstream: No VIRGL_BIND_LINEAR for ColorBuffers
...
This was added as a temporary measure when the imageDrmFmtMod emulation
was not yet implemented. Accompanies the host-side change:
https://android-review.googlesource.com/c/platform/hardware/google/gfxstream/+/3558263
Reviewed-By: Gurchetan Singh <gurchetansingh@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34160 >
2025-03-24 21:29:03 +00:00
Eric Engestrom
09778670b4
ci: disable llvmpipe & virgl traces jobs
...
Until piglit's traces download is fixed.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
6cd7b65ac0
ci: run shader-db & zink-lvp on kvm runners
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
0def5682f9
ci: document new llvmpipe & softpipe failures since the migration
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Valentine Burley
a36379d973
ci: Add missing kvm runner tags
...
A recent change now requires the kvm runner tag to be explicitly listed
for jobs that need to run on runners with KVM capability.
This ensures the jobs are scheduled on compatible runners.
Cc: mesa-stable
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
89ab8a259c
ci: drop placeholder-job tags to allow jobs to run
...
That tag was supposed to allow these jobs to run faster, but these
runners are currently having disk issues, and the normal runners look
like they're plenty fast enough (at least right now since almost nobody
runs ci jobs ^^).
We might revert this later, but for now let's merge this to unblock CI.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
e38724bd1c
ci: bump image tags
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
7178425ccf
ci: replace broken s3cp command with a simple curl call
...
The current `s3cp` implementation does not work anymore after the
migration, and instead of fixing it and propagating the fix down to us,
it's simpler to directly use `curl`.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
39d68d12f3
ci: do a regular GET request for /done files, instead of HEAD
...
The s3 proxy bug that required this commit was fixed [1], but since
these /done files are empty, there's no benefit to using HEAD requests.
[1]: https://gitlab.freedesktop.org/freedesktop/helm-gitlab-deployment/-/commit/5acad8b02cd4cd84cc94c76bcc403629c2ce8f98
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
0a2650b08b
ci/baremetal: make sure we can follow redirects on s3 downloads
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
d425847793
ci: always abort if the curl download fails
...
Reported-by: @Valentine
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
213550d2e0
ci/piglit: drop usage of s3cp for a simple download
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
6ee58c19e5
ci/build: no need to list all the files that will go into the uploaded artifact
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
a47b2e3ad7
ci/init-stage2: document that only lava jobs upload results to s3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Eric Engestrom
3b72dca145
ci/container: fix image tags comment in trampoline script
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34120 >
2025-03-24 20:45:52 +00:00
Yiwei Zhang
d2a7c1c452
docs: demote VK_KHR_shader_relaxed_extended_instruction
...
It's not part of core 1.3.
Fixes: 8b272c8d8c ("docs: update feature matrix for VK_KHR_shader_relaxed_extended_instruction")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34104 >
2025-03-24 20:34:58 +00:00
Eric Engestrom
3c0e0c3d04
ci: document http proxy bug & disable farms relying on it
...
All the lava & baremetal farms have to be disabled because of this bug,
and until a fix is found and deployed to each of these farms.
2025-03-24 19:54:25 +01:00
Yiwei Zhang
5b11c3ff0a
venus: use common cmd pool_link
...
We only implement the destroy func to leverage the existing link, and we
only give vk_command_buffer the ops but not the pool.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:59 +00:00
Yiwei Zhang
4c0635ee04
venus: use vk_command_buffer internals
...
Use common tracking of cmd pool, cmd level and cmd state.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:59 +00:00
Yiwei Zhang
0a324d37da
venus: use common vk_command_buffer
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:59 +00:00
Yiwei Zhang
7a3c18fa8e
venus: use vk_command_pool internals
...
No longer need to track allocator, device or queue family.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:59 +00:00
Yiwei Zhang
58b0d2e234
venus: use common vk_command_pool
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:59 +00:00
Yiwei Zhang
84b33aa6e1
venus: explicitly get vn_device from vk_device
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:59 +00:00
Yiwei Zhang
dfcad90240
venus: rename common vk object base member to vk
...
This way we avoid the confusing base.base or even base.base.base when
venus uses common objects. This also aligns with the naming of the other
drivers.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34083 >
2025-03-15 22:14:58 +00:00
Eric R. Smith
2ee3bef252
panfrost: consider xfb shader when calculating thread local storage size
...
Register spilling can cause us to require thread local storage (tls).
However, we were not adjusting the tls stack size space to account for
the tls needed for the extra xfb shader when transform feedback is
needed. We noticed this when testing register allocation in the
OpenGL CTS (for testing we had forced spilling where none happened
before).
Cc: mesa-stable
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33935 >
2025-03-15 15:04:25 +00:00
Lucas Stach
ed72d97d48
etnaviv/ci: remove fragcoord related fails on GC7000
...
Both GC7000 GPUs have the RA_WRITES_DEPTH feature, which needs a bit
more prodding to have valid fragcoord.zw components present in the
shader. This has been fixed by the previous commit, so we can remove
the related fails from the CI expectation.
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/34081 >
2025-03-15 10:56:21 +00:00
Lucas Stach
030af65603
etnaviv: enable forwarding ZW fragcoord components from RA to SH
...
On GPUs with the RA_WRITE_DEPTH feature, passing Z and/or W values
to SH can be gated. It doesn't have any impact on performance, so
maybe it's just to be able to free those register slots for other,
currently unknown, values. For now simply enable passing both Z and
W to SH unconditionally to make those GPUs behave like the ones
without the RA_WRITE_DEPTH feature.
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/34081 >
2025-03-15 10:56:21 +00:00
Lucas Stach
b5c9748082
etnaviv: Update headers from rnndb
...
Update to rnndb commit 51dbdbd9b83a
("rnndb: document RA depth W forwarding gate").
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/34081 >
2025-03-15 10:56:21 +00:00
Bas Nieuwenhuizen
61feea6954
radv: Move support check out of winsys.
...
To get the right error code. Mostly shouldn't be winsys dependent
anyway, outside of the idea that if we explicitly emulate a device
we should just assume th euser knows what they're doing.
Fixes: c942d957b0 ("radv: fail to initialize when the AMD GPU generation is unsupported")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12792
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33964 >
2025-03-14 23:18:13 +00:00
Lionel Landwerlin
5ba7e00d9f
anv: Set limit_trig_input_range option for Company of Heroes 3
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12769
Acked-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34078 >
2025-03-14 22:40:23 +00:00
Connor Abbott
cc09d5443b
ir3: Use needs_full_helper_invocations
...
require_full_quads is incorrect because it isn't actually enabled by
quad operations. Use the newly-introduced needs_quad_helper_invocations
instead.
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Fixes: 264d8a6766 ("ir3: Set need_full_quad depending on info.fs.require_full_quads")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33862 >
2025-03-14 21:55:58 +00:00
Connor Abbott
1621080df7
compiler,nir: Gather needs_full_quad_helper_invocations info
...
This is needed on Qualcomm, where there are separate fields to enable
just 3 fragments and all 4 fragments.
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Fixes: 264d8a6766 ("ir3: Set need_full_quad depending on info.fs.require_full_quads")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33862 >
2025-03-14 21:55:58 +00:00
Connor Abbott
7a55e13939
nir, compiler: Rename needs_quad_helper_invocations
...
This currently treats coarse and fine derivatives the same, but Qualcomm
needs to know whether just coarse derivatives are used or fine
derivatives/quad ops are also used. Rename this to
needs_coarse_quad_helper_invocations make clear the difference from the
new field, needs_full_quad_helper_invocations.
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Fixes: 264d8a6766 ("ir3: Set need_full_quad depending on info.fs.require_full_quads")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33862 >
2025-03-14 21:55:57 +00:00
Connor Abbott
640a5e28fd
compiler/shader_info: Better document require_full_quads
...
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33862 >
2025-03-14 21:55:57 +00:00
Connor Abbott
f244d54953
tu: Expose VK_KHR_maintenance8
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:05 +00:00
Connor Abbott
824cc0e933
ir3: Remove ir3_info::data
...
This isn't useful, and it was getting serialized resulting in garbage in
the blob and tests that check for consistent serialization failing.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:05 +00:00
Connor Abbott
9baf5aee1a
tu: Handle a pipelineStageCreationFeedbackCount of 0
...
The spec says this is allowed to be 0.
Cc: stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:05 +00:00
Connor Abbott
c3dc4540b5
tu: Handle R8->D24S8 and D24S8->R8 copies
...
This is now allowed in VK_KHR_maintenance8. Copies that reinterpret
D24S8 as any 32-bit format are also allowed, but they should already
work.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:05 +00:00
Connor Abbott
767818d8d9
tu: Handle D32S8 -> R32 and R32 -> D32S8 copies
...
When we copy the depth aspect of a D32S8 image to or from a R32
image, we don't need to split the copy or modify the aspect mask. Limit
this path to "true" D32S8->D32S8 copies.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:05 +00:00
Connor Abbott
12961c2c80
tu: Plumb through VkMemoryBarrierAccessFlags3KHR
...
We don't use the additional access flags for anything yet, but pass them
through to vk2tu_access in case we will need to for a future extension.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:05 +00:00
Connor Abbott
3800f4c199
tu: Implement VK_KHR_maintenance7
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33780 >
2025-03-14 21:27:04 +00:00
Alyssa Rosenzweig
8b39b75308
ail: drop fake modifiers
...
this just existed so upstream could build.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34075 >
2025-03-14 20:51:36 +00:00
Alyssa Rosenzweig
ba8eeaee8c
drm-uapi: update drm_fourcc.h
...
adds Apple modifiers from drm-misc-next:
https://cgit.freedesktop.org/drm-misc/commit/?id=c8619f5402cbcccfe58151b53421029852473e4c
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34075 >
2025-03-14 20:51:36 +00:00
Pavel Ondračka
1b63ffc31e
r300: remove support for tgsi_texcoord
...
We no longer need finalize_nir and thus we don't need to support
texcoord as well. This is a nice rs state cleanup.
This effectivelly reverts commits
0ac6801970 and
d4b8e8a481 . Also import the previous
location fixup from the state tracker, which was removed when the
unconditional nir_opt_varying pass was introduced.
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33961 >
2025-03-14 20:23:01 +00:00