Matt Turner
3d24f0ece1
vulkan: Avoid pointer aliasing
Avoids the sanitizer errors:
```
Test case 'dEQP-VK.pipeline.monolithic.spec_constant.graphics.vertex.basic.mixed_packed'..
../src/vulkan/util/vk_util.c:111:38: runtime error: load of misaligned address 0x603002b1c591 for type 'const uint16_t', which requires 2 byte alignment
0x603002b1c591: note: pointer points here
00 00 00 98 76 98 54 76 98 ba 10 32 54 76 98 ba dc fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
../src/vulkan/util/vk_util.c:108:38: runtime error: load of misaligned address 0x603002b1c593 for type 'const uint32_t', which requires 4 byte alignment
0x603002b1c593: note: pointer points here
00 98 76 98 54 76 98 ba 10 32 54 76 98 ba dc fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
../src/vulkan/util/vk_util.c:105:38: runtime error: load of misaligned address 0x603002b1c597 for type 'const uint64_t', which requires 8 byte alignment
0x603002b1c597: note: pointer points here
54 76 98 ba 10 32 54 76 98 ba dc fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 03 11 00
^
```
Fixes: 476dc3c050
("vulkan: add vk_spec_info_to_nir_spirv util method")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32159>
2024-11-16 03:14:31 +00:00
..
2024-10-29 11:52:37 +00:00
2024-06-29 12:42:49 -07:00
2024-09-26 11:12:03 +00:00
2024-11-14 19:29:00 +00:00
2024-11-14 16:35:24 +00:00
2024-11-16 03:14:31 +00:00
2024-11-13 04:26:46 +00:00
2024-09-18 17:54:02 +00:00
2022-04-19 19:38:47 +00:00
2023-03-04 07:41:10 +00:00
2023-03-04 07:41:10 +00:00
2023-03-04 07:41:10 +00:00
2023-03-04 07:41:10 +00:00