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