/* Check adapter format. */
- /* Nicer output if we only have the line at the end. */
-#if 1
DBG("This=%p DeviceType=%s AdapterFormat=%s\n", This,
nine_D3DDEVTYPE_to_str(DeviceType), d3dformat_to_string(AdapterFormat));
-#endif
+ DBG("Usage=%x RType=%u CheckFormat=%s\n", Usage, RType,
+ d3dformat_to_string(CheckFormat));
+
user_assert(display_format(AdapterFormat, FALSE), D3DERR_INVALIDCALL);
hr = NineAdapter9_GetScreen(This, DeviceType, &screen);
if (Usage & (D3DUSAGE_QUERY_SRGBREAD | D3DUSAGE_QUERY_SRGBWRITE))
pf = util_format_srgb(pf);
- DBG("Format=%s/%s Usage/Bind=%x/%d RType/Target=%u/%s\n", // replace %d to %s
- d3dformat_to_string(CheckFormat), util_format_name(pf),
- Usage, bind, // temporary simplified for merge, FIXME
- /* Usage, util_dump_bind_flags(bind), */
- RType, util_dump_tex_target(target, TRUE));
-
if (pf == PIPE_FORMAT_NONE ||
!screen->is_format_supported(screen, pf, target, 0, bind)) {
DBG("NOT AVAILABLE\n");