From d4d2253c961aed7d67fb9844710e123df34f0220 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Mon, 24 Apr 2017 14:29:51 +0300 Subject: [PATCH] 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 --- drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h index 7c468083c33d..c293202553ef 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h +++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h @@ -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 -- 2.17.1