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.  Will mostly fix it once depal is merged (didn't want to conflict that by modifying the texture cache fbo_bind_color_as_texture() part.)

Even with that, there are a couple weird artifacts still, not sure if it's position/texel alignment or something.

-[Unknown]