winsys/gdi: GDI B5G6R5 display target support
authorWeibin Wu <weibinwu@microsoft.com>
Fri, 14 Apr 2023 16:51:34 +0000 (11:51 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Apr 2023 23:57:16 +0000 (23:57 +0000)
commit74c43834e7c1b41d5015960bc6998eaa6e8f895b
treeac5e50cf651babcb249ebd8f98b61a35a898eaee
parentd75e631e761ee358773e85c0c2b9399374030bbb
winsys/gdi: GDI B5G6R5 display target support

Added RGB_565 support to GDI display target.

This is to fix the color corruption issue when showing 16-bit B5G6R5 framebuffer through GDI.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7637

Reviewed-by: Jesse Natalie jenatali@microsoft.com
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22507>
src/gallium/winsys/sw/gdi/gdi_sw_winsys.c