sdm: hwc: Check for linear use case flags

The first frame on WFD or External display can have NULL frame buffer
handle, so instead of completely relying on UBWC specific system prop,
check for linear usecase flags to decide UBWC v/s Linear frame buffer.
Because framework sets the same usage bits for frame buffer allocation
after removing HW_VIDEO_ENCODER usage bit from the output buffer usage
bits of Virtual display.

CRs-Fixed: 2039299
Change-Id: Ic53cbcc43570ca9db3efca84969a678e46c873aa
1 file changed