mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 05:38:11 +02:00
Ian Romanick reported some "undefined behaviour" warnings during some not specified tests, relating to introduction of RGB[A}16_UNORM formats in merge request https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38588 This due to overflowing the 32-bits masks[], and then during assignment the red/green/blue/alphaMask fields in struct gl_config when using a 16 bpc format. Iow. the red/green/blue/alphaMask would not be usable. Suppress this warning by setting masks[] to zero for unorm16 formats, just as was previously done for is_float16, ie. fp16 formats. 16 bpc formats are only exposed for display on non-X11 WSI target platforms like GBM+DRM, Wayland, surfaceless, and these platforms do not use the info in red/green/blue/alphaMask at all, so the "undefined behaviour" is meaningless. Fixes: |
||
|---|---|---|
| .. | ||
| d3d10umd | ||
| dri | ||
| glx/xlib | ||
| hgl | ||
| lavapipe | ||
| mediafoundation | ||
| rusticl | ||
| teflon | ||
| va | ||
| wgl | ||