d3d9: Emulate some logic ops with blending

This makes Brave Story's intro visible.  Also add for GLES2/GLES3, but doesn't seem to work on GLES2 (at least on my phone, not sure why...)

Improves #6916 anyhow.

-[Unknown]