winsys/gdi: Update is_displaytarget_format_supported to reflect reality

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25979>
This commit is contained in:
Jesse Natalie 2023-10-31 14:03:09 -07:00 committed by Marge Bot
parent 823d40db4a
commit d4ed1ea31e

View file

@ -78,6 +78,10 @@ gdi_sw_is_displaytarget_format_supported( struct sw_winsys *ws,
switch(format) {
case PIPE_FORMAT_B8G8R8X8_UNORM:
case PIPE_FORMAT_B8G8R8A8_UNORM:
case PIPE_FORMAT_B5G6R5_UNORM:
case PIPE_FORMAT_B5G5R5A1_UNORM:
case PIPE_FORMAT_B4G4R4A4_UNORM:
case PIPE_FORMAT_R10G10B10A2_UNORM:
return true;
/* TODO: Support other formats possible with BMPs, as described in