svga: adapt to stencil ref changes