MGS-2805 [#imx-526] Enable gcdENABLE_VG by default.
authorMarius Vlad <marius-cristian.vlad@nxp.com>
Mon, 24 Apr 2017 11:29:51 +0000 (14:29 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:06 +0000 (15:22 -0500)
commitd4d2253c961aed7d67fb9844710e123df34f0220
tree291c3d46eb3de2fb629ab3ef1875b3b9d0705adb
parent22bc5fce9a3860d8f127463fe0d55393f6260d38
MGS-2805 [#imx-526] Enable gcdENABLE_VG by default.

BUILD_OPTION_VIVANTE_ENABLE_VG=1 is always set in
driver_build_sample.sh, so we enable it in the headers by default as
well. The reason behind this is that applications that use
gc_hal_options.h like libGAL do not use the build system to determine if
the macro has been set or not, while the driver passes them on the fly
to the compiler. This fix is required as ioctl() is broken otherwise (
the macro is used inside gcsHAL_INTERFACE and application mistakenly
think that the macro is off while the driver always builds with on).

Signed-off-by: Marius Vlad <marius-cristian.vlad@nxp.com>
drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h