display-caf: Squashed commits to support devices with JB video blobs

This should correct the retire fence, dequeue buffer, and mdp errors seen on some devices

It's confirmed to fix boot issues on htc s4 devices and the vzw gs3

Patch set 2: cleaned up duplicate ifdefs in common.mk
Patch set 3: update commit msg

hwc: Get the retire fence from the MDP driver

Get the retire fence separately instead of duplicating the
release fence.

Bug: 9319776
Change-Id: Iacb773c2d94f635e27a7b355d399cb2e36dac2a5
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	common.mk

display: Add flag to allow legacy allocations from MM heap

 * New devices with IOMMU use the MM heap exclusively for protected
   buffers. We need to support the old behavior for devices with legacy
   userspace.
 * Enable the old behavior with TARGET_DISPLAY_INSECURE_MM_HEAP.

Change-Id: I7882354fa8f159c707be11d7021c18561abfb522

Conflicts:
	common.mk

Change-Id: Iacb773c2d94f635e27a7b355d399cb2e36dac2a5