layers: Check compareEnable.

Don't validate compareOp if compareEnable is false.
1 file changed