gpu: modify gcsHAL_INTERFACE to reduce memcopy size, Android version must be synchron...
author杜坤明 <dkm@rockchip.com>
Wed, 13 Jul 2011 09:33:04 +0000 (17:33 +0800)
committer杜坤明 <dkm@rockchip.com>
Wed, 13 Jul 2011 09:33:04 +0000 (17:33 +0800)
drivers/staging/rk29/vivante/hal/inc/gc_hal_driver.h [changed mode: 0644->0755]
drivers/staging/rk29/vivante/hal/kernel/gc_hal_kernel.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 7a44306..fe019ca
@@ -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
         {
old mode 100644 (file)
new mode 100755 (executable)
index d850810..56d72c8
@@ -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;