S3D code is being conditionally compiled with HDMI_AS_PRIMARY. So it is necessary to enable this flag, if board file indicates HDMI as primary display (cherry picked from commit dfc3782b8f23a6aadec9fd7501807778b0d3c542) Change-Id: I3f6f84d76a3f7f5a3f83aa5ec31012b13b16431b