mesa/src
Karol Herbst ab71151624 nir/lower_int64: fix shift lowering
Starting with !19748 lowered 64 bit shifts were showing wrong results for
shifts with insignificant bits set.

nir shifts are defined to only look at the least significant bits. The
lowering has take this into account.

So there are two things going on:
1. the `ieq` and `uge` further down depend on `y` being masked.
2. the calculation of `reverse_count` actually depends on a masked `y` as
   well, due to the `(iabs (iadd y -32))` giving a different result for
   shifts > 31;

Fixes: 41f3e9e5f5 ("nir: Implement lowering of 64-bit shift operations")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19995>
(cherry picked from commit 5398dd04bf)
2022-11-30 09:16:12 -08:00
..
amd radv: Fix sampler types in ETC2 decode. 2022-11-28 13:01:16 -08:00
android_stub
asahi agx: Fix float copyprop of neg(neg) case 2022-09-14 20:55:18 -07:00
broadcom v3dv: fix debug dump on BO free 2022-11-14 13:37:58 -08:00
c11 c11: #include <threads.h> when the os/platform provide it 2022-08-19 11:32:29 -07:00
compiler nir/lower_int64: fix shift lowering 2022-11-30 09:16:12 -08:00
drm-shim drm-shim: drop gnu99 override 2022-09-26 10:13:53 -07:00
egl meson: replace manual compiler flags with meson arguments 2022-09-14 13:58:58 -07:00
etnaviv
freedreno ir3: Don't save/restore disasm string pointer 2022-11-30 09:16:09 -08:00
gallium radeonsi/vcn: set current pic index correctly 2022-11-30 09:16:11 -08:00
gbm
getopt
glx glx: Remove usage of USE_ELF_TLS 2022-07-29 23:59:12 +00:00
gtest
hgl
imagination pvr: Fix cdm shared reg usage reported to fw. 2022-07-29 11:37:06 +00:00
imgui
intel blorp: support negative offsets in addresses 2022-11-28 13:01:16 -08:00
loader loader: Remove usage of USE_ELF_TLS in loader.c 2022-07-29 23:59:12 +00:00
mapi glthread: call _mesa_glthread_DeleteBuffers unconditionally 2022-08-12 09:41:33 -07:00
mesa mesa: treat unsupported queries as dummies 2022-11-28 13:01:16 -08:00
microsoft microsoft/compiler: Fix PSV struct when numthreads is 0 2022-08-19 11:32:32 -07:00
nouveau nv50/ir/nir: ignore sampler for TXF/TXQ ops. 2022-11-02 12:56:01 -07:00
panfrost panfrost/blend: Fix invalid const values leading to NIR validation errors 2022-11-30 09:16:10 -08:00
tool meson: replace manual compiler flags with meson arguments 2022-09-14 13:58:58 -07:00
util driconf/intel: Use fake vendor to WA bad detection in Source engine games 2022-11-28 13:01:17 -08:00
virtio virgl: add missing members in virgl_caps_v2 in 22.2 2022-11-29 19:13:11 +01:00
vulkan vulkan: Remove asserts that weren't valid for RADV ETC2 emulation. 2022-11-28 13:01:16 -08:00
meson.build meson: Remove usage of use_elf_tls 2022-07-29 23:59:11 +00:00