layer: check if the HWC cap is enabled