hwc2: Fix error handling for invalid ColorMode and RenderIntent

Fix to return BAD_PARAMETER for invalid RenderIntent value in
GetRenderIntents api and invalid ColorMode in
SetColorModeWithRenderIntent api. Currently they return
Unsupported error.

Change-Id: Ic56322f56170d2e421161c69ebf4900f86ec554c
1 file changed