mesa/src
Michel Dänzer a3363c348d gallium: Make pipe_viewport_state swizzle_x/y/z/w bit-fields 8 bits wide
Previously there were 20 padding bits after them, which would be left
uninitialized and preserved when writing to the swizzle members. This
could result in two equal viewport states spuriously being considered
different (because memcmp compared the padding bits as well).

Noticed while looking for something else with valgrind:

==801624== Conditional jump or move depends on uninitialised value(s)
==801624==    at 0x10B86259: cso_set_viewport (cso_context.c:739)
==801624==    by 0x10B862C7: cso_set_viewport_dims (cso_context.c:764)
==801624==    by 0x1057E3A1: clear_with_quad (st_cb_clear.c:335)
==801624==    by 0x1057E3A1: st_Clear (st_cb_clear.c:545)
==801624==    [...]
==801624==
==801624== Conditional jump or move depends on uninitialised value(s)
==801624==    at 0x10B885DE: cso_restore_viewport (cso_context.c:777)
==801624==    by 0x10B885DE: cso_restore_state (cso_context.c:1710)
==801624==    by 0x1057E4CB: clear_with_quad (st_cb_clear.c:364)
==801624==    by 0x1057E4CB: st_Clear (st_cb_clear.c:545)
==801624==    [...]

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6867>
2020-09-29 15:58:22 +00:00
..
amd radv: move lowering of FS outputs outside of ACO 2020-09-29 14:44:05 +00:00
android_stub mesa: Make the android_stub be a set of non-installed shared libraries. 2020-09-22 17:09:22 +00:00
broadcom Revert "nir: replace lower_ffma and fuse_ffma with has_ffma" 2020-09-24 13:11:50 -07:00
compiler mesa,glsl: add support for GL_NV_shader_atomic_int64 2020-09-29 14:24:44 +00:00
drm-shim
egl egl/android: HAVE_DRM_GRALLOC path fixes (v2) 2020-09-07 23:33:15 +02:00
etnaviv
freedreno turnip: initial implementation of VK_KHR_push_descriptor 2020-09-29 12:58:34 +00:00
gallium gallium: Make pipe_viewport_state swizzle_x/y/z/w bit-fields 8 bits wide 2020-09-29 15:58:22 +00:00
gbm gallium: rename pipe_transfer_usage -> pipe_map_flags 2020-09-22 03:20:54 +00:00
getopt
glx glx: Allow depth-30 pbuffers to work without a depth-30 pixmap format 2020-09-17 14:28:24 -04:00
gtest
hgl
imgui
intel anv: Use nir_lower_multiview pass 2020-09-29 10:31:59 +00:00
loader glx/dri3: Implement GLX_EXT_swap_control_tear 2020-09-10 14:48:19 -04:00
mapi
mesa mesa,glsl: add support for GL_NV_shader_atomic_int64 2020-09-29 14:24:44 +00:00
panfrost panfrost: Add preliminary support for Mali G72 2020-09-29 08:39:23 +00:00
util mesa: Promote Intel's simple logging façade for Android to util/ 2020-09-28 09:14:44 -07:00
virtio
vulkan vulkan/wsi/display: add option for display fence to signal syncobj 2020-09-24 13:20:00 +00:00
meson.build
SConscript