From: 杜坤明 Date: Wed, 13 Jul 2011 09:33:04 +0000 (+0800) Subject: gpu: modify gcsHAL_INTERFACE to reduce memcopy size, Android version must be synchron... X-Git-Tag: firefly_0821_release~10136^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8044fc58724d59b91657ba2b8e15d35207112a32;p=firefly-linux-kernel-4.4.55.git gpu: modify gcsHAL_INTERFACE to reduce memcopy size, Android version must be synchronized. --- diff --git a/drivers/staging/rk29/vivante/hal/inc/gc_hal_driver.h b/drivers/staging/rk29/vivante/hal/inc/gc_hal_driver.h old mode 100644 new mode 100755 index 7a44306d5e13..fe019ca7e43c --- a/drivers/staging/rk29/vivante/hal/inc/gc_hal_driver.h +++ b/drivers/staging/rk29/vivante/hal/inc/gc_hal_driver.h @@ -529,6 +529,8 @@ typedef struct _gcsHAL_INTERFACE } WriteRegisterData; +// dkm : add "#if VIVANTE_PROFILER" to invalidate the unions for reduce the sizeof(gcsHAL_INTERFACE) +#if VIVANTE_PROFILER /* gcvHAL_GET_PROFILE_SETTING */ struct _gcsHAL_GET_PROFILE_SETTING { @@ -566,6 +568,7 @@ typedef struct _gcsHAL_INTERFACE OUT gcs2D_PROFILE_PTR hwProfile2D; } RegisterProfileData2D; +#endif /* Power management. */ /* gcvHAL_SET_POWER_MANAGEMENT_STATE */ @@ -606,6 +609,8 @@ typedef struct _gcsHAL_INTERFACE } MapPhysical; +// dkm : add "#if gcdDUMP_IN_KERNEL" to invalidate the union for reduce the sizeof(gcsHAL_INTERFACE) +#if gcdDUMP_IN_KERNEL /* gcvHAL_DEBUG */ struct _gcsHAL_DEBUG { @@ -619,6 +624,7 @@ typedef struct _gcsHAL_INTERFACE IN gctCHAR message[80]; } Debug; +#endif struct _gcsHAL_CACHE { diff --git a/drivers/staging/rk29/vivante/hal/kernel/gc_hal_kernel.c b/drivers/staging/rk29/vivante/hal/kernel/gc_hal_kernel.c old mode 100644 new mode 100755 index d850810c6eca..56d72c81126c --- a/drivers/staging/rk29/vivante/hal/kernel/gc_hal_kernel.c +++ b/drivers/staging/rk29/vivante/hal/kernel/gc_hal_kernel.c @@ -942,6 +942,8 @@ gckKERNEL_Dispatch( break; case gcvHAL_DEBUG: +// dkm : add "#if gcdDUMP_IN_KERNEL" to invalidate the code. +#if gcdDUMP_IN_KERNEL /* Set debug level and zones. */ if (Interface->u.Debug.set) { @@ -955,6 +957,7 @@ gckKERNEL_Dispatch( /* Print a message to the debugger. */ gcmkPRINT(Interface->u.Debug.message); } +#endif status = gcvSTATUS_OK; break;