[PATCH 3/3] wined3d: Truncate stencil reference values to the stencil component size.