mesa: rework texture completeness testing