[PATCH 1/2] wined3d: Store stencil reference value in wined3d_state.