Lars-Ivar Hesselberg Simonsen
a3c4eec46d
panvk: Skip barrier QFOT if src_qfi equals dst_qfi
...
Do not perform a queue family ownership transfer during memory barriers
if srcQueueFamilyIndex equals dstQueueFamilyIndex, as the Vulkan spec
mandates that this should only happen if the two values are unequal.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org >
Fixes: 715d6e740a
("panvk: improve VK_QUEUE_FAMILY_EXTERNAL support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35458 >
(cherry picked from commit 5d0465a253
)
2025-06-18 17:55:46 +02:00
Mike Blumenkrantz
f2547ac6e3
util/box: make u_box_test_intersection_2d() consistent with other funcs
...
cc: mesa-stable
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21738 >
(cherry picked from commit 2b39cd0722
)
2025-06-18 17:55:46 +02:00
Mel Henning
b845100f44
zink: Return NULL on vkCreateInstance failure
...
Previously we were returning uninitialized data on the error path.
Fixes: 015eda4a41
("zink: deduplicate VkDevice and VkInstance")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35471 >
(cherry picked from commit d764e1c062
)
2025-06-18 17:55:45 +02:00
Juan A. Suarez Romero
10efad67d4
vc4: free RA interference graph on failure
...
This fixes a leak in the driver.
Backport-to: 25.1
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35464 >
(cherry picked from commit d983280da9
)
2025-06-18 17:55:45 +02:00
Pierre-Eric Pelloux-Prayer
e5e959b0fd
ac/llvm: rework component trimming in visit_tex
...
The referenced commit was a step in the right direction, but not
complete.
ac_build_image_opcode returns a vec<4> or a struct<vec<4>, int>
so we can simplify visit_tex. We just need to map these 4/5 values
to the expected layout from NIR.
eg: depth + TFE would produces "<d, x, x, x>, t" so it has to be
transformed into <d, t>.
nir_texop_fragment_mask_fetch_amd + sparse doesn't exist, so it's
another opportunity for simplification.
This is required to get KHR-GL46.sparse_texture2_tests.SparseTexture2Lookup_texture_2d_depth_component16
working properly.
The same test fails with ACO so it probably needs a change in the
same area.
Fixes: c0ef2aa7f8
("DEPENDENCY: ac/llvm: fix sparse code handling")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35206 >
(cherry picked from commit 4a84ebfcb1
)
2025-06-18 17:55:45 +02:00
Emma Anholt
49d98e15ba
u_trace: Fix payload refcounting in u_trace_clone_append().
...
If the clone_append was to a chunk of the same u_trace that gets
process_chunk()ed after where we're cloning from, then the payloads would
have been unreffed in the previous chunk's cleanup_chunk().
Fixes use-after-frees with turnip gmem rendering that resulted in
corrupted payloads.
Fixes: 14e45cb21e
("util/u_trace: refcount payloads")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35379 >
(cherry picked from commit 6e97df1d76
)
2025-06-18 17:55:45 +02:00
Rhys Perry
333cb92f69
ac/nir: run nir_lower_vars_to_ssa after nir_lower_task_shader
...
nir_lower_task_shader does nir_lower_returns, so we need this if the
launch_mesh_workgroups was in control flow.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13326
Backport-to: 25.1
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35411 >
(cherry picked from commit bc2edf14d8
)
2025-06-18 17:55:45 +02:00
Samuel Pitoiset
18aaac6153
radv/meta: fix using the wrong pipeline layout for ASTC decoding
...
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35359 >
(cherry picked from commit f3578973d7
)
2025-06-18 17:55:45 +02:00
Mike Blumenkrantz
c02f060dc3
zink: emulated alpha formats do not require mutable
...
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35433 >
(cherry picked from commit 0d3dc92863
)
2025-06-18 17:55:45 +02:00
Erik Faye-Lund
83b014996e
Revert "mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT"
...
This reverts commit 74bec42b45
.
This is not conformant behavior, and if we *really* want to do this, it
should be guarded behind a DRIconf or something instead.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35099 >
(cherry picked from commit 02457ee29e
)
2025-06-18 17:55:45 +02:00
Patrick Lerda
3cc02c9387
r600: index_bias should be forced to zero for all indirect draw calls
...
The previous fix 0cae8d372e
is the right way to proceed, but it
should also apply when index_size is non-zero.
This change was tested on palm and cayman. Here is the test fixed:
spec/arb_multi_draw_indirect/arb_draw_elements_base_vertex-multidrawelements -indirect: fail pass
Fixes: 0cae8d372e
("r600: don't set an index_bias for indirect draw calls")
Signed-off-by: Patrick Lerda <patrick9876@free.fr >
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34726 >
(cherry picked from commit a640b7233c
)
2025-06-18 17:55:45 +02:00
Karol Herbst
3542819e98
clc: fix DiagnosticOptions related build failure with llvm-21
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13257
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35399 >
(cherry picked from commit a482ec7f05
)
2025-06-18 17:55:45 +02:00
Karol Herbst
bfd76f4d73
clc: use new createTargetMachine overload with llvm-21
...
The old one is deprecated, so let's move and silence the warning.
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35399 >
(cherry picked from commit 392ad203eb
)
2025-06-18 17:55:45 +02:00
Georg Lehmann
fc89f9e60d
aco: do not use v_cvt_pk_u8_f32 for f2u8
...
The ISA docs don't mention this, but instead of always truncating
like other integer conversions, this opcode actually uses the single
precision rounding mode.
We could continue to use the opcode and set the rounding mode to rtz
in lower_to_hw_instrs, but I think I should just concede that f2u8
isn't worth the effort.
Fixes: 9bb10b58
("aco: use v_cvt_pk_u8_f32 for f2u8")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35391 >
(cherry picked from commit d95e90ab5f
)
2025-06-18 17:55:45 +02:00
Rhys Perry
b03ee0a308
aco/gfx12: fix VALUReadSGPRHazard with carry-out
...
fossil-db (gfx1201):
Totals from 370 (0.46% of 79653) affected shaders:
Instrs: 3933639 -> 3935914 (+0.06%)
CodeSize: 20743448 -> 20752068 (+0.04%); split: -0.00%, +0.04%
Latency: 26261246 -> 26261921 (+0.00%); split: -0.00%, +0.00%
InvThroughput: 5363675 -> 5363760 (+0.00%); split: -0.00%, +0.00%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Fixes: 65f95ae74e
("aco/insert_NOPs: implement VALU -> VALU case for VALUReadSGPRHazard on GFX12")
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35387 >
(cherry picked from commit a714a19e16
)
2025-06-18 17:55:45 +02:00
Natalie Vock
85af264acc
radv/rt: Avoid encoding infinities in box node coords
...
On Navi33, certain box sorting modes combined with infinity/-infinity in
the child AABBs cause image_bvh64_intersect_ray to return garbage node
pointers.
To avoid this, convert infinity to the maximum representable
floating-point value, which will still intersect with any non-inf ray.
Fixes consistent hangs in DOOM: The Dark Ages.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35254 >
(cherry picked from commit 6628ac8ad9
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35412 >
2025-06-18 17:55:44 +02:00
Yiwei Zhang
341139a917
venus: force sw wsi path on nv proprietary
...
We have to force it here, otherwise, if we'd like to preserve the
modifier path, it'd be too late when it falls back to prime blit with
unsupported compositors/envs.
(cherry picked from commit d4cedcd362
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35419 >
2025-06-18 17:55:44 +02:00
Erik Faye-Lund
4310da5e50
panfrost: plug leak of modifier conversion shaders
...
We were allocating these, but never freeing the actual CSOs here.
Let's wire things up so we delete the data when we destroy the
hash-table. Because we don't have access to the context in that
callback, we can't call the pipe-level function to delete a CSO,
but luckily we don't actually need the context for the
driver-logic. So let's add an internal helper for that.
Fixes: ae3fb3089f
("panfrost: Add infrastructure for internal AFBC compute shaders")
Fixes: f39194cdd3
("panfrost: support MTK 16L32S detiling")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35336 >
(cherry picked from commit fb0a422be2
)
2025-06-18 17:55:44 +02:00
Erik Faye-Lund
48c977115c
panfrost: do not double-insert shader into hash-table
...
We were inserting twice here, once without holding the lock before
compiling the shaders, and once after while holding it. Let's remove
the insert without the lock.
Fixes: ae3fb3089f
("panfrost: Add infrastructure for internal AFBC compute shaders")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35336 >
(cherry picked from commit cc66651fc1
)
2025-06-18 17:55:44 +02:00
Ashley Smith
6d69a8eb9a
panfrost: Fix shader_clock support for v6+
...
This code sets PANFROST_JD_REQ_CYCLE_COUNT when using LD_GCLK to enable
shader_clock
Fixes: c1ce2dcc
("pan/bi: Enable ARB_shader_clock extension support")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Signed-off-by: Ashley Smith <ashley.smith@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35363 >
(cherry picked from commit 95c508d950
)
2025-06-18 17:55:44 +02:00
Boris Brezillon
9297d6e9a6
pan/afrc: Reject AFRC(compressed)
...
This is not a valid combination.
Fixes: 2dae926850
("panfrost: add utils for AFRC fixed-rate support")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Tested-by: Eric R. Smith <eric.smith@collabora.com >
Reviewed-by: Eric R. Smith <eric.smith@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35015 >
(cherry picked from commit b65b621062
)
2025-06-18 17:55:44 +02:00
Boris Brezillon
433a8626db
pan/afrc: Let's not pretend we support AFRC(YUV)
...
Not only the is_yuv() check in pan_afrc_get_format_info() didn't work,
because we use the multiplanar-RGB variants in panfrost, but we also
need the plane index to pick the right format.
Let's just assume AFRC(YUV) is not supported until someone decides to
add the necessary bits.
Fixes: 2dae926850
("panfrost: add utils for AFRC fixed-rate support")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Tested-by: Eric R. Smith <eric.smith@collabora.com >
Reviewed-by: Eric R. Smith <eric.smith@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35015 >
(cherry picked from commit bba62e047e
)
2025-06-18 17:55:44 +02:00
Boris Brezillon
8f2192f460
pan/afrc: Fix pan_format_supports_afrc()
...
pan_format_supports_afrc() returns true for formats that are then
rejected by pan_afrc_get_format_info(). Let's reconcile the two
helpers by using pan_afrc_get_format_info() to check for AFRC support.
Fixes: 894657a5ed
("panfrost: add support for AFRC modifiers")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Tested-by: Eric R. Smith <eric.smith@collabora.com >
Reviewed-by: Eric R. Smith <eric.smith@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35015 >
(cherry picked from commit fc92caf216
)
2025-06-18 17:55:44 +02:00
Georg Lehmann
afbda6b431
radv: don't accidentally expose samplerFilterMinmax through Vulkan 1.2
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35339 >
(cherry picked from commit 297fdc6636
)
2025-06-18 17:55:44 +02:00
Jose Maria Casanova Crespo
d17f1adcb3
v3d: Force job submit if the number of attached BOs is over 2048
...
At draw time, if the number of BOs is bigger than 2048, the current
job submission is forced.
The 2048 limit has been validated to be big enough to not be reached
in most of the scenarios. Only a couple of CTS tests get over this
threshold.
So the new V3D_JOB_MAX_BO_HANDLE_COUNT is defines as 2048 and
V3D_JOB_MAX_BO_REFERENCED_SIZE is defined as 768MB.
This forced submission is useful to handle scenarios where the client
application is not calling glFlush() or where SwapBuffers() is a NOP
because of not having a window surface. In this case, the CLE can
grow indefinitely until the system runs out of memory resources.
This approach is followed by different drivers forcing the flush
of CL when it reaches a defined size because of HW limitations.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12227
Cc: mesa-stable
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Reviewed-by: Maíra Canal <mcanal@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35042 >
(cherry picked from commit ed16884bfa
)
2025-06-18 17:55:44 +02:00
Jose Maria Casanova Crespo
662f89fb9b
v3d: Only apply TLB load invalidation on first job after FB state update
...
Mark when at least one job for the current active FBO has already been
submitted since the last framebuffer state update.
With this we can apply TLB load invalidation only to the first
job that is submitted to the same FBO. Not applying TLB
loads invalidation on follow-up jobs targeting the same framebuffer
state.
With this we avoid doing incorrect invalidations when we force
a job submission for a reason not related with a new framebuffer bind.
Cc: mesa-stable
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35042 >
(cherry picked from commit 6ff509593c
)
2025-06-18 17:55:44 +02:00
Rhys Perry
aad33936b6
aco: set vmem_types for args_pending_vmem
...
fossil-db (gfx1201):
Totals from 0 (0.00% of 79653) affected shaders:
fossil-db (navi31):
Totals from 11 (0.01% of 79653) affected shaders:
Instrs: 4543 -> 4554 (+0.24%)
CodeSize: 23256 -> 23300 (+0.19%)
fossil-db (navi21):
Totals from 8 (0.01% of 79653) affected shaders:
Instrs: 2333 -> 2341 (+0.34%)
CodeSize: 12328 -> 12360 (+0.26%)
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/34978 >
(cherry picked from commit 62a9b4b976
)
2025-06-18 17:55:44 +02:00
Alyssa Rosenzweig
b2b0f17d80
hk: fix texture state count
...
default is 256 which is not what we want! perf issue maybe.
Backport-to: 25.1
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35189 >
(cherry picked from commit 3c5c3d7819
)
2025-06-18 17:55:44 +02:00
Alyssa Rosenzweig
b6313f2f42
agx: fix sample_mask packing overflow
...
identified with new disassembler. truncated immediate masks to 63
Backport-to: 25.1
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35189 >
(cherry picked from commit c16bb0365a
)
2025-06-18 17:55:43 +02:00
David Rosca
2f067ac630
radeonsi/vcn: Fix encoding multiple tiles with recent VCN4 firmwares
...
Cc: mesa-stable
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35369 >
(cherry picked from commit c72987350b
)
2025-06-18 17:55:43 +02:00
Lionel Landwerlin
c68292dea9
anv: fix pool allocation failure reporting
...
When resetting the pool, also reset the allocated size so that failure
to allocation correctly reports VK_ERROR_OUT_OF_POOL_MEMORY instead of
VK_ERROR_FRAGMENTED_POOL.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12690
Tested-by: David Gow <david@ingeniumdigital.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35360 >
(cherry picked from commit 426ddb4fc9
)
2025-06-18 17:55:43 +02:00
Calder Young
9ebeef8ef3
anv: Support render to aspect other than IMAGE_ASPECT_COLOR_BIT
...
On ANV the vkCmdBeginRendering function was hard coded to use
VK_IMAGE_ASPECT_COLOR_BIT for all color attachments, instead of using
the aspect bit specified when the vkImageView was initialized, which
made it impossible for applications to render to views of multi-planar
formats like VK_FORMAT_G8_B8R8_2PLANE_420_UNORM correctly.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13221
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35340 >
(cherry picked from commit 57c5419bbd
)
2025-06-18 17:55:43 +02:00
Mike Blumenkrantz
f9cf332fa7
zink: update renderdoc layer string for android
...
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35350 >
(cherry picked from commit 1ad37360de
)
2025-06-18 17:55:43 +02:00
Mike Blumenkrantz
8fa2cd2fee
nir/lower_to_scalar: fix opt_varying with output reads
...
no_varying cannot be used to eliminate stores on locations which may
be subsequently read
Fixes: 0058989357
("nir/lower_io_to_scalar: don't create output stores that have no effect")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35325 >
(cherry picked from commit 208450fc57
)
2025-06-18 17:55:43 +02:00
Eric Engestrom
aa060b69cb
.pick_status.json: Mark dca392b119
as denominated
2025-06-18 17:55:43 +02:00
Dave Airlie
d23eb781f3
Revert "hasvk/elk: stop turning load_push_constants into load_uniform"
...
This reverts commit b036d2ded2
.
This seems to break gtk4 and other stuff.
Cc: mesa-stable
(taking ack from Lionel saying we should revert)
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35407 >
(cherry picked from commit 870b8717b2
)
2025-06-18 17:55:43 +02:00
Eric Engestrom
e8357d486d
.pick_status.json: Update to 034ac06c64
2025-06-18 17:55:39 +02:00
Eric Engestrom
c9d5ec71fe
docs: add sha sum for 25.1.3
2025-06-07 16:01:08 +02:00
Eric Engestrom
ba95e694fe
VERSION: bump for 25.1.3
mesa-25.1.3
2025-06-07 15:47:15 +02:00
Eric Engestrom
61c5f9319d
docs: add release notes for 25.1.3
2025-06-07 15:47:14 +02:00
Samuel Pitoiset
e3637cdb69
radv,radeonsi: fix emitting UPDATE_DB_SUMMARIZER_TIMEOUT on GFX12
...
Not all PFP firmwares for GFX12 have this packet.
Fixes: 47f5d25f93
("radv,radeonsi: emit UPDATE_DB_SUMMARIZER_TIMEOUT on GFX12")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13312
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35370 >
(cherry picked from commit babeb975c4
)
2025-06-07 15:44:17 +02:00
Eric Engestrom
a3c110e9d6
.pick_status.json: Update to 16dbcd9b04
2025-06-07 15:44:14 +02:00
Eric Engestrom
98320e5ca2
docs: add sha sum for 25.1.2
2025-06-04 20:12:14 +02:00
Eric Engestrom
02d708024f
VERSION: bump for 25.1.2
mesa-25.1.2
2025-06-04 17:10:29 +02:00
Eric Engestrom
504560fe3c
docs: add release notes for 25.1.2
2025-06-04 17:10:29 +02:00
Iago Toral Quiroga
39603d3b9d
broadcom/compiler: handle moving last ubo load in the block correctly
...
Before we move a UBO load to a previous location in the block we take a
reference to the instruction after it so we can continue the loop from
there, however, if the load we just moved was already the last instruction
in the block we just want to break the loop right there.
Fixes crashes with shaders from http://flightradar24.com
Fixes: 8998666de7
("broadcom/compiler: sort constant UBO loads by index and offset")
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35333 >
(cherry picked from commit c059c721fb
)
2025-06-04 15:52:50 +02:00
Georg Lehmann
260b5112f4
nir/opt_if: limit rewrite_uniform_uses iand recursion
...
https://github.com/doitsujin/dxvk/issues/4970 has a shader
where unrolled loops caused large iand chains and if we don't
limit this we won't finish compiling in reasonable time.
Cc: mesa-stable
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35312 >
(cherry picked from commit 1c4070f3e9
)
2025-06-04 15:52:50 +02:00
Georg Lehmann
f29d2c921a
nir/opt_if: don't replace constant uses with other uniform values
...
If constant folding wasn't run, this could replace constant uses with different
constants.
Additional, it could also create worse code for "if (subgroupXor(1) == 1)".
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13281
Cc: mesa-stable
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35312 >
(cherry picked from commit eaeaf9554d
)
2025-06-04 15:52:50 +02:00
Lionel Landwerlin
994dd51b3b
brw: fix brw_nir_fs_needs_null_rt helper
...
In 9b42215e0d
("iris: ensure null render target for specific cases") I
wrongly assumed that writing gl_SampleMask would only happen in
multisampled cases.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 9b42215e0d
("iris: ensure null render target for specific cases")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13292
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35313 >
(cherry picked from commit 79498a0849
)
2025-06-04 15:52:50 +02:00
Samuel Pitoiset
c706d8e03c
radv: set radv_zero_vram=true for GPUScore: Breaking limit
...
To workaroung application bugs that can cause GPU hangs.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11495
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35308 >
(cherry picked from commit c26c9c6296
)
2025-06-04 15:52:50 +02:00