Commit 26da9b42 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

dxgi: Add DXGI_FORMAT_NV12 and DXGI_FORMAT_YUY2.

parent 2f94e72b
...@@ -147,6 +147,8 @@ const char *debug_dxgi_format(DXGI_FORMAT format) ...@@ -147,6 +147,8 @@ const char *debug_dxgi_format(DXGI_FORMAT format)
WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_TYPELESS); WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_TYPELESS);
WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_UNORM); WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_UNORM);
WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_UNORM_SRGB); WINE_DXGI_TO_STR(DXGI_FORMAT_BC7_UNORM_SRGB);
WINE_DXGI_TO_STR(DXGI_FORMAT_NV12);
WINE_DXGI_TO_STR(DXGI_FORMAT_YUY2);
WINE_DXGI_TO_STR(DXGI_FORMAT_B4G4R4A4_UNORM); WINE_DXGI_TO_STR(DXGI_FORMAT_B4G4R4A4_UNORM);
default: default:
FIXME("Unrecognized DXGI_FORMAT %#x.\n", format); FIXME("Unrecognized DXGI_FORMAT %#x.\n", format);
...@@ -260,6 +262,8 @@ DXGI_FORMAT dxgi_format_from_wined3dformat(enum wined3d_format_id format) ...@@ -260,6 +262,8 @@ DXGI_FORMAT dxgi_format_from_wined3dformat(enum wined3d_format_id format)
case WINED3DFMT_BC7_TYPELESS: return DXGI_FORMAT_BC7_TYPELESS; case WINED3DFMT_BC7_TYPELESS: return DXGI_FORMAT_BC7_TYPELESS;
case WINED3DFMT_BC7_UNORM: return DXGI_FORMAT_BC7_UNORM; case WINED3DFMT_BC7_UNORM: return DXGI_FORMAT_BC7_UNORM;
case WINED3DFMT_BC7_UNORM_SRGB: return DXGI_FORMAT_BC7_UNORM_SRGB; case WINED3DFMT_BC7_UNORM_SRGB: return DXGI_FORMAT_BC7_UNORM_SRGB;
case WINED3DFMT_NV12: return DXGI_FORMAT_NV12;
case WINED3DFMT_YUY2: return DXGI_FORMAT_YUY2;
case WINED3DFMT_B4G4R4A4_UNORM: return DXGI_FORMAT_B4G4R4A4_UNORM; case WINED3DFMT_B4G4R4A4_UNORM: return DXGI_FORMAT_B4G4R4A4_UNORM;
default: default:
FIXME("Unhandled wined3d format %#x.\n", format); FIXME("Unhandled wined3d format %#x.\n", format);
...@@ -371,6 +375,8 @@ enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format) ...@@ -371,6 +375,8 @@ enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format)
case DXGI_FORMAT_BC7_TYPELESS: return WINED3DFMT_BC7_TYPELESS; case DXGI_FORMAT_BC7_TYPELESS: return WINED3DFMT_BC7_TYPELESS;
case DXGI_FORMAT_BC7_UNORM: return WINED3DFMT_BC7_UNORM; case DXGI_FORMAT_BC7_UNORM: return WINED3DFMT_BC7_UNORM;
case DXGI_FORMAT_BC7_UNORM_SRGB: return WINED3DFMT_BC7_UNORM_SRGB; case DXGI_FORMAT_BC7_UNORM_SRGB: return WINED3DFMT_BC7_UNORM_SRGB;
case DXGI_FORMAT_NV12: return WINED3DFMT_NV12;
case DXGI_FORMAT_YUY2: return WINED3DFMT_YUY2;
case DXGI_FORMAT_B4G4R4A4_UNORM: return WINED3DFMT_B4G4R4A4_UNORM; case DXGI_FORMAT_B4G4R4A4_UNORM: return WINED3DFMT_B4G4R4A4_UNORM;
default: default:
FIXME("Unhandled DXGI_FORMAT %#x.\n", format); FIXME("Unhandled DXGI_FORMAT %#x.\n", format);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment