Patch 2 has me wonder: Since apparently drawing from sysmem textures is possible in some cases, and setting custom memory is possible on sysmem textures (Or just non-DDSCAPS_TEXTURE surfaces? I forgot), do we have to worry about drawing from a texture that has an application-provided desc->lpSurface set?
(Even if the answer is "theoretically yes" I am happy to treat this as a "not until we find an application that does that")
According to my testing it's possible, yes, although that's windows 10 WARP and I don't remember whether it works on real hardware. I do remember that SetSurfaceDesc() succeeds on mipmapped and cubemap textures but drawing from them is broken.