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)
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

index 7c46808..c293202 100644 (file)
@@ -1237,7 +1237,7 @@ This define enables the use of VM for gckCommand and fence buffers.
 #endif
 
 #ifndef gcdENABLE_VG
-#   define gcdENABLE_VG                         0
+#   define gcdENABLE_VG                         1
 #endif
 
 #ifndef gcdVG_ONLY