mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
dxgi: Add recently introduced wined3d formats.
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:
parent
d5d1a288e9
commit
71e35c46b0
1 changed files with 23 additions and 2 deletions
|
@ -120,8 +120,15 @@ const char *debug_dxgi_format(DXGI_FORMAT format)
|
|||
WINE_DXGI_TO_STR(DXGI_FORMAT_B5G5R5A1_UNORM);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_B8G8R8A8_UNORM);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_B8G8R8X8_UNORM);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_B8G8R8A8_TYPELESS);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_B8G8R8A8_UNORM_SRGB);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_B8G8R8X8_TYPELESS);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_B8G8R8X8_UNORM_SRGB);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_TYPELESS);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_UNORM);
|
||||
WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_UNORM_SRGB);
|
||||
default:
|
||||
FIXME("Unrecognized DXGI_FORMAT %#x\n", format);
|
||||
FIXME("Unrecognized DXGI_FORMAT %#x.\n", format);
|
||||
return "unrecognized";
|
||||
}
|
||||
}
|
||||
|
@ -221,6 +228,13 @@ DXGI_FORMAT dxgi_format_from_wined3dformat(enum wined3d_format_id format)
|
|||
case WINED3DFMT_B5G5R5A1_UNORM: return DXGI_FORMAT_B5G5R5A1_UNORM;
|
||||
case WINED3DFMT_B8G8R8A8_UNORM: return DXGI_FORMAT_B8G8R8A8_UNORM;
|
||||
case WINED3DFMT_B8G8R8X8_UNORM: return DXGI_FORMAT_B8G8R8X8_UNORM;
|
||||
case WINED3DFMT_B8G8R8A8_TYPELESS: return DXGI_FORMAT_B8G8R8A8_TYPELESS;
|
||||
case WINED3DFMT_B8G8R8A8_UNORM_SRGB: return DXGI_FORMAT_B8G8R8A8_UNORM_SRGB;
|
||||
case WINED3DFMT_B8G8R8X8_TYPELESS: return DXGI_FORMAT_B8G8R8X8_TYPELESS;
|
||||
case WINED3DFMT_B8G8R8X8_UNORM_SRGB: return DXGI_FORMAT_B8G8R8X8_UNORM_SRGB;
|
||||
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;
|
||||
default:
|
||||
FIXME("Unhandled wined3d format %#x.\n", format);
|
||||
return DXGI_FORMAT_UNKNOWN;
|
||||
|
@ -320,8 +334,15 @@ enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format)
|
|||
case DXGI_FORMAT_B5G5R5A1_UNORM: return WINED3DFMT_B5G5R5A1_UNORM;
|
||||
case DXGI_FORMAT_B8G8R8A8_UNORM: return WINED3DFMT_B8G8R8A8_UNORM;
|
||||
case DXGI_FORMAT_B8G8R8X8_UNORM: return WINED3DFMT_B8G8R8X8_UNORM;
|
||||
case DXGI_FORMAT_B8G8R8A8_TYPELESS: return WINED3DFMT_B8G8R8A8_TYPELESS;
|
||||
case DXGI_FORMAT_B8G8R8A8_UNORM_SRGB: return WINED3DFMT_B8G8R8A8_UNORM_SRGB;
|
||||
case DXGI_FORMAT_B8G8R8X8_TYPELESS: return WINED3DFMT_B8G8R8X8_TYPELESS;
|
||||
case DXGI_FORMAT_B8G8R8X8_UNORM_SRGB: return WINED3DFMT_B8G8R8X8_UNORM_SRGB;
|
||||
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;
|
||||
default:
|
||||
FIXME("Unhandled DXGI_FORMAT %#x\n", format);
|
||||
FIXME("Unhandled DXGI_FORMAT %#x.\n", format);
|
||||
return WINED3DFMT_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue