d3d11: Add DXGI_FORMAT_B4G4R4A4_UNORM format.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-02-16 15:13:31 +01:00 committed by Alexandre Julliard
parent 9cb8e220d0
commit 0c16589076
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,7 @@ const char *debug_dxgi_format(DXGI_FORMAT format)
WINE_D3D_TO_STR(DXGI_FORMAT_BC7_TYPELESS);
WINE_D3D_TO_STR(DXGI_FORMAT_BC7_UNORM);
WINE_D3D_TO_STR(DXGI_FORMAT_BC7_UNORM_SRGB);
WINE_D3D_TO_STR(DXGI_FORMAT_B4G4R4A4_UNORM);
default:
FIXME("Unrecognized DXGI_FORMAT %#x.\n", format);
return "unrecognized";
@ -311,6 +312,7 @@ DXGI_FORMAT dxgi_format_from_wined3dformat(enum wined3d_format_id format)
case WINED3DFMT_BC7_TYPELESS: return DXGI_FORMAT_BC7_TYPELESS;
case WINED3DFMT_BC7_UNORM: return DXGI_FORMAT_BC7_UNORM;
case WINED3DFMT_BC7_UNORM_SRGB: return DXGI_FORMAT_BC7_UNORM_SRGB;
case WINED3DFMT_B4G4R4A4_UNORM: return DXGI_FORMAT_B4G4R4A4_UNORM;
default:
FIXME("Unhandled wined3d format %#x.\n", format);
return DXGI_FORMAT_UNKNOWN;
@ -421,6 +423,7 @@ enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format)
case DXGI_FORMAT_BC7_TYPELESS: return WINED3DFMT_BC7_TYPELESS;
case DXGI_FORMAT_BC7_UNORM: return WINED3DFMT_BC7_UNORM;
case DXGI_FORMAT_BC7_UNORM_SRGB: return WINED3DFMT_BC7_UNORM_SRGB;
case DXGI_FORMAT_B4G4R4A4_UNORM: return WINED3DFMT_B4G4R4A4_UNORM;
default:
FIXME("Unhandled DXGI_FORMAT %#x.\n", format);
return WINED3DFMT_UNKNOWN;