Samuel Pitoiset
db7d38ccef
radv: fix missing texel scale for unaligned linear SDMA copies
...
texel_scale was 0 which caused GPU hangs for unaligned linear copies.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13195
Fixes: 4b73d7e817 ("radv: fix SDMA copies for linear 96-bits formats")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35047 >
(cherry picked from commit c22d86e844 )
2025-05-20 20:18:08 +02:00
Tapani Pälli
9ff1596f67
anv: use internal rt-null-ahs when any_hit is null
...
Tested on BMG and PTL using both settings for RT_CTRL.
Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35044 >
(cherry picked from commit 5828612da2 )
2025-05-20 20:18:08 +02:00
Tapani Pälli
ad159bbd93
intel/compiler: provide a helper for null any-hit shader
...
Xe driver will be disabling the HW functionality for null any-hit
shaders, drivers need to take care of it instead. This commit brings
back parts of older workaround (see b0624e414f ) we used to have to
handle the null any-hit case.
Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35044 >
(cherry picked from commit 0f591425c9 )
2025-05-20 20:18:08 +02:00
Georg Lehmann
4fa2dbdf55
aco: assume sram ecc is enabled on Vega20
...
There are D16 load issues on Vega20 that are expected if sram ecc is enabled.
It's a professional class chip and I found mentions of it supporting ecc,
so assume it's enabled.
Maybe this could be improved by querying ecc info from the kernel, but
I'm not sure which query should be used.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13189
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12393
Cc: mesa-stable
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35045 >
(cherry picked from commit 0257644130 )
2025-05-20 20:18:08 +02:00
Matt Turner
4bd75f552c
gallivm: Use llvm.roundeven in lp_build_round()
...
`lp_build_round` intends to implement round with ties-to-even behavior,
as can be seen by its test's use of `nearbyint` to generate reference
values and by it use in implementing `nir_op_fround_even`.
Fixes: 0d3b285360 ("gallivm: use llvm intrinsics for 16-bit round/trunc/roundeven")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34937 >
(cherry picked from commit eea3ed6a37 )
2025-05-20 20:18:08 +02:00
Timothy Arceri
dda7d88800
mesa: fix _FP32Buffers bitfield use
...
Previously we were assuming that all color attachments were active.
Fixes: 070a5e5d92 ("mesa: add explicit enable for EXT_float_blend, and error condition")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35014 >
(cherry picked from commit c7c4905981 )
2025-05-20 20:18:08 +02:00
Timothy Arceri
66fc7554b3
mesa/st: fix _IsRGBDraw bitfield use
...
Previously we were assuming that all color attachments were active.
Fixes: 5b51d754d0 ("st/mesa: Optionally override RGB/RGBX dst alpha blend factors")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35014 >
(cherry picked from commit b7d8c195a2 )
2025-05-20 20:18:08 +02:00
Timothy Arceri
50b5881450
mesa/st: fix _BlendForceAlphaToOneDraw bitfield use
...
Previously we were assuming that all color attachments were active.
Fixes: 4f28e2827c ("mesa: fix blending when using luminance/intensity emulation")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35014 >
(cherry picked from commit c1d00c9a1a )
2025-05-20 20:18:08 +02:00
Timothy Arceri
bf62b98220
st/mesa: fix _IntegerBuffers bitfield use
...
Previously we were assuming that all color attachments were active.
Fixes: 8fb966688b ("st/mesa: Disable blending for integer formats.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13168
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35014 >
(cherry picked from commit d04d9da98c )
2025-05-20 20:18:08 +02:00
Lionel Landwerlin
0b141f56a3
anv: enable preemption setting on command/batch correctly
...
The 2 helpers we're using for doing internal operations (copies,
command generation, etc...) can work on command buffers or lower level
batches.
When working with command buffers, the helpers should set the
preemption using genX(cmd_buffer_set_preemption) so that whatever
operation comes after toggles the state back to what it needs and we
minimize the toggles.
When working with batchs, the helpers should disable preemption using
genX(batch_set_preemption) and turn it back on when done.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35030 >
(cherry picked from commit c570740272 )
2025-05-20 20:18:08 +02:00
Alessandro Astone
4e65cf4f40
android: Link with libc++fs up to SDK 35
...
Before SDK35 the c++ filesystem API was part of a standalone library
Reviewed-by: Mauro Rossi <issor.oruam@gmail.com >
Backport-to: 25.1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34797 >
(cherry picked from commit 84cae30f0a )
2025-05-20 20:18:08 +02:00
llyyr
b0b1820098
vulkan/wsi/wayland: make needs_color_surface_old check if surface exists
...
Otherwise we end up removing refcount even when we don't have a color
surface already for applications going from SRGB_NONLINEAR to
PASS_THROUGH dring runtime.
To reproduce the bug, start mpv with "--target-colorspace-hint=yes" then
set it to "no" during runtime with a keybind
Fixes: 789507c99c ("vulkan/wsi: implement the Wayland color management protocol")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34708 >
(cherry picked from commit 033ce1bae1 )
2025-05-20 20:18:08 +02:00
Ella Stanforth
7e425861cf
v3d/compiler: Fix ub when using memcmp for texture comparisons.
...
We need to zero out all memory in the struct otherwise memcmp ends up comparing
padding bytes.
Cc: mesa-stable
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34945 >
(cherry picked from commit be3ce07f58 )
2025-05-20 20:18:08 +02:00
Olivia Lee
1aa0aad8ff
util/u_printf: fix memory leak in u_printf_singleton_add_serialized
...
info->arg_sizes and info->strings were leaked because they were
allocated in the global context.
Fixes: 007f60c8b8 ("util/u_printf: add singleton implementation")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34987 >
(cherry picked from commit 22fb7eaa8c )
2025-05-20 20:18:08 +02:00
David Rosca
6ff9f42c32
radeonsi/vce: Fix output quality and performance in speed preset
...
Fixes: 544a180320 ("radeonsi/vce: Support quality presets")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894 >
(cherry picked from commit bade93c447 )
2025-05-20 20:18:08 +02:00
David Rosca
66c3193e4a
radeonsi/vce: Only send one task per IB
...
There is no need to use second task for config when creating the
session, also it doesn't work now as we don't set the next task
offset in task info anymore.
Fixes: 9ca1cda2be ("radeonsi/vce: Cleanup")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894 >
(cherry picked from commit ad96031ec6 )
2025-05-20 20:18:08 +02:00
David Rosca
984786396d
radeonsi/vce: Fix bitstream buffer size
...
On old VCE this was being rejected by kernel because the size here
was the buffer size, but the bitstream buffer address includes the
offset.
Fixes: 901aafb030 ("radeonsi/vce: Support raw packed headers")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13128
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894 >
(cherry picked from commit fd1480c3df )
2025-05-20 20:18:08 +02:00
Mel Henning
7fc8c5e10f
nouveau/headers: Ignore PermissionError in rustfmt
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13172
Fixes: 591b5da4 ("nouveau/headers: Run rustfmt on generated files")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35008 >
(cherry picked from commit bfe8340296 )
2025-05-20 20:18:07 +02:00
Mel Henning
5d6a3c5862
nouveau/headers: Run rustfmt after file is closed
...
If we run a subprocess while the file is still open, we may not have
flushed the file contents to disk.
Fixes: 591b5da4 ("nouveau/headers: Run rustfmt on generated files")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35008 >
(cherry picked from commit da22094593 )
2025-05-20 20:18:07 +02:00
Rob Clark
9a36291900
freedreno: Fix shader-clock when kernel exposes UCHE_TRAP_BASE
...
Fixes: 4b1b4ee10c ("freedreno,tu: Read and pass to compiler uche_trap_base)
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35010 >
(cherry picked from commit 65e18a8494 )
2025-05-20 20:18:07 +02:00
José Roberto de Souza
12ddaa6b8b
anv: Enable preemption due 3DPRIMITIVE in GFX 12
...
The issues preventing it to be enabled were fixed so now we can enable
it but we need also to enable workaround 16013994831 back again.
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34988 >
(cherry picked from commit 3cd972a2d3 )
2025-05-20 20:18:07 +02:00
José Roberto de Souza
5064fad403
anv: Implement missing part of Wa_1604061319
...
Description of this workaround are not clear but looking at Iris
implementation we need to emit all 3DSTATE_PUSH_CONSTANT_ALLOC_XS if
any 3DSTATE_PUSH_CONSTANT_ALLOC_XS is emitted.
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34988 >
(cherry picked from commit 2432d6677e )
2025-05-20 20:18:07 +02:00
Rob Clark
ef95ed1e2e
freedreno/ir3: Fix tess/geom asan error
...
Fixes: ee0ee2a317 ("ir3: don't sync every TCS/GEOM block")
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34989 >
(cherry picked from commit d8ed4f14e6 )
2025-05-20 20:18:07 +02:00
Mary Guillemard
dd47ebcc19
pan/bi: Lower ffract in bifrost_nir_algebraic on v11+
...
On v11+, because FROUND.v2f16 is gone we end up with precision issues.
We now lower ffract in bifrost_nir_algebraic instead of during common
algebraic to ensure lower_bit_size has been performed.
This fixes
"dEQP-GLES3.functional.shaders.builtin_functions.common.fract.vec2_lowp_vertex"
and
"dEQP-GLES31.functional.shaders.builtin_functions.common.fract.vec2_lowp_compute".
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Backport-to: 25.1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34970 >
(cherry picked from commit 60b131a712 )
2025-05-20 20:18:07 +02:00
Mary Guillemard
360d2958af
pan/bi: Flush subnormals to zero for FROUND on v11+
...
FROUND on v11+ does not flush subnormals to zero even when configured in
the shader program header.
We now use FLUSH.ftz on the input of FROUND to ensure proper
behavior when rounding up and down with FTZ enabled.
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Backport-to: 25.1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34970 >
(cherry picked from commit 5588ff49a7 )
2025-05-20 20:18:07 +02:00
Hans-Kristian Arntzen
912437c1a3
radv: Consider that DGC might need shader reads of predicated data.
...
Similar to indirect draw barrier, need similar fixups for conditional
rendering access.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no >
Cc: mesa-stable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34956 >
(cherry picked from commit e674823d55 )
2025-05-20 20:18:07 +02:00
Samuel Pitoiset
91898fbe37
radv: fix conditional rendering with DGC and non native 32-bit predicate
...
When the hardware doesn't natively support 32-bit predication, the
driver has a fallback which allocates a 64-bit predicate to the upload
BO in order to copy the original value.
But when conditional rendering is enabled in the stateCommandBuffer
which is used by preprocess() and the execute() is recorded also in the
stateCommandBuffer. If the preprocess() is recorded in a different
cmdbuf which is submitted before the cmdbuf that contains execute(),
the fallback (ie. alloc + COPY_DATA) will be performed after. This would
cause the predicate value to be always 0.
To fix that, keep track of the user predication VA which is the only
VA that needs to be used by DGC because it reads 32-bit from the shader.
This fixes a very weird corner case with vkd3d-proton.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13143
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34953 >
(cherry picked from commit 3ca2f71f3d )
2025-05-20 20:18:07 +02:00
Samuel Pitoiset
0e15ea9546
radv: fix fetching conditional rendering state for DGC preprocess
...
This state must be fetched from the stateCommandBuffer, not from the
current cmdbuf which executes the preprocess().
Partial fix for https://gitlab.freedesktop.org/mesa/mesa/-/issues/13143
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34953 >
(cherry picked from commit e2625fa9ca )
2025-05-20 20:18:07 +02:00
Dave Airlie
05f249ca93
nvk: Fix compute class comparison in dispatch indirect
...
This works by coincidence rather than design.
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34910 >
(cherry picked from commit bd7777aee6 )
2025-05-20 20:18:07 +02:00
Olivia Lee
c966a7abe4
panvk: fix driconf memory leak
...
The driconf options were leaked when the panvk instance was destroyed.
Fixes: aa8fec638f ("panvk: add basic driconf infrastructure")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34986 >
(cherry picked from commit c053bc2213 )
2025-05-20 20:18:07 +02:00
Rhys Perry
799685659d
aco/gfx115: consider point sample acceleration
...
Like 15428e0d786939a5c7629a9978947c8a9112ce96 in LLVM.
fossil-db (gfx1150):
Totals from 909 (1.14% of 79653) affected shaders:
Instrs: 5840489 -> 5840705 (+0.00%); split: -0.00%, +0.00%
CodeSize: 31133460 -> 31134296 (+0.00%); split: -0.00%, +0.00%
Latency: 52982280 -> 53438577 (+0.86%); split: -0.00%, +0.86%
InvThroughput: 10841454 -> 10942682 (+0.93%); split: -0.00%, +0.93%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Backport-to: 25.0
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34935 >
(cherry picked from commit 171920ceed )
2025-05-20 20:18:07 +02:00
Georg Lehmann
d0131a4041
radeonsi: always lower alu bit sizes
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13072
load_vs_input_from_vertex_buffer can create unsupported 16bit shifts on GFX6/7.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Qiang Yu <yuq825@gmail.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34946 >
(cherry picked from commit 33b5d8b2ec )
2025-05-20 20:18:06 +02:00
Timothy Arceri
39301bd70d
mesa: relax EXT_texture_integer validation
...
This updates mesa to avoid throwing an error if an attached fbo
wont actually be drawn into.
Fixes: 705978e283 ("mesa: do integer FB / shader validation check in _mesa_valid_to_render()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13144
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34949 >
(cherry picked from commit 1d4ebe79b5 )
2025-05-20 20:18:06 +02:00
Thomas H.P. Andersen
d1610cb046
driconf: update X4 Foundations executable name
...
'X4.exe' is the executable. But there is also a script 'X4' that is used to
launch the game. This script is what steam uses.
This updates driconf to match that.
This also brings the executable in line with other configs for the game.
Fixes: 5532f13566 ("driconf: override vendor id for X4 Foundations on NVK")
Fixes: 8654a7727f ("driconf: set vk_zero_vram driconf for X4 Foundations")
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34168 >
(cherry picked from commit a87c9bc49e )
2025-05-20 20:18:06 +02:00
Samuel Pitoiset
e81572403c
radv: remove the optimization for equal immutable samplers
...
This optimization used to optimize the allocated space for descriptors
when immutable samplers are equal. Though, this was basically broken :
- descriptor copies were broken for combiner image sampler (or sampler)
with equal immutable samplers because 96 bytes were copied instead of
64 bytes (cf. the linked ticket). This could be fixed but it's not
worth it.
- the value returned by vkGetDescriptorLayoutSupport() was broken, it
should have been 96 with no immutable samplers (or when they aren't
equal)
This optimization was also not applied for descriptor buffers which is
the default for vkd3d-proton and Zink. DXVK doesn't use db but it
doesn't use immutable samplers, so basically only native vulkan games
would be concerned.
Note that immutable samplers would still be inlined in shaders if no
indirect access which should be 99.9% of the usecase.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11165
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34928 >
(cherry picked from commit 69ff204422 )
2025-05-20 20:18:06 +02:00
Samuel Pitoiset
1512a1cdd7
radv: fix emitting dynamic viewports/scissors when the count is static
...
In a scenario where the viewports/scissors are a dynamic state but the
count is static (ie. updated when a graphics pipeline is bound), the
driver wasn't considering that and it was re-emitting the previous
number of viewports/scissors.
This fixes rendering issue with Blender.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13127
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34921 >
(cherry picked from commit 9a07ccbc89 )
2025-05-20 20:18:06 +02:00
David Rosca
22826ec621
radv/video: Use ac_uvd_alloc_stream_handle
...
ac_uvd_alloc_stream_handle tries to avoid collisions in the case
when PID is not unique (eg. in sandboxes like Flatpak).
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12607
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34807 >
(cherry picked from commit 5fee04bcae )
2025-05-20 20:18:06 +02:00
David Rosca
4cfaede767
ac/uvd: Add ac_uvd_alloc_stream_handle
...
Cc: mesa-stable
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34807 >
(cherry picked from commit 69455e8208 )
2025-05-20 20:18:06 +02:00
Natalie Vock
11385075a2
driconf: Add workarounds for DOOM: The Dark Ages
...
Like other idTech games, it needs radv_zero_vram and
radv_disable_dedicated_sparse_queue. It also needs
radv_force_64k_sparse_alignment.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34944 >
(cherry picked from commit 4339cf0aff )
2025-05-20 20:18:06 +02:00
Natalie Vock
42519ff23a
radv,driconf: Add radv_force_64k_sparse_alignment config
...
Needed by DOOM: The Dark Ages.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34944 >
(cherry picked from commit e32a90b57c )
2025-05-20 20:18:06 +02:00
Tapani Pälli
9ec2dae6d3
mesa: add missing stencil formats to _mesa_is_stencil_format
...
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13070
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34931 >
(cherry picked from commit 720dae85f2 )
2025-05-20 20:18:06 +02:00
Samuel Pitoiset
6a1a256578
radv: fix SDMA copies for linear 96-bits formats
...
The hardware requires a power of two bpe. To do that, the driver
needs to adjust the pitch/offset/extent based on a texel scale factor
which only applies to 96-bits formats.
This fixes new VKCTS coverage.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34927 >
(cherry picked from commit 4b73d7e817 )
2025-05-20 20:18:06 +02:00
Marek Olšák
62c3ed9d35
nir: fix gathering color interp modes in nir_lower_color_inputs
...
Fixes: 709ebd82 ("amd: expose nir_io_mix_convergent_flat_with_interpolated")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12800
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34942 >
(cherry picked from commit a1ee6d6730 )
2025-05-20 20:18:06 +02:00
Mike Blumenkrantz
dbb360f5d1
zink: fix broken comparison for dummy pipe surface sizing
...
this should create a new surface if the existing one is too small,
not if it is too big
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34933 >
(cherry picked from commit ef63e3e4d2 )
2025-05-20 20:18:06 +02:00
Matthieu Oechslin
ae1d465543
r600: Take dual source blending in account when creating target mask with RATs
...
This is properly checked when filling CB_... registers in
evergreen_emit_image_state(), but not when generating CB_TARGET_MASK.
It would lead to an invalid command steam if a fragment shader
uses SSBO/Image load/store alongside dual source blending.
Acked-by: Patrick Lerda <patrick9876@free.fr >
Fixes: a6b3792843
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/622
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34333 >
(cherry picked from commit 4e68e422e0 )
2025-05-20 20:18:05 +02:00
Rhys Perry
55241615c6
ac/llvm: correctly set alignment of vector global load/store
...
For coherent/volatile access, this would be too high for vector access.
Even when we didn't set the alignment, LLVM seemed to assume too high of
an alignment for 8/16-bit vector access.
Fixes generated_tests/cl/vload/vload-char-constant.cl
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Michel Dänzer <mdaenzer@redhat.com >
Backport-to: 25.0
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34903 >
(cherry picked from commit d0a09b6ff7 )
2025-05-20 20:18:05 +02:00
Rhys Perry
98f96feda8
ac/llvm: correctly split vector 8/16-bit stores
...
This assumes that the start of the load is 32-bit aligned.
For example, a vec3 16-bit store with align_offset=2 should split off the
first component, not the last.
This probably also fixed splitting with 8-bit stores.
Fixes arb_copy_buffer-overlap
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Michel Dänzer <mdaenzer@redhat.com >
Backport-to: 25.0
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34903 >
(cherry picked from commit c1ecad2b11 )
2025-05-20 20:18:05 +02:00
Lars-Ivar Hesselberg Simonsen
e11a494e27
panvk/v9+: Set up limited texture descs for storage use
...
Storage access to images using LEA_TEX[_IMM] has limitations on some
fields in the texture descriptors, making them incompatible with the
descriptors required for texture access, specifically in the case
non-zero levels.
This change sets up two sets of texture descriptors for image views of
storage images, then picks the correct one when writing the image view
descriptors.
Backport-to: 25.0
Backport-to: 25.1
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Tested-by: Heiko Stuebner <heiko@sntech.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34839 >
(cherry picked from commit 7451bc3bef )
2025-05-20 20:18:05 +02:00
Lars-Ivar Hesselberg Simonsen
e74e8b1828
pan/texture/v10+: Set width/height in the plane descs
...
We're currently not setting the v10+ width/height in the plane
descriptors. This change ensures we do.
Backport-to: 25.0
Backport-to: 25.1
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34839 >
(cherry picked from commit e2aa0b7566 )
2025-05-20 20:18:05 +02:00
Lars-Ivar Hesselberg Simonsen
b79911101e
pan/genxml/v13: Add minus1 mod for plane width/height
...
The width/height fields in the plane descriptors for v13 are missing
their minus(1) modifiers.
This change adds the missing modifiers, which implies also setting
default values to 1 due to how the Two-Plane YUV Overlay interacts with
the plane descriptors.
Fixes: ece01443e1 ("pan/genxml: Add v13 definition")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34839 >
(cherry picked from commit 009e4c2eba )
2025-05-20 20:18:05 +02:00