Commit graph

214296 commits

Author SHA1 Message Date
Nanley Chery
876e6b6603 anv: Don't return the Xe2+ fast-clear type early
Don't return early from anv_layout_to_fast_clear_type() for Xe2+. We'll
need to make more use of the function for some MCS changes in later
commits.

Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
(cherry picked from commit 811c413f98)

Conflicts:
	src/intel/vulkan/anv_image.c

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 13:29:08 -08:00
Dylan Baker
d4f2439b8a .pick_status.json: Mark 3275be503c as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 13:22:31 -08:00
Dylan Baker
ce6e370b7a .pick_status.json: Mark 0d7705c206 as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 13:22:30 -08:00
Dylan Baker
9f679d4b3d .pick_status.json: Mark ad23e02a28 as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 13:22:30 -08:00
Dylan Baker
73a7eb5117 .pick_status.json: Mark 62254ab0be as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 13:22:30 -08:00
Dylan Baker
73a6ac075c .pick_status.json: Mark 15328a5ef3 as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 13:22:29 -08:00
Samuel Pitoiset
e9f76947ae radv: fix tracking of pipelines used in secondaries
This is just wrong if the secondary uses ESO because the emitted
pipelines would be NULL in the secondary, but if the app re-binds
the same pipeline in the primary it would consider it as already
emitted. A sequence like this would break:

CmdBindPipeline(compute)
CmdDispatch()
CmdExecuteCommands() --> with ESO compute
CmdBindPipeline(compute)
CmdDispatch()

This tracking is probably useless anyways because it's unlikely that
apps will rebind the same pipeline right after CmdExecuteCommands() but
let's keep it because this is a bugfix.

Fixes
dEQP-VK.api.command_buffers.pipeline_shader_object_mix_with_secondaries.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 9ad02b5724)

Conflicts:
	src/amd/vulkan/radv_cmd_buffer.c

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 10:42:24 -08:00
Nick Hamilton
1ca310ea0a pco: Fix for atomic operations on an image buffer
Within the driver buffers are treated as 2D as sampling them as 1D
will run into HW restrictions on max size.

The compiler does the same however for atomic image ops the address
is manually calculated and doing this via the 2D path leads to
incorrect offsets.

The fix is to treat buffers as 1D for atomic ops which calculates
the correct offsets for the operations.

Fix deqp:
dEQP-VK.image.atomic_operations.add.buffer.*
dEQP-VK.image.atomic_operations.and.buffer.*
dEQP-VK.image.atomic_operations.compare_exchange.buffer.*
dEQP-VK.image.atomic_operations.dec.buffer.*
dEQP-VK.image.atomic_operations.exchange.buffer.*
dEQP-VK.image.atomic_operations.inc.buffer.*
dEQP-VK.image.atomic_operations.max.buffer.*
dEQP-VK.image.atomic_operations.min.buffer.*
dEQP-VK.image.atomic_operations.or.buffer.*
dEQP-VK.image.atomic_operations.sub.buffer.*
dEQP-VK.image.atomic_operations.xor.buffer.*

Fixes: 6dc5e1e109 ("pco: fully support Vulkan 1.2 image atomics")

Signed-off-by: Nick Hamilton <nick.hamilton@imgtec.com>
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com>
(cherry picked from commit 079377c767)

Conflicts:
	src/imagination/ci/bxs-4-64-fails.txt

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 10:35:47 -08:00
Dylan Baker
b2e691a718 .pick_status.json: Mark a3ec5ece8b as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 10:35:23 -08:00
Mike Blumenkrantz
88884be0cf ntv: emit demote extension/capability when emitting demote
this is cleaner and more accurate

cc: mesa-stable

(cherry picked from commit a842e641d9)

Conflicts:
	src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 10:28:25 -08:00
Zan Dobersek
06d06f4be4 tu: handle DS_DEPTH_BOUNDS_TEST_BOUNDS state under TU_DYNAMIC_STATE_RB_DEPTH_CNTL
MESA_VK_DYNAMIC_DS_DEPTH_BOUNDS_TEST_BOUNDS state should be emitted as part
of TU_DYNAMIC_STATE_RB_DEPTH_CNTL along with other depth state, and not as
part of dynamic stencil state.

Signed-off-by: Zan Dobersek <zdobersek@igalia.com>
Fixes: 979cf7bac0 ("tu: Merge depth/stencil draw states")
(cherry picked from commit 3cb4776ede)

Conflicts:
	src/freedreno/vulkan/tu_pipeline.cc

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 10:22:03 -08:00
Rob Clark
fd934d56c9 freedreno: Force single wavesize if double threadsize is unsupported
Turns out ir3 isn't enforcing this itself.

Fixes: c323848b0b ("ir3, tu: Plumb through support for per-shader robustness")
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
(cherry picked from commit 455b692e4f)

Conflicts:
	src/gallium/drivers/freedreno/ir3/ir3_gallium.c

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 10:12:50 -08:00
Sagar Ghuge
82ecfe260c anv/rt: Drop atomic operations on opacity flags
Each node has their own opacity bits, so we don't need to track these
opacity flags at header level.

This commit also fixes the instance flag. Instance flag is 8bit wide,
but we were always using 4 lower bits.

Cc: mesa-stable
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Felix DeGrood <felix.j.degrood@intel.com>
(cherry picked from commit 8e85607130)

Conflicts:
	src/intel/vulkan/bvh/encode.comp

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 09:54:00 -08:00
Samuel Pitoiset
e779c7e5f7 radv/meta: fix layered depth stencil resolves with compute
Fixes a bunch of new VKCTS coverage like
dEQP-VK.pipeline.monolithic.multisample.m10_resolve.resolve_cmd.d32_sfloat.depth.average.full_multilayer.no_flags

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 91a5a0f2b9)

Conflicts:
	src/amd/vulkan/meta/radv_meta_resolve_cs.c

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 09:47:23 -08:00
Dylan Baker
16dd2415f1 .pick_status.json: Mark 9d027fc870 as denominated
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 09:45:30 -08:00
Dylan Baker
ee01207c3c .pick_status.json: Update to e8fc50ef46
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-03 09:23:13 -08:00
Patrick Lerda
8b70f5537f r600: improve vs_as_ls switch reliability
This change updates the vs_as_ls switch logic to make it
reliable. It resets the dirty flag when the switch is
happening. It uses also evergreen_emit_vs_constant_buffers()
to try to update again some of the states which could be
lost otherwise.

This change fixes some "flakes". These tests needed previously
to be executed twice to set the hardware in the proper state
for the test to pass. It also fixes the main issue of the
texture_view.view_sampling test.

This change was tested on palm and cayman. Here are the tests
which are now utterly fixed:
khr-gl4[3-6]/stencil_texturing/functional: fail pass
khr-gl4[4-6]/texture_cube_map_array/texture_size_tesselation_ev_sh: fail pass
khr-gles31/core/texture_cube_map_array/texture_size_tesselation_ev_sh: fail pass
khr-glesext/texture_cube_map_array/texture_size_tesselation_ev_sh: fail pass

Fixes: 25f96c1120 ("r600: hook up constants/samplers/sampler view for tessellation")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Acked-by: Gert Wollny <gert.wollny@collabora.com>
(cherry picked from commit 9c5e15e6f5)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:03:01 -08:00
Mel Henning
ce981e4abd nvk: Report additional host_image_copy layouts
Fixes dEQP-VK.image.host_image_copy.properties.properties
on VK CTS 1.4.5

Fixes: d5df263ac9 ("nvk: Enable VK_EXT_host_image_copy")
Reviewed-by: Mary Guillemard <mary@mary.zone>
(cherry picked from commit 0e9d29f518)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:03:01 -08:00
Mel Henning
246ccb84e3 nvk: Initialize SET_ALPHA_TO_COVERAGE_OVERRIDE
This matches the initialization that the proprietary driver does.

Fixes dEQP-VK.query_pool.discard.*.alpha_to_coverage* on vk cts 1.4.5

Cc: mesa-stable
Reviewed-by: Mary Guillemard <mary@mary.zone>
(cherry picked from commit 8d7f14620b)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:45 -08:00
Konstantin Seurer
65a18d8ce1 vulkan: Limit the number of LBVH invocations
Fixes: 0817551 ("vulkan: Handle inactive primitives with LBVH builds")
Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
(cherry picked from commit 529c83a134)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:45 -08:00
Valentine Burley
5a93c10833 tu: Handle VkDrmFormatModifierPropertiesList2EXT
Expose DRM format modifiers via VkDrmFormatModifierPropertiesList2EXT.
VVL is one notable user.

This is required for VK_EXT_image_drm_format_modifier when
VK_KHR_format_feature_flags2 is supported.

Cc: mesa-stable
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
(cherry picked from commit e185f40fc3)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:44 -08:00
Karol Herbst
17faae2e87 clc: fix compile compatability with LLVM-22
See d090311aa7

Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit dc03f94e07)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:44 -08:00
Karol Herbst
13b0da02cf nir: fix nir_fixup_is_exported for LLVM-22
Starting with LLVM-22 we won't see the kernel wrapper anymore, and this
is a trivial fix to get around this.

See: 5458eb2511

Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit 24d20df3d6)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:43 -08:00
Karol Herbst
bb017901f3 clc: enable generic address space and seq_cst and device scope atomic features
This is going to be required with LLVM-22.

See 423bdb2bf2

Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit 6eda573a8a)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:43 -08:00
Karol Herbst
e4a544e0f1 clc: support some atomic and generic address space features
Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit 01e1392139)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:42 -08:00
Karol Herbst
c353f9e3d1 clc: reorder headers to fix compilation errors due to UNUSED
Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit 7f9a7ed553)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:01:42 -08:00
Dylan Baker
bd2685c9a5 .pick_status.json: Update to 693a3e1c50
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-02-02 09:00:43 -08:00
David Rosca
abe3efa433 radv/video: Fix maxActiveReferencePictures for H265 decode
Also change to use H265 constant for maxDpbSlots (both values for H264 and H265
are the same).

Fixes: ee535aa039 ("radv: video: rework maxActiveReferenceSlot/MaxDpbSlots")
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
(cherry picked from commit 7607aeefa6)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-30 08:24:32 -08:00
Eric Engestrom
28558d0525 Revert "meson: static link spirv-tools for darwin"
This reverts commit f21d0f2cbe.

This causes issues with other platforms trying to do static builds.

A better option is for everyone to use `meson setup --prefer-static`.

Fixes: f21d0f2cbe ("meson: static link spirv-tools for darwin")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14751
(cherry picked from commit 342a5ba44e)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-30 08:24:31 -08:00
Samuel Pitoiset
4f6859a73f radv: zero-initialize image view objects
Mostly to make sure that color/depth descriptors are zero-initialized
in case applications are missing the usage flags. In this case, they
will be considerd as null descriptors.

This hides the issue in
https://gitlab.freedesktop.org/mesa/mesa/-/issues/14637
but the real fix has to be in the Steam Overlay.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit fa4da581c6)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-30 08:24:25 -08:00
Hyunjun Ko
29fa4f1c99 anv/video: Compute AV1 tile positions internally
The pMiColStarts/pMiRowStarts arrays from applications may have
incorrect units. Instead of using them directly, compute the tile
start positions in superblock units internally based on the tile
dimensions.

Cc: mesa-stable
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit 8e9fec8e40)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-30 08:24:24 -08:00
Hyunjun Ko
e2af544bae anv/video: fix a typo in Vulkan AV1 decoding.
Cc: mesa-stable
Fixes: e510efed05d("anv: support in-loop super resolution for AV1 decoding")
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit 8004f46466)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-30 08:24:23 -08:00
Dylan Baker
21c1182102 .pick_status.json: Update to 29e7a1fff9
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-30 08:24:19 -08:00
Rhys Perry
ac72225800 radv: fix when incomplete rt pipeline libraries are loaded from cache
It might be that the radv_pipeline_cache_lookup_nir_handle() in
radv_ray_tracing_pipeline_cache_search() fails but we will later need the
NIR. If rt_stages[i].shader was non-NULL, then we would not have created
the NIR.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Backport-to: 25.2
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
(cherry picked from commit 89eefdcadb)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:15:06 -08:00
Olivia Lee
8fec8e88f1 hk: fix hk_passthrough_gs_key size computation
The non-dynamic members of xfb_info are already included in
sizeof(hk_passthrough_gs_key), so adding nir_xfb_info_size counts them
twice. Because of this we were including uninitialized memory in the key
in hk_handle_passthrough_gs, which is undefined behavior.

Fixes: 5bc8284816 ("hk: add Vulkan driver for Apple GPUs")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
(cherry picked from commit d6745b358d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:15:06 -08:00
Zan Dobersek
0e1c32baaa tu: allocate transient attachments used for LRZ
When proceeding with rendering, any transient attachment that will be used
as LRZ buffer should also be allocated. With GMEM rendering, these
attachments otherwise remained unloaded and subsequent LRZ clears produced
GPU faults.

Signed-off-by: Zan Dobersek <zdobersek@igalia.com>
Fixes: 764b3d9161 ("tu: Implement transient attachments and lazily allocated memory")
Fixes: #14604
(cherry picked from commit b6a049ea4b)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:15:05 -08:00
Mike Blumenkrantz
e6867fc009 ntv: emit ViewIndex with flat for fragment stage
cc: mesa-stable

(cherry picked from commit 999aaac12e)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:15:05 -08:00
Lionel Landwerlin
d15ff626f3 vulkan/wsi/direct: remove VkDisplay created from GetDrmDisplayEXT on ReleaseDisplayEXT
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net>
(cherry picked from commit 1112c1461d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:15:03 -08:00
Georg Lehmann
275ea941a3 nir/opt_algebraic: use correct syntax to create exact fsat
Fixes: 3b06824e4c ("nir/opt_algebraic: optimize some post peephole select patterns")

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit d8ef28671d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:14:59 -08:00
Tomeu Vizoso
0ef489a580 dril: don't build a rocket_dri.so
As Rocket has no graphics capability.

Fixes: 5b829658f7 ("rocket: Initial commit of a driver for Rockchip's NPU")
(cherry picked from commit a5daecafd3)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:14:58 -08:00
Dylan Baker
0d1a687a08 .pick_status.json: Update to 237e2d7b32
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-29 09:14:55 -08:00
Iván Briano
3fc2b77823 brw: fix local_invocation_index with quad derivaties on mesh/task shaders
For mesh/task shaders, the thread payload provides a local invocation
index, but it's always linear so it doesn't give the correct value when
quad derivatives are in use.
The lowering pass where all of this is done correctly for compute
shaders assumes load_local_invocation_index will be lowered in the
backend for mesh/task, calculates the values for the quads correctly but
then avoid replacing the original intrinsic and we remain with the wrong
results.

Add an intel specific intrinsic and always lower the generic one to that
(or whatever else was calculated) to avoid ambiguities and fix the value
for quad derivatives.

Fixes future CTS tests using mesh/task shaders under:
dEQP-VK.spirv_assembly.instruction.compute.compute_shader_derivatives.*

Fixes: d89bfb1ff7 ("intel/brw: Reorganize lowering of LocalID/Index to handle Mesh/Task")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit 5b48805b42)

Conflicts:
	src/compiler/nir/nir_divergence_analysis.c
	src/intel/compiler/brw/brw_compile_mesh.cpp
	src/intel/vulkan/anv_shader_compile.c

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-28 10:50:48 -08:00
Georg Lehmann
976bd36982 aco: disable DPP for rev integer subs and shifts
It is not documented anywhere, but at least on gfx12 and gfx10.3
DPP is applied to src1 instead of src0.
This might be useful for shifts, but to be safe just disable DPP
completely for now.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14739

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
(cherry picked from commit 140ca3bb50)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-28 08:32:34 -08:00
Georg Lehmann
725dda81c1 aco: add a helper function for non supported DPP opcodes
Cc: mesa-stable

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
(cherry picked from commit 8e99bf5380)

Conflicts:
	src/amd/compiler/aco_ir.cpp

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-28 08:32:32 -08:00
Ella Stanforth
99fc28bf9d pvr/csbgen: fix packing multiple addresses
Cc: mesa-stable
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com>
(cherry picked from commit 7be87ca82a)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-28 08:16:10 -08:00
Dylan Baker
c69c16f290 .pick_status.json: Update to 50a3699552
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-28 08:16:02 -08:00
Faith Ekstrand
c1e43a16c3 nir: panfrost tile loads are always divergent
Each lane refers to a different pixel.

Cc: mesa-stable
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
(cherry picked from commit 4189865347)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-27 12:34:03 -08:00
Nanley Chery
2a0904094c anv: Fix the fast clear type for FCV writes
We started allowing non-default clear colors with FCV in commit
cd8e120b97. When rendering to an image with FCV, set the fast-clear
type to ANV_FAST_CLEAR_ANY if the image properties allow such
fast-clears.

Fixes: cd8e120b97 ("anv: Allow more single subresource fast-clears with FCV")
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
(cherry picked from commit ce196c9de5)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-27 12:30:07 -08:00
Nanley Chery
68125e50a3 anv: Update predicated resolve documentation
* Don't mention gfx7-8 due to the hasvk split.
* Account for the array of clear colors.

Fixes: 0e6b132a75 ("anv: Access more colors in fast_clear_memory_range")
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
(cherry picked from commit e7854d06a5)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-27 12:30:07 -08:00
Nanley Chery
5bb79dd1f1 iris: Use the CLEAR state on Xe2+ for MCS
On Xe2+, HSD 14011946253 and the related documents explain that MCS
still only supports a single clear color.

Fixes: df006bba02 ("iris: Update aux state for color fast clears (xe2)")
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
(cherry picked from commit 6c6b2d8f30)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
2026-01-27 12:30:05 -08:00