Merge "hwc2: Add input sanity checks"