Qiang Yu
ef0b6f8262
egl,gallium,gbm,mesa: replace get_param with pipe_caps access
...
Use command:
find . -path "./.git" -prune -o -type f -exec sed -i ':a;N;$!ba;s/->get_param([^,]*,[[:space:]]*PIPE_CAP_\([^)]*\))/->caps.\L\1/g' {} +
And some manual adjustment.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
b2caa48ec9
mesa/st: enable extension use pipe_caps access
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
e5e5af05ea
egl,gallium,glx: replace dri_get_screen_param with pipe_caps access
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
aa9fa085fe
nine: change cap macros to use pipe_caps access
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
5c0d4a6225
zink: add zink_init_screen_caps
...
It's one-one map of zink_get_param and zink_get_paramf.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
9c5b1249cd
virgl: add virgl_init_screen_caps
...
It's one-one map of virgl_get_param and virgl_get_param.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
763194db00
vc4: add vc4_init_screen_caps
...
It's one-one map of vc4_screen_get_param and vc4_screen_get_paramf.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
efe9cc8c82
v3d: add v3d_init_screen_caps
...
It's one-one map of v3d_screen_get_param and v3d_screen_get_paramf.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
9d7578d0b2
tegra: init screen caps
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
9043f69342
svga: add svga_init_screen_caps
...
It's one-one map of svga_get_param and svga_get_paramf.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
d9e569e3c9
softpipe: add softpipe_init_screen_caps
...
It's one-one map of softpipe_get_param and softpipe_get_paramf.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
dab60edff9
radeonsi: add si_init_screen_caps
...
It's one-one map of si_get_param() and si_get_paramf().
Move has_draw_indirect_multi calculation before
si_init_screen_caps to be used by later.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
7cd606f01b
r600: add r600_init_screen_caps
...
It's one-one map of r600_get_param() and r600_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
850c4281c3
r300: add r300_init_screen_caps
...
It's one-one map of r300_get_param() and r300_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
205669e3a9
panfrost: add panfrost_init_screen_caps
...
It's one-one map of panfrost_get_param() and panfrost_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
aa239fd52d
nouveau/nvc0: add nvc0_init_screen_caps
...
It's one-one map of nvc0_screen_get_param() and
nvc0_screen_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
5a3f23f589
nouveau/nv50: add add nv50_init_screen_caps
...
It's one-one map of nv50_screen_get_param() and
nv50_screen_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
b12fef1933
nouveau/nv30: add nv30_init_screen_caps
...
It's one-one map of nv30_screen_get_param and nv30_screen_get_paramf.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
6b9252538f
llvmpipe: add llvmpipe_init_screen_caps
...
It's one-one map of llvmpipe_get_param() and llvmpipe_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
cb6eb16ca5
lima: add lima_init_screen_caps
...
It's one-one map of lima_screen_get_param() and
lima_screen_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
ad8b03e762
iris: add iris_init_screen_caps
...
It's one-one map of iris_get_param() and iris_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:46 +00:00
Qiang Yu
f1933a38b8
i915: add i915_init_screen_caps
...
It's one-one map i915_get_param() and i915_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
08f96c0eaf
freedreno: add fd_init_screen_caps
...
It's one-one map of fd_screen_get_param() and
fd_screen_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
68e3be1ea8
etnaviv: add etna_init_screen_caps
...
It's one-one map of etna_screen_get_param() and
etna_screen_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
06b4fd1682
d3d12: add d3d12_init_screen_caps
...
It's one-one map of d3d12_get_param() and d3d12_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
2c38fe1769
crocus: add crocus_init_screen_caps
...
It's one-one map of crocus_get_param() and crocus_get_paramf()
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
01b5ac8337
asahi: add agx_init_screen_caps
...
It's one-one map of agx_get_param() and agx_get_paramf().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
a036231c09
gallium: add u_init_pipe_screen_caps
...
This is a one-one map of u_pipe_screen_get_param_defaults.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Qiang Yu
9f208a5308
gallium: add pipe_caps struct definition
...
one-one map of pipe_cap enum.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32955 >
2025-01-17 04:39:45 +00:00
Benjamin Lee
b3d1130d5d
panvk: disable round_to_nearest_even for NEAREST-filtered samplers
...
As described in the comment, enabling the round_to_nearest_even results
in the upper 2^-9 of the texel i being sampled at i+1. This appears to
be allowed by the spec, but triggers a CTS bug[1]. Changing this behavior
is not necessary (we could fix the CTS), but is desirable regardless
because of the precision improvement.
[1]: https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/5547
Signed-off-by: Benjamin Lee <benjamin.lee@collabora.com >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32985 >
2025-01-17 03:59:39 +00:00
Erik Faye-Lund
4e58029dc0
pan/va: fix base-level for nir_texop_lod
...
The documentation says that if we don't use force_delta, the LOD will be
-infinity for non-active lanes before bias and clamp are applied. This
is not what we want, so let's instead assume all threads are active, and
let helper-invocations do their job to compute correct values.
While this is only needed for the second iteration, let's just leave it
on for both for simplicity.
Fixes: e317136536 ("pan/va: Add support for nir_texop_lod")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33069 >
2025-01-17 02:48:06 +00:00
Samuel Pitoiset
4526f2692e
radv: mark AMD CDNA as unsupported
...
No access to the hw and likely broken.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33031 >
2025-01-17 01:30:16 +00:00
Samuel Pitoiset
c942d957b0
radv: fail to initialize when the AMD GPU generation is unsupported
...
Better to be conservative than allowing something that isn't supposed
to be working.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33031 >
2025-01-17 01:30:16 +00:00
Caio Oliveira
0b310ae4d8
intel/brw: Rename fs_generator to brw_generator
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32844 >
2025-01-17 00:04:41 +00:00
Caio Oliveira
3659934862
intel/brw: Add brw_generator.h header
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32844 >
2025-01-17 00:04:41 +00:00
Caio Oliveira
a5a9f42a39
intel/brw: Rename brw_fs_generator.cpp to brw_generator.cpp
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32844 >
2025-01-17 00:04:41 +00:00
Sathishkumar S
2e36d1f3d0
radeonsi/vcn: enable roi decode and rgb targets on JPEG_5_0_1
...
JPEG_5_0_1 supports region of interest decode and RGB format conversion
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33004 >
2025-01-16 23:41:28 +00:00
Sonny Jiang
5b2de9e593
radeonsi/vcn: Add vcn_5_0_1 support
...
Add support for AMD vcn_5_0_1
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33004 >
2025-01-16 23:41:28 +00:00
Valentine Burley
f7be8e228a
turnip/ci: Decrease the fraction on a660-vk-full
...
With the improved GPU recovery thanks to the new kernel, we can now
complete a full, non-fractioned run on the a660 in just over an hour.
To stay within this runtime, the fractions for the gmem-forced runs
have been increased.
Signed-off-by: Valentine Burley <valentine.burley@collabora.com >
Reviewed-by: David Heidelberg <None>
Reviewed-by: Sergi Blanch Torné <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32788 >
2025-01-16 22:57:52 +00:00
Vignesh Raman
9e7ca3b86a
ci: update expectation files
...
Update expectation files for the test
runs with kernel 6.13-rc4.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Reviewed-by: David Heidelberg <None>
Reviewed-by: Sergi Blanch Torné <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32788 >
2025-01-16 22:57:52 +00:00
Vignesh Raman
af8ab2bb3e
ci: Uprev kernel to 6.13
...
Move to 6.13-rc4 for all mesa-ci jobs except anv-jsl.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Reviewed-by: David Heidelberg <None>
Reviewed-by: Sergi Blanch Torné <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32788 >
2025-01-16 22:57:52 +00:00
Vignesh Raman
ac078768c9
ci: Force db410c to host mode
...
Force db410c to host mode to fix network issue which results in failure
to mount root fs via NFS.
See https://gitlab.freedesktop.org/gfx-ci/linux/-/commit/cb72a629
https://lore.kernel.org/r/20230911161518.650726-1-vignesh.raman@collabora.com
Use apq8016-sbc-usb-host.dtb which allows the USB controllers
to work in host mode.
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com >
Reviewed-by: David Heidelberg <None>
Reviewed-by: Sergi Blanch Torné <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32788 >
2025-01-16 22:57:52 +00:00
Christian Gmeiner
776795f76a
v3dv: Add some CPU tracepoints
...
Add tracepoints for pipeline creations, bo wait and queue submits.
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33012 >
2025-01-16 22:31:17 +00:00
David Rosca
986f545744
gallium/vl: Fix creating buffers with auxiliary planes
...
Buffers with compression enabled (eg. DCC) have auxiliary planes that
needs to be all imported, but should not be used to create sampler views
and surfaces.
Only use main planes and ignore the remaining planes.
Also remove vl_video_buffer::num_planes as it's now unused.
Cc: mesa-stable
Acked-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32893 >
2025-01-16 21:11:52 +00:00
Job Noorman
cf87ed60e2
ir3: output early-preamble stat as integer
...
shaderdb's report.py can only handle integer stats. So instead of
outputting early/late for the preamble stat, output 0/1 for the
early-preamble stat.
Signed-off-by: Job Noorman <jnoorman@igalia.com >
Fixes: 114a47544f ("ir3: Add preamble instr count metric")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33055 >
2025-01-16 20:33:45 +00:00
duncan.hopkins
8c743d01c7
zink, kopper: Conitionally add VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT to swap chain imageUsage.
...
VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT is not supported on MacOS for swap chain images and its use is not always needed.
For MoltenVK report PIPE_CAP_FBFETCH as 0 to back this up.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32651 >
2025-01-16 20:03:23 +00:00
duncan.hopkins
17e5ea118e
zink: Avoid optimalDeviceAccess on MoltenVK when creating depth taregts.
...
MoltenVK fails to create a depth format target if `optimalDeviceAccess`, `info.have_EXT_host_image_copy` and `VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT` are in used.
The specification seems to claim it is not needed if `hic.identicalMemoryLayout` is set, so for a MoltenVK build unset optimalDeviceAccess.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32651 >
2025-01-16 20:03:23 +00:00
duncan.hopkins
e630d4fb70
zink: MoltenVk has conditional VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE support.
...
MoltenVK support for VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE depends on the Metal API version in use. Which is directly related to the MacOS version.
Even if all the correct extensions or Vk versions are supported.
Detect if the feature is supported, assume it is not on MacOS unless told otherwise, and adjust the pipelines to honor this.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32651 >
2025-01-16 20:03:22 +00:00
Boris Brezillon
373d9df7ce
panvk/csf: Add a knob to force texture cache invalidation on RUN_FRAGMENT
...
Applications tend to forget to describe subpass dependencies, especially
when it comes to write -> read dependencies on attachments. The
proprietary driver forces "others" invalidation as a workaround, and this
invalidation even became implicit (done as part of the RUN_FRAGMENT) on
v13+.
We will consider adding a dri-conf hook for this option in the future,
but for now, let's just keep it as an opt-in debug flag.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33056 >
2025-01-16 18:14:43 +00:00
Boris Brezillon
c72379e506
panvk/csf: Fix add_memory_dependency() for input attachment access
...
Input attachment reads are lowered to image reads and thus require
a flush of the read-only L1 caches.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33056 >
2025-01-16 18:14:43 +00:00