mesa/src/panfrost
Lorenzo Rossi 0a4b7f69c1 pan/valhall: fuse_cmp skip when fusing the same instruction
CSE can cause some cases where we had

%3 = ICMP_OR %1, %2, 0
%4 = ICMP_OR %1, %2, 0
%5 = LSHIFT_AND %3, %4

To become

%3 = ICMP_OR %1, %2, 0
%5 = LSHIFT_AND %3, %3

The va_fuse_cmp pass would try to rewrite this as
%3 = ICMP_AND %1, %2, %3

But this is obviously wrong, we should not fuse the same instruction
together.

Fixes: 800a861431 ("pan/bi: Fuse FCMP/ICMP on Valhall")
Signed-off-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Found-by: Ryan Zhang <ryan.zhang@nxp.com>
Reviewed-by: Ryan Zhang <ryan.zhang@nxp.com>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41504>
2026-05-21 16:29:43 +00:00
..
ci Uprev Piglit to 6fd29fe44f8857b876a67bee962919635f22ecc8 2026-05-20 21:37:44 +00:00
clc pan/clc: Build for v14 2026-05-13 17:37:34 +00:00
compiler pan/valhall: fuse_cmp skip when fusing the same instruction 2026-05-21 16:29:43 +00:00
drm-shim panfrost: SPDX everything 2026-01-20 20:49:33 +00:00
ds panfrost: Add a few missing license blocks 2026-01-20 20:49:33 +00:00
genxml pan: Layer offset is not longer available starting on v14 2026-05-19 16:26:00 +00:00
lib pan/format: Advertise support for AFBC(32x8,sparse) 2026-05-21 11:50:16 +00:00
libpan pan/clc: Build for v14 2026-05-13 17:37:34 +00:00
model panfrost: Advertize Mali-G1-Pro support 2026-05-13 17:37:36 +00:00
perf panfrost: Add a few missing license blocks 2026-01-20 20:49:33 +00:00
shared panfrost: drop email from ancient copyright lines 2026-02-23 20:04:12 +00:00
tools pan: Add support for 64 bit gpu_id 2026-04-09 09:49:20 +00:00
vulkan panvk/csf: Allow 256 layers per tiler descriptor on v14+ 2026-05-20 12:15:12 +00:00
.clang-format pan: Add some missing ForEachMacros to .clang-format 2026-02-03 13:26:12 +00:00
meson.build pan: Add a central libpanfrost_compiler library 2025-12-02 21:00:30 +00:00