d3d10: Move debug_d3d10_driver_type() to d3d10_main.c.
Signed-off-by: Connor McAdams <conmanx360@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b44d6c25b2
commit
ae1cc9c742
|
@ -24,6 +24,25 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
|
WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
|
||||||
|
|
||||||
|
#define WINE_D3D10_TO_STR(x) case x: return #x
|
||||||
|
|
||||||
|
static const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
|
||||||
|
{
|
||||||
|
switch (driver_type)
|
||||||
|
{
|
||||||
|
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_HARDWARE);
|
||||||
|
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_REFERENCE);
|
||||||
|
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_NULL);
|
||||||
|
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_SOFTWARE);
|
||||||
|
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_WARP);
|
||||||
|
default:
|
||||||
|
FIXME("Unrecognised D3D10_DRIVER_TYPE %#x.\n", driver_type);
|
||||||
|
return "unrecognised";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#undef WINE_D3D10_TO_STR
|
||||||
|
|
||||||
static HRESULT d3d10_create_device(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type,
|
static HRESULT d3d10_create_device(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type,
|
||||||
HMODULE swrast, UINT flags, UINT sdk_version, ID3D10Device **device)
|
HMODULE swrast, UINT flags, UINT sdk_version, ID3D10Device **device)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#define D3DERR_INVALIDCALL 0x8876086c
|
#define D3DERR_INVALIDCALL 0x8876086c
|
||||||
|
|
||||||
/* TRACE helper functions */
|
/* TRACE helper functions */
|
||||||
const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type) DECLSPEC_HIDDEN;
|
|
||||||
const char *debug_d3d10_device_state_types(D3D10_DEVICE_STATE_TYPES t) DECLSPEC_HIDDEN;
|
const char *debug_d3d10_device_state_types(D3D10_DEVICE_STATE_TYPES t) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
enum d3d10_effect_object_type
|
enum d3d10_effect_object_type
|
||||||
|
|
|
@ -23,21 +23,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
|
||||||
|
|
||||||
#define WINE_D3D10_TO_STR(x) case x: return #x
|
#define WINE_D3D10_TO_STR(x) case x: return #x
|
||||||
|
|
||||||
const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
|
|
||||||
{
|
|
||||||
switch(driver_type)
|
|
||||||
{
|
|
||||||
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_HARDWARE);
|
|
||||||
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_REFERENCE);
|
|
||||||
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_NULL);
|
|
||||||
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_SOFTWARE);
|
|
||||||
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_WARP);
|
|
||||||
default:
|
|
||||||
FIXME("Unrecognized D3D10_DRIVER_TYPE %#x\n", driver_type);
|
|
||||||
return "unrecognized";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *debug_d3d10_device_state_types(D3D10_DEVICE_STATE_TYPES t)
|
const char *debug_d3d10_device_state_types(D3D10_DEVICE_STATE_TYPES t)
|
||||||
{
|
{
|
||||||
switch (t)
|
switch (t)
|
||||||
|
|
Loading…
Reference in New Issue