Here are 5 more patches on top of !4624, mostly along the same lines. I realize it's super late, no need to rush reviewing :slight_smile:
-- v2: d3d9/tests: Test creating a texture on a NULL HWND device. d3d9/tests: Don't create a vertex shader in test_desktop_window() when unsupported. wined3d: Conditionally allow sRGB writes with the 'none' shader backend. wined3d: Conditionally support WINED3D_FRAGMENT_CAP_SRGB_WRITE on the ffp fragment pipe. d3d9/tests: Skip test_sample_attached_rendertarget() without pixel shaders support. wined3d: Don't override texture parameters for COND_NP2 on multisample textures. wined3d: Don't skip FFP projection transform update. d3d9: Don't do instanced draws in DrawPrimitive() and DrawPrimitiveUP(). wined3d: Rename WINED3DUSAGE_PRIVATE to WINED3DUSAGE_CS.