llvmpipe: move getting mask value out of depth code. (v2)