mesa/src
Lionel Landwerlin 2e4dcf72c6 brw: fix CSE with negation
The pass is currently turning this :

mul(16) %17:F, %1:F, 0.5f
mul(16) %19:F, %1:F, -0.5f
(+f0.0) sel(16) %27:UD, %19:UD, %17:UD

into this :

{ 12} mul(16) %17:F, %1:F, 0.5f
{ 14} (+f0.0) sel(16) %27:UD, -%17:F, %17:UD

The type change in the SEL instruction incurs a type conversion that
produces invalid values.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 234c45c929 ("intel/brw: Write a new global CSE pass that works on defs")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12477
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33070>
2025-01-23 12:45:34 +00:00
..
amd amd/ci: Run full radeonsi-raven-va job pre-merge 2025-01-23 11:33:25 +00:00
android_stub
asahi nir: remove dead code due to IO being always lowered in st/mesa 2025-01-22 02:15:04 +00:00
broadcom nir/from_ssa: only consider divergence if requested 2025-01-23 01:31:23 +00:00
c11 c11: use SPDX-License-Identifier header 2025-01-08 20:37:51 +00:00
compiler Revert "nir: add nir_clear_divergence_info, use it in nir_opt_varyings" 2025-01-23 01:31:24 +00:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl glapi: rename exported symbols so as not to conflict with old libglapi 2025-01-23 00:49:05 +00:00
etnaviv ci/etnaviv: drop failures caused by missing vertex attributes 2025-01-10 10:57:58 +00:00
freedreno ir3: add support for alias.rt 2025-01-23 06:26:24 +00:00
gallium virgl/ci: Remove screen size arguments 2025-01-23 10:14:48 +00:00
gbm egl,gallium,gbm,mesa: replace get_param with pipe_caps access 2025-01-17 04:39:46 +00:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
gfxstream gfxstream: fix some integration bugs 2025-01-17 17:26:45 +00:00
glx glapi: rename exported symbols so as not to conflict with old libglapi 2025-01-23 00:49:05 +00:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination pvr: use vk_descriptor_type_is_dynamic 2024-12-19 15:12:58 +00:00
imgui
intel brw: fix CSE with negation 2025-01-23 12:45:34 +00:00
loader loader: improve the existing loader-libgallium non-matching version error 2025-01-23 00:49:05 +00:00
mapi glapi: rename exported symbols so as not to conflict with old libglapi 2025-01-23 00:49:05 +00:00
mesa glapi: rename exported symbols so as not to conflict with old libglapi 2025-01-23 00:49:05 +00:00
microsoft ci: use CI_PROJECT_NAME for artifacts name 2025-01-23 07:18:09 +00:00
nouveau nir/from_ssa: only consider divergence if requested 2025-01-23 01:31:23 +00:00
panfrost panvk/ci: update expected failures 2025-01-23 12:09:51 +00:00
tool panvk: add u_trace perfetto support 2024-12-17 23:14:26 +00:00
util util,vulkan,asahi,hk: hash format strings 2025-01-17 18:09:45 +00:00
virtio virgl: Update virgl_hw.h from virglrenderer 2025-01-07 13:15:46 +00:00
vulkan vk/bvh: Add default stubs for unsupported entrypoints 2025-01-23 05:16:58 +00:00
x11 meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
.clang-format ir3: introduce alias goups 2025-01-23 06:26:23 +00:00
meson.build dri: put shared-glapi into libgallium.*.so 2025-01-23 00:49:05 +00:00