328 TRACE(
"Returning: ");
335 TRACE(
"Convert a DirectDraw Pixelformat to a WineD3D Pixelformat\n");
347 FIXME(
"DDPF_PALETTEINDEXED1 to DDPF_PALETTEINDEXED4 are not supported by WineD3D (yet). Returning WINED3DFMT_P8\n");
360 if( (DDPixelFormat->u2.
dwRBitMask == 0xF800) &&
367 if( (DDPixelFormat->u2.
dwRBitMask == 0x7C00) &&
378 if( (DDPixelFormat->u2.
dwRBitMask == 0x0F00) &&
397 WARN(
"16 bit RGB Pixel format does not match.\n");
405 if( (DDPixelFormat->u2.
dwRBitMask == 0x00FF0000) &&
406 (DDPixelFormat->u3.
dwGBitMask == 0x0000FF00) &&
407 (DDPixelFormat->u4.
dwBBitMask == 0x000000FF) )
416 WARN(
"32 bit RGB pixel format does not match.\n");
420 WARN(
"Invalid dwRGBBitCount in Pixelformat structure.\n");
433 WARN(
"Invalid AlphaBitDepth in Alpha-Only Pixelformat.\n");
448 WARN(
"Unknown Alpha / Luminance bit depth combination.\n");
452 FIXME(
"A luminance Pixelformat shouldn't have 6 luminance bits. Returning D3DFMT_L6V5U5 for now.\n");
458 WARN(
"Unknown Alpha / Lumincase bit depth combination.\n");
468 FIXME(
"A luminance Pixelformat shouldn't have 6 luminance bits. Returning D3DFMT_L6V5U5 for now.\n");
489 WARN(
"Unknown depth stencil format: 16 z bits, %u stencil bits.\n",
496 WARN(
"Unknown depth stencil format: 32 z bits, %u stencil bits.\n",
501 WARN(
"Unknown depth stencil format: %u z bits, %u stencil bits.\n",
520 WARN(
"Unknown depth-only format: 32 z bits, mask 0x%08x\n",
525 WARN(
"Unknown depth-only format: %u z bits, mask 0x%08x\n",
560 WARN(
"Unknown Pixelformat.\n");
570 unsigned int wined3d_flags;
572 wined3d_flags =
flags & handled;
586 return wined3d_flags;
593 return (
float)(colour &
mask) / (
float)
mask;
605 wined3d_colour->
r = 0.0f;
606 wined3d_colour->
g = 0.0f;
607 wined3d_colour->
b = 0.0f;
614 WARN(
"FourCC formats not supported.\n");
625 wined3d_colour->
r = 0.0f;
626 wined3d_colour->
g = 0.0f;
627 wined3d_colour->
b = 0.0f;
631 wined3d_colour->
r =
entry.peRed / 255.0f;
632 wined3d_colour->
g =
entry.peGreen / 255.0f;
633 wined3d_colour->
b =
entry.peBlue / 255.0f;
635 wined3d_colour->
a = colour / 255.0f;
647 wined3d_colour->
a = 0.0f;
657 wined3d_colour->
g = 0.0f;
658 wined3d_colour->
b = 0.0f;
659 wined3d_colour->
a = 0.0f;
663 FIXME(
"Unhandled pixel format.\n");
667 wined3d_colour->
r = 0.0f;
668 wined3d_colour->
g = 0.0f;
669 wined3d_colour->
b = 0.0f;
670 wined3d_colour->
a = 0.0f;
689 TRACE(
"%p\n", *((
const void *
const*)
in));
694 TRACE(
"Low : 0x%08x - High : 0x%08x\n", ddck->dwColorSpaceLowValue, ddck->dwColorSpaceHighValue);
816 for (
i=0;
i < num_mems;
i++)
832 TRACE(
", dwFourCC code '%c%c%c%c' (0x%08x) - %u bits per pixel",
833 (
unsigned char)( pf->
dwFourCC &0xff),
834 (
unsigned char)((pf->
dwFourCC>> 8)&0xff),
835 (
unsigned char)((pf->
dwFourCC>>16)&0xff),
836 (
unsigned char)((pf->
dwFourCC>>24)&0xff),
841 TRACE(
", RGB bits: %u, R 0x%08x G 0x%08x B 0x%08x",
856 TRACE(
", Bump bits: %u, U 0x%08x V 0x%08x L 0x%08x",
866#define STRUCT DDSURFACEDESC2
941 default:
ERR(
"Unexpected position mask\n");
965 memcpy(pOut, pIn,
sizeof(*pOut));
1027 static const struct flag_info flags2[] =
1055 static const struct flag_info flags3[] =
1077 static const struct flag_info flags4[] =
1108 static const struct flag_info flags5[] =
1121 static const struct flag_info flags6[] =
1135 static const struct flag_info flags7[] =
1144 TRACE(
" - dwSize : %d\n", lpcaps->dwSize);
1153 TRACE(
" - dwNumFourCCCodes : %d\n", lpcaps->dwNumFourCCCodes);
1154 TRACE(
" - dwCurrVisibleOverlays : %d\n", lpcaps->dwCurrVisibleOverlays);
1155 TRACE(
" - dwMinOverlayStretch : %d\n", lpcaps->dwMinOverlayStretch);
1156 TRACE(
" - dwMaxOverlayStretch : %d\n", lpcaps->dwMaxOverlayStretch);
1224 out->dwSize =
sizeof(*out);
1225 out->dwFlags =
in->dwFlags & ~DDSD_ZBUFFERBITDEPTH;
1232 memset(&
out->u4.ddpfPixelFormat, 0,
sizeof(
out->u4.ddpfPixelFormat));
1233 out->u4.ddpfPixelFormat.dwSize =
sizeof(
out->u4.ddpfPixelFormat);
1235 out->u4.ddpfPixelFormat.u1.dwZBufferBitDepth =
in->u2.dwZBufferBitDepth;
1238 out->u4.ddpfPixelFormat.u3.dwZBitMask = ~0
U >> (32 -
in->u2.dwZBufferBitDepth);
1241 out->ddsCaps.dwCaps =
in->ddsCaps.dwCaps;
1246 out->lpSurface =
in->lpSurface;
1265 out->dwSize =
sizeof(*out);
1266 out->dwFlags =
in->dwFlags;
1271 out->ddpfPixelFormat =
in->u4.ddpfPixelFormat;
1276 out->dwFlags &= ~DDSD_PIXELFORMAT;
1278 out->u2.dwZBufferBitDepth =
in->u4.ddpfPixelFormat.u1.dwZBufferBitDepth;
1282 out->ddsCaps.dwCaps =
in->ddsCaps.dwCaps;
1288 out->lpSurface =
in->lpSurface;
1300 if (
in->dwFlags &
DDSD_FVF)
WARN(
"Does not exist in DDSURFACEDESC: DDSD_FVF\n");
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define D3DFVF_POSITION_MASK
#define GET_TEXCOORD_SIZE_FROM_FVF(d3dvtVertexType, tex_num)
#define GET_TEXCOUNT_FROM_FVF(d3dvtVertexType)
static void DDRAW_dump_members(DWORD flags, const void *data, const struct member_info *mems, size_t num_mems)
unsigned int wined3dmapflags_from_ddrawmapflags(unsigned int flags)
static void DDRAW_dump_PTR(const void *in)
static void DDRAW_dump_flags(DWORD flags, const struct flag_info *names, size_t num_names)
static float colour_to_float(DWORD colour, DWORD mask)
void dump_D3DMATRIX(const D3DMATRIX *mat)
void ddrawformat_from_wined3dformat(DDPIXELFORMAT *DDPixelFormat, enum wined3d_format_id wined3d_format)
void DDSD_to_DDSD2(const DDSURFACEDESC *in, DDSURFACEDESC2 *out)
void multiply_matrix(D3DMATRIX *dest, const D3DMATRIX *src1, const D3DMATRIX *src2)
void DDSD2_to_DDSD(const DDSURFACEDESC2 *in, DDSURFACEDESC *out)
static void DDRAW_dump_DDSCAPS(const DDSCAPS *in)
static void DDRAW_dump_DDCOLORKEY(const DDCOLORKEY *ddck)
void DDRAW_dump_DDSCAPS2(const DDSCAPS2 *in)
HRESULT hr_ddraw_from_wined3d(HRESULT hr)
void DDRAW_dump_surface_desc(const DDSURFACEDESC2 *lpddsd)
void DDRAW_dump_cooperativelevel(DWORD cooplevel)
enum wined3d_format_id wined3dformat_from_ddrawformat(const DDPIXELFORMAT *DDPixelFormat)
static void DDRAW_dump_pixelformat(const DDPIXELFORMAT *pf)
static void DDRAW_dump_flags_nolf(DWORD flags, const struct flag_info *names, size_t num_names)
static void DDRAW_dump_DWORD(const void *in)
void DDRAW_Convert_DDDEVICEIDENTIFIER_2_To_1(const DDDEVICEIDENTIFIER2 *pIn, DDDEVICEIDENTIFIER *pOut)
static void DDRAW_dump_pixelformat_flag(DWORD flagmask)
DWORD get_flexible_vertex_size(DWORD d3dvtVertexType)
BOOL wined3d_colour_from_ddraw_colour(const DDPIXELFORMAT *pf, const struct ddraw_palette *palette, DWORD colour, struct wined3d_color *wined3d_colour)
void DDRAW_dump_DDCAPS(const DDCAPS *lpcaps)
void DDRAW_Convert_DDSCAPS_1_To_2(const DDSCAPS *pIn, DDSCAPS2 *pOut)
static const WCHAR dwWidth[]
static const WCHAR dwHeight[]
HRESULT CDECL wined3d_palette_get_entries(const struct wined3d_palette *palette, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
#define memcpy(s1, s2, n)
#define DDSVCAPS_RESERVED4
#define DDSCL_SETDEVICEWINDOW
#define DDFXCAPS_OVERLAYSHRINKXN
#define DDCKEYCAPS_DESTBLTCLRSPACEYUV
#define DDPCAPS_PRIMARYSURFACE
#define DDSCL_SETFOCUSWINDOW
#define DDCKEYCAPS_SRCBLTCLRSPACEYUV
#define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL
#define DDPF_PALETTEINDEXEDTO8
#define DDSCAPS2_CUBEMAP_NEGATIVEZ
#define DDSCAPS_FRONTBUFFER
#define DDCAPS_OVERLAYSTRETCH
#define DDFXALPHACAPS_BLTALPHASURFACES
#define DDSCAPS_ALLOCONLOAD
#define DDFXALPHACAPS_BLTALPHAPIXELS
#define DDFXCAPS_BLTSHRINKYN
#define DDPF_PALETTEINDEXED4
#define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG
#define DDCAPS_ALIGNBOUNDARYSRC
#define DDCAPS2_CANDROPZ16BIT
#define DDCAPS_BLTDEPTHFILL
#define DDCAPS2_FLIPINTERVAL
#define DDPF_PALETTEINDEXED2
#define DDSCAPS2_HARDWAREDEINTERLACE
#define DDCKEYCAPS_DESTBLT
#define DDCKEYCAPS_SRCOVERLAYYUV
#define DDCKEYCAPS_SRCBLTYUV
#define DDSVCAPS_RESERVED3
#define DDFXCAPS_BLTSHRINKX
#define DDCAPS_ALIGNBOUNDARYDEST
#define DDCAPS2_FLIPNOVSYNC
#define DDSCAPS2_RESERVED1
#define DDSCAPS_RESERVED2
#define DDFXALPHACAPS_OVERLAYALPHAPIXELS
#define DDCAPS2_PRIMARYGAMMA
#define DDCKEYCAPS_DESTOVERLAY
#define DDCAPS2_COLORCONTROLOVERLAY
#define DDFXCAPS_OVERLAYARITHSTRETCHY
#define DDSD_ALPHABITDEPTH
#define DDCAPS2_CANRENDERWINDOWED
#define DDCAPS_STEREOVIEW
#define DDSVCAPS_RESERVED1
#define DDSD_TEXTURESTAGE
#define DDSCAPS2_CUBEMAP_POSITIVEX
#define DDCKEYCAPS_DESTBLTCLRSPACE
#define DDCAPS2_NONLOCALVIDMEM
#define DDCKEYCAPS_SRCOVERLAY
#define DDSCAPS_PRIMARYSURFACE
#define DDSD_ZBUFFERBITDEPTH
#define DDPCAPS_8BITENTRIES
#define DDFXCAPS_BLTSTRETCHYN
#define DDFXCAPS_BLTMIRRORLEFTRIGHT
#define DDFXCAPS_OVERLAYARITHSTRETCHYN
#define DDCAPS_CANBLTSYSMEM
#define DDCAPS_READSCANLINE
#define DDFXCAPS_BLTMIRRORUPDOWN
#define DDSCAPS_WRITEONLY
#define DDFXCAPS_OVERLAYSTRETCHXN
#define DDSCAPS_OPTIMIZED
#define DDCAPS2_CERTIFIED
#define DDSD_CKDESTOVERLAY
#define DDSVCAPS_STEREOSEQUENTIAL
#define DDSCAPS_NONLOCALVIDMEM
#define DDCAPS_OVERLAYFOURCC
#define DDCAPS2_COLORCONTROLPRIMARY
#define DDCKEYCAPS_DESTOVERLAYCLRSPACE
#define DDSCAPS_RESERVED1
#define DDCAPS2_NONLOCALVIDMEMCAPS
#define DDCAPS_BLTSTRETCH
#define DDPF_STENCILBUFFER
#define DDSCAPS2_MIPMAPSUBLEVEL
#define DDFXCAPS_OVERLAYSHRINKX
#define DDSCL_ALLOWREBOOT
#define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV
#define DDFXCAPS_BLTSTRETCHXN
#define DDFXALPHACAPS_OVERLAYALPHASURFACES
#define DDCAPS_ALIGNSIZESRC
#define DDCKEYCAPS_SRCBLT
#define DDFXCAPS_BLTSTRETCHY
#define DDCKEYCAPS_SRCOVERLAYONEACTIVE
#define DDSCAPS_LIVEVIDEO
#define DDCAPS_OVERLAYCANTCLIP
#define DDCAPS_CANCLIPSTRETCHED
#define DDSCAPS2_D3DTEXTUREMANAGE
#define DDSCAPS_OFFSCREENPLAIN
#define DDFXCAPS_BLTARITHSTRETCHY
#define DDCAPS2_CANBOBINTERLEAVED
#define DDFXCAPS_BLTARITHSTRETCHYN
#define DDCAPS_BANKSWITCHED
#define DDSCAPS2_RESERVED2
#define DDCAPS2_CANBOBNONINTERLEAVED
#define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND
#define DDFXCAPS_BLTSHRINKXN
#define DDLOCK_NODIRTYUPDATE
#define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG
#define DDCAPS2_CANCALIBRATEGAMMA
#define DDCKEYCAPS_DESTOVERLAYONEACTIVE
#define DDSCAPS_PRIMARYSURFACELEFT
#define DDCAPS_BLTCOLORFILL
#define DDSVCAPS_RESERVED2
#define DDFXCAPS_OVERLAYMIRRORUPDOWN
#define DDCAPS2_WIDESURFACES
#define DDPF_PALETTEINDEXED1
#define DDCAPS2_COPYFOURCC
#define DDFXCAPS_BLTSTRETCHX
#define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT
#define DDPF_PALETTEINDEXED8
#define DDCAPS_ALIGNSTRIDE
#define DDSCAPS2_HINTDYNAMIC
#define DDSCAPS_BACKBUFFER
#define DDFXALPHACAPS_BLTALPHAEDGEBLEND
#define DDCKEYCAPS_DESTBLTYUV
#define DDCAPS2_AUTOFLIPOVERLAY
#define DDFXCAPS_OVERLAYSTRETCHY
#define DDSCL_CREATEDEVICEWINDOW
#define DDFXCAPS_BLTROTATION90
#define DDSCAPS2_CUBEMAP_NEGATIVEY
#define DDFXCAPS_OVERLAYALPHA
#define DDLOCK_DISCARDCONTENTS
#define DDFXCAPS_OVERLAYSTRETCHX
#define DDCAPS2_CANFLIPODDEVEN
#define DDPF_BUMPLUMINANCE
#define DDSCAPS2_CUBEMAP_POSITIVEY
#define DDCAPS_NOHARDWARE
#define DDSCAPS2_CUBEMAP_NEGATIVEX
#define DDPCAPS_PRIMARYSURFACELEFT
#define DDSCAPS2_TEXTUREMANAGE
#define DDSCL_NOWINDOWCHANGES
#define DDLOCK_NOOVERWRITE
#define DDCKEYCAPS_DESTOVERLAYYUV
#define DDSCAPS2_HINTANTIALIASING
#define DDSCAPS2_CUBEMAP_POSITIVEZ
#define DDERR_INVALIDPARAMS
#define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV
#define DDFXCAPS_OVERLAYSTRETCHYN
#define DDSCAPS_VIDEOMEMORY
#define DDCKEYCAPS_SRCOVERLAYCLRSPACE
#define DDCAPS_ALIGNSIZEDEST
#define DDSCAPS_LOCALVIDMEM
#define DDFXALPHACAPS_BLTALPHAPIXELSNEG
#define DDFXCAPS_BLTROTATION
#define DDFXALPHACAPS_BLTALPHASURFACESNEG
#define DDCKEYCAPS_SRCBLTCLRSPACE
#define DDCAPS2_TEXMANINNONLOCALVIDMEM
#define DDCAPS2_NOPAGELOCKREQUIRED
#define DDFXCAPS_OVERLAYSHRINKYN
#define DDCAPS2_CANBOBHARDWARE
#define DDSCAPS_SYSTEMMEMORY
#define DDCAPS2_CANMANAGETEXTURE
#define DDSCAPS2_HINTSTATIC
#define DDSCAPS_VIDEOPORT
#define DDFXCAPS_BLTSHRINKY
#define DDPCAPS_INITIALIZE
#define DDSD_BACKBUFFERCOUNT
#define DDSCAPS_STANDARDVGAMODE
#define DDSCAPS2_STEREOSURFACELEFT
#define DDCKEYCAPS_NOCOSTOVERLAY
#define DDSCAPS2_DONOTPERSIST
#define DDFXCAPS_OVERLAYSHRINKY
#define DDCAPS_COLORKEYHWASSIST
#define DDCAPS2_VIDEOPORT
#define DDCAPS2_NO2DDURING3DSCENE
#define DDCAPS_PALETTEVSYNC
#define DDSD_CKSRCOVERLAY
#define DDFXCAPS_BLTALPHA
void(* func)(const void *)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define WINED3D_MAP_NO_DIRTY_UPDATE
@ WINED3DFMT_B2G3R3_UNORM
@ WINED3DFMT_B4G4R4A4_UNORM
@ WINED3DFMT_B8G8R8A8_UNORM
@ WINED3DFMT_S1_UINT_D15_UNORM
@ WINED3DFMT_B2G3R3A8_UNORM
@ WINED3DFMT_B8G8R8X8_UNORM
@ WINED3DFMT_R8G8B8X8_UNORM
@ WINED3DFMT_B5G5R5X1_UNORM
@ WINED3DFMT_R5G5_SNORM_L6_UNORM
@ WINED3DFMT_B8G8R8_UNORM
@ WINED3DFMT_B5G5R5A1_UNORM
@ WINED3DFMT_R8G8_SNORM_L8X8_UNORM
@ WINED3DFMT_B5G6R5_UNORM
@ WINED3DFMT_S4X4_UINT_D24_UNORM
@ WINED3DFMT_B4G4R4X4_UNORM
@ WINED3DFMT_MULTI2_ARGB8
@ WINED3DFMT_D24_UNORM_S8_UINT
#define WINED3D_MAP_WRITE
#define WINED3DERR_INVALIDCALL