pan/mdg: Mask spills from texture write