d3d: Fix depal flipping and negative z.
Merge pull request #6923 from unknownbrackets/dx9-depal

d3d: Fix depal flipping and negative z