mesa/src/panfrost
Italo Nicola 2362e02f29 panfrost: fix strict-aliasing violations when packing fb ptrs
Compilers are free to make the assumption that pointers don't violate
strict aliasing. If that assumption is incorrect, as it is with the
framebuffer pointer packing code here, the job can fail.

This depends heavily on the compiler and optimization levels, so it's
hard to reproduce, but it did happen for at least two users running with
-O2 on gcc.

Fixes: 67cbbf9417 ("panfrost: Use framebuffer pointer XML")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8627
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21991>
2023-03-22 11:50:36 +00:00
..
ci panfrost/ci: Remove fbo-mrt-new-bind fail+flake 2023-03-14 23:10:01 +00:00
compiler pan/bi: Ignore signedness in vertex fetch 2023-03-14 23:10:00 +00:00
drm-shim
ds
include panfrost: Remove MALI_POSITIVE macro 2023-03-11 06:30:02 +00:00
lib panfrost: fix strict-aliasing violations when packing fb ptrs 2023-03-22 11:50:36 +00:00
midgard pan/mdg: Remove reference to removed macro 2023-03-11 06:30:02 +00:00
perf
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools
util pan/lower_framebuffer: Operate on lowered I/O 2023-02-17 23:09:19 +00:00
vulkan panvk: Use vk_get_physical_device_features 2023-03-16 08:23:28 +00:00
.clang-format
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00