PATCH: Only check the size and index, spacing and direction can be off.

Change-Id: I8a3e928f0b06b408f3ee6d55ac404bcc6078c5c3
Merge topic 'check-mask-size-only'

899cb70 PATCH: Only check the size and index, spacing and direction can be off.