Commit ae1cc9c7 authored by Connor McAdams's avatar Connor McAdams Committed by Alexandre Julliard

d3d10: Move debug_d3d10_driver_type() to d3d10_main.c.

parent b44d6c25
......@@ -24,6 +24,25 @@
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,
HMODULE swrast, UINT flags, UINT sdk_version, ID3D10Device **device)
{
......
......@@ -41,7 +41,6 @@
#define D3DERR_INVALIDCALL 0x8876086c
/* 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;
enum d3d10_effect_object_type
......
......@@ -23,21 +23,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
#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)
{
switch (t)
......
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