display: Add support for MDP 4.1

 * MDP 4.1 does not support the borderfill pipe and the baselayer logic
   should not be used.
 * Only use 3 pipes for MDP 4.1.

Change-Id: Ide542079902f35818300619f8eefd3d188342b5d

Conflicts:
	libhwcomposer/hwc.cpp
display: Fix support for MDP 4.1

 * MDP 4.1 still does not support the borderfill pipe, baselayer logic
   should not be used.

Change-Id: I587bdff4a03ced141e43819eea70cec1aedaeb7b
Fixes 1080p video playback and recording
Based on https://github.com/CyanogenMod/android_hardware_qcom_display-caf/commit/efa2483261a7d2db82c49e33997f232138999478

Change-Id: Ia2c08e43c49a84d70564ca29717efb6bfc168b88