Nanley Chery
53838f596b
iris: Drop iris_resource_level_has_hiz()
...
This function disabled HiZ support when it encountered LODs which did
not satisfy a restriction of ISL_AUX_OP_AMBIGUATE for gfx8-9. Now that
the previous commit avoids that auxiliary operation for those platforms,
it is not so useful. Replace it with a simple check of the aux-usage.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:41 +00:00
Nanley Chery
a098077366
iris: Initialize HiZ to the CLEAR state on BDW-ICL
...
We disable HiZ for some LODs on gfx8-9 to comply with ambiguate
operation restrictions. Avoid this restriction by initializing HiZ to
the CLEAR state on those platforms. By doing this, an ambiguate will
never occur. Also, do this for ICL as an optimization.
We'll enable HiZ for all LODs on gfx8-9 in the next patch.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:39 +00:00
Nanley Chery
5964c31429
iris: Don't zero the CCS in an already zeroed BO
...
Avoid redundant work. Includes a refactor that will be helpful for HiZ
in the next patch.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:39 +00:00
Nanley Chery
ef4f4d3f84
intel/isl: Update the aux-state of zeroed HiZ
...
By dumping the contents of a HiZ buffer before and after fast-clearing,
I've observed that a zeroed HiZ block corresponds to the CLEAR state
until gfx12. The fast-clearing application was piglit's bin/hiz. I ran
this test on a couple bare metal platforms (ICL and BDW) and many
simulated ones (SKL, TGL, DG2, and LNL).
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:39 +00:00
Nanley Chery
a13aab1859
intel/isl: Update the initial HiZ state for Xe2+
...
Avoids ambiguating in iris and anv.
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:39 +00:00
Nanley Chery
b709d7dd39
intel: Delete the has_illegal_ccs_values bool
...
This was only used in one location.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:39 +00:00
Nanley Chery
d41bff3836
anv: Query ISL for the aux-state of undefined layouts
...
For CCS_E on gfx12+, this will cause us to perform full resolves when
transitioning from undefined to a layout which does not support
compression. We don't currently perform such transitions because
compression is always enabled.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:38 +00:00
Nanley Chery
7d284fe399
intel/isl: Define initial state of non-zeroed CCS on gfx9-11
...
isl_aux_get_initial_state() will soon be used for non-zeroed CCS on
gfx9+. Update the function to avoid hitting an unreachable().
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36383 >
2025-10-06 13:50:37 +00:00
Lionel Landwerlin
69771e4bfe
brw: fix render target indexing in FS output reads
...
I forgot that the base indice is actually a more complex value that
encodes the render target index and other things.
Also fix the 1d-layered accesses by checking the size of the
framebuffer.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14008
Fixes: d4ab2087cf ("brw: lower non coherent FS load_output in NIR")
Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37653 >
2025-10-06 13:24:16 +00:00
Zan Dobersek
27c16c46fd
fd: allow limiting RD dumps to specific frames and submits
...
RD dump generation can be expensive and can only be desired for some
specific part of execution. Trigger file mechanism helps with this to a
certain degree but is still somewhat inexact.
FD_RD_DUMP_SUBMITS environment variable can be used to specify ranges of
submit indices for which RD dumps of command streams should be generated.
FD_RD_DUMP_FRAMES environment variable can similarly be used to specify
ranges of frames under which RD dumps for submitted command streams should
be generated. Frame ranges only really work with Turnip since the frame
count data is available there.
Signed-off-by: Zan Dobersek <zdobersek@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37499 >
2025-10-06 12:07:55 +00:00
Sergi Blanch Torne
19b3237408
Revert "ci: disable Collabora's farm due to maintenance"
...
This reverts commit 4e8f01b864 .
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37712 >
2025-10-06 13:00:52 +02:00
David Rosca
59a3ca2333
radv/video: Fix waiting on encode feedback query
...
Currently we wait until the second dword in feedback buffer changes
from 0 to 1, and then the rest of the feedback is read. There is no
guarantee that the rest of the feedback will be available, which can
cause bitstream size to be incorrectly returned as 0.
Add write memory command after encode, marking the query as available
to ensure the entire feedback buffer is ready.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13601
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36772 >
2025-10-06 10:32:54 +00:00
David Rosca
a8f4a2a9ba
radv/video: Check FW version before using WRITE_MEMORY
...
Move the version check to separate function so that it can
also be used elsewhere.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36772 >
2025-10-06 10:32:54 +00:00
David Rosca
40c124e67a
radv: Change radv_vcn_write_event to a write memory func
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36772 >
2025-10-06 10:32:53 +00:00
Eric Engestrom
2ecd354a22
ci: check for missing meson dependencies
...
Based on @eschwartz's https://codeberg.org/eli-schwartz/eschwartz-dev-scripts/src/branch/master/install-qa-check.d/50ninja-missingdeps
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37490 >
2025-10-06 09:53:24 +00:00
Eric Engestrom
e17469f99f
ci/alpine: install the real ninja package
...
The `samurai` re-implementation that we'd been using is missing the
tools, in particular `missingdeps` which we're about to start using, so
let's not leave alpine out.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37490 >
2025-10-06 09:53:24 +00:00
Eric Engestrom
3f40a7d998
docs: finish converting the docs job into a meson build job
...
This is required for the next job, because we'll need a login shell
session to be able to use `ninja`, which the normal build jobs
automatically handle, but the custom docs job we had didn't.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37490 >
2025-10-06 09:53:24 +00:00
Eric Engestrom
43eb5555df
iris/meson: generate git_sha1.h before compiling iris_program.c
...
Fixes: dedbe0e826 ("iris: Create archive file when using INTEL_DEBUG=mda")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37490 >
2025-10-06 09:53:24 +00:00
Sergi Blanch Torne
cf9b0c1fd3
ci: fix requirements file
...
With the migration concluded on !37510 of the lava-job-submitter (it is now an
independent project under the gfx-ci namespace), a lava requirements file was
not necessary anymore, but there was still one reference.
Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37713 >
2025-10-06 09:18:49 +00:00
Erik Faye-Lund
478e8f11c4
pvr: split out rogue hw-defs to separate folder
...
This just carves out some space for future architectures in the source
tree.
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37675 >
2025-10-06 11:02:04 +02:00
Erik Faye-Lund
88e626b6eb
pvr: kill rogue_hwdefs.h
...
This header is only used in a single place, which will generate macros
based on these definitions. Let's remove the header, and just include
the separate files in pvr_csb.h instead.
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37675 >
2025-10-06 11:02:00 +02:00
Erik Faye-Lund
be0c740c73
pvr: include pvr_csb.h first in implementation
...
This just makes sure the header file is free-standing.
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37675 >
2025-10-06 11:01:28 +02:00
Frank Binns
162cc070f0
docs: add pvr VK 1.0, extensions and optional features to new_features.txt
...
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Acked-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37683 >
2025-10-06 08:09:34 +00:00
David Rosca
af79dd205e
pipe: Remove resource_get_info
...
Not used anymore.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37628 >
2025-10-06 07:11:09 +00:00
David Rosca
b25c40b857
frontends/va: Use resource_get_param instead of resource_get_info
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37628 >
2025-10-06 07:11:09 +00:00
David Rosca
25de079408
d3d12: Implement resource_get_param
...
Reviewed-By: Silvio Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37628 >
2025-10-06 07:11:09 +00:00
David Rosca
02aaf360ae
r600: Implement resource_get_param
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37628 >
2025-10-06 07:11:09 +00:00
Samuel Pitoiset
874bc09537
radv: reserve more CS space when executing DGC calls
...
This can trigger an assert otherwise. The space reserved before
executing DGC IBs is an arbitrary number which should be large enough
in all cases.
Found this while implementing descriptor heap.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37681 >
2025-10-06 06:28:18 +00:00
Sergi Blanch Torne
4e8f01b864
ci: disable Collabora's farm due to maintenance
...
Planned downtime in the farm:
* Start: 2025-10-06 07:00 UTC
* End: 2025-10-06 13:00 UTC
Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37431 >
2025-10-06 06:02:59 +00:00
Bas Nieuwenhuizen
82d06b58ad
radv: use vk_drm_syncobj_copy_payloads
...
Based on a patch by llyyr <llyyr.public@gmail.com >:
!36827 added the copy_sync_payloads function, but didn't enable use of
it in radv. This commit mirrors similar MRs for anv/panvk/nvk and uses
the common vk_drm_syncobj_copy_payloads function for copy_sync_payloads.
I'm not too familiar with radv internals, so there's potentially a good
reason why this isn't a good change. However, I've personally been using
this patch locally for around a month and have experienced no
regressions and around 8% uplift on vkmark test scores with a 6600 XT.
[vertex] device-local=true: 45110 -> 48489 (+7.5%)
[vertex] device-local=false: 17529 -> 17488 (-0.2%)
[texture] anisotropy=0: 44768 -> 48679 (+8.7%)
[texture] anisotropy=16: 44920 -> 48572 (+8.1%)
[shading] shading=gouraud: 44931 -> 48467 (+7.9%)
[shading] shading=blinn-phong-inf: 44849 -> 48740 (+8.7%)
[shading] shading=phong: 44695 -> 48645 (+8.8%)
[shading] shading=cel: 44809 -> 47938 (+7.0%)
[effect2d] kernel=edge: 45185 -> 47837 (+5.9%)
[effect2d] kernel=blur: 26919 -> 26762 (-0.6%)
[desktop] <default>: 40974 -> 44034 (+7.5%)
[cube] <default>: 45090 -> 49270 (+9.3%)
[clear] <default>: 41102 -> 44375 (+8.0%)
(https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37606 )
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37640 >
2025-10-06 00:45:09 +00:00
Mary Guillemard
b0d2d4537f
nouveau/headers: Properly reformat nv_push_dump
...
It was using 2 spaces, this run clang-format on it.
Signed-off-by: Mary Guillemard <mary@mary.zone >
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37700 >
2025-10-05 15:14:37 +02:00
Mary Guillemard
f3a5e6df95
nouveau/headers: Add missing Kepler, Maxwell and Pascal defs to nv_push_dump
...
Signed-off-by: Mary Guillemard <mary@mary.zone >
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37700 >
2025-10-05 15:14:37 +02:00
Mary Guillemard
ec223859a8
nouveau/headers: Define fake devices in a table for nv_push_dump
...
This was getting quie big... also fix KEPLER_A missing compute channel.
This now make it possible to also specify by generation full name while
retaining compat with the old names.
Signed-off-by: Mary Guillemard <mary@mary.zone >
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37700 >
2025-10-05 15:14:37 +02:00
Timothy Arceri
2f799ef0f1
Reapply "ci/freedreno: Skip overly-slow trace"
...
This reverts commit e2217192fa .
Unfortunately this is still timing out.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37709 >
2025-10-05 17:50:06 +11:00
Timothy Arceri
e2217192fa
Revert "ci/freedreno: Skip overly-slow trace"
...
This reverts commit 1754bfa94a .
The timeout issue should be solve by the previous commit.
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37386 >
2025-10-05 05:29:36 +00:00
Timothy Arceri
db2126f8ef
util: rewrite remap util to avoid looping list
...
Here we write the binary search to avoid looping over the list
by keeping track of the mid point entries and moving directly
from the last test point.
Fixes: bf946bcc ("util: add range remap util")
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37386 >
2025-10-05 05:29:36 +00:00
Timothy Arceri
57ac68f616
util: add shortcut for range remap inserts
...
The user of this insert function often just inserts things in a
consecutive manner. So here we add a shortcut for inserting entries
at the tail of the list.
Fixes: bf946bccf2 ("util: add range remap util")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13894
Acked-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37386 >
2025-10-05 05:29:36 +00:00
Mauro Rossi
dd2476a257
amd: require LLVM when amd-use-llvm is enabled
...
Commit 2aaa6ebb "build/amd: add amd-use-llvm build option"
allows to build radeonsi and radv without LLVM dependency
so LLVM constraint is applicable when amd-use-llvm=true
Fixes: 82047fa8 ("amd: drop support for LLVM 15, 16, 17")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37695 >
2025-10-04 11:57:44 +02:00
Collabora's Gfx CI Team
7ef5653b11
Uprev ANGLE to 538129c6b3c17dc864101c7a4af4b74b00706f82
...
1df3b59f87...538129c6b3
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37356 >
2025-10-04 07:14:50 +00:00
Rob Clark
bd5ed33bb1
freedreno: Allow TC async fences to have an fd
...
We don't need to have this restriction, we just need to fence_flush()
before trying to access the fd. This path is exercised in CL CTS
gl-interop test if cl_gl_sharing is exposed.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696 >
2025-10-03 23:44:40 +00:00
Rob Clark
c1147980e5
freedreno: Always use aux-ctx for export blits
...
If we need to blit a resource to a buffer that can be exported (ie.
because it was suballocated, etc), always use the aux-context. This
can be called off of the driver thread, so it isn't thread-safe to
use the main context, even if it is not NULL.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696 >
2025-10-03 23:44:40 +00:00
Rob Clark
838ac4b736
freedreno: Handle buffer import
...
The layout_resource_for_handle() path is only intended for images/
textures. For buffers, call fdl_layout_buffer() directly.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696 >
2025-10-03 23:44:40 +00:00
Rob Clark
383508cb9f
freedreno/a6xx: Drop arbitrary import restrictions
...
As long as fdl is happy to layout the imported buffer type, we shouldn't
restrict it further. The cl_gl_sharing extends import/export beyond
winsys buffers, and these restrictions were getting in the way.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696 >
2025-10-03 23:44:39 +00:00
Rob Clark
ffcb8d0b89
freedreno/fdl: Set pitch for buffers
...
In the import path, we test pitch. So if we are to be able to import
buffers, we should also set the pitch for buffers.
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696 >
2025-10-03 23:44:39 +00:00
Lionel Landwerlin
0922a0dd50
nir/lower_tex: remove unused options
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37692 >
2025-10-03 20:19:03 +00:00
Lionel Landwerlin
a49cf90e14
elk: use the new lower_txd_cb
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37692 >
2025-10-03 20:19:03 +00:00
Lionel Landwerlin
a14fee571b
elk: remove txd bindless sampler lowering
...
The bindless sampler heap was introduced in Gfx11 which ELK doesn't
support.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37692 >
2025-10-03 20:19:03 +00:00
Lionel Landwerlin
bc8251673d
brw: use the new lower_txd_cb
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37692 >
2025-10-03 20:19:03 +00:00
Lionel Landwerlin
97dde5bc10
nir/lower_tex: add an callback to lower txd ops
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37692 >
2025-10-03 20:19:02 +00:00
Karol Herbst
1db77d08e2
clc: Fix createDiagnostics for LLVM-22
...
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13986
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Reviewed-by: Mary Guillemard <mary@mary.zone >
Reviewed-by: Janne Grunau <j@jannau.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37690 >
2025-10-03 18:44:30 +00:00