cell: adapt to stencil ref changes

not betting this compiles, some of the code handling stencil test seems
incomplete and/or never called?
4 files changed