st/mesa: use fragment shader to copy stencil buffer