Sorry I disappeared after opening this one :sweat:
One alternate approach for 7/10, which may be more declarative, is to replace the logic in init_format_texture_info() with something like
I like this. I made the change and I'm going to retest.
E.g. add STATE_VDECL, STATE_SHADER(WINED3D_SHADER_TYPE_VERTEX), STATE_RENDER(WINED3D_RS_CLIPPING), STATE_RENDER(WINED3D_RS_CLIPPLANEENABLE) handlers
This is kind of a problem since there is no ARB vertex FFP replacement. I haven't tried to stick those in the ARB fragment FFP table but it seems a bit awkward at best. I can give it a try though.