d3d: Initial attempt to upload stencil.
Merge pull request #6905 from unknownbrackets/d3d-stencil

d3d: Initial attempt to upload stencil