Merge "hwc2: Parameter validation and bounds checks"