wined3d: Fix debug_d3dusagequery() to handle combinations of flags.