MGS-3848-5 [#imx-854] OCL1.2: test_image_streams failures
authorXianzhong <xianzhong.li@nxp.com>
Thu, 26 Apr 2018 15:33:37 +0000 (23:33 +0800)
committerXianzhong <xianzhong.li@nxp.com>
Thu, 26 Apr 2018 15:39:34 +0000 (23:39 +0800)
there are 2 test failed on 8QXP FB. CL151757 fixed bug #20196,
for image objects using host ptr, set the cacheable flag correctly.

merged CL151774 fix build error cause by CL151757.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 0be7546b8798645cea95e7dc935c43380f763458)

drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c
drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_enum.h

index 92d43ca..03bd3c7 100644 (file)
@@ -2217,7 +2217,6 @@ gckEVENT_Notify(
 #if gcdUSE_MMU_EXCEPTION
 #if gcdALLOC_ON_FAULT
             status = gckHARDWARE_HandleFault(Event->kernel->hardware);
-
 #endif
             if (gcmIS_ERROR(status))
             {
index 983cd33..9a4328f 100644 (file)
@@ -1175,6 +1175,14 @@ typedef enum _gceSURF_FORMAT
 }
 gceSURF_FORMAT;
 
+typedef enum _gceIMAGE_MEM_TYPE
+{
+    gcvIMAGE_MEM_DEFAULT,
+    gcvIMAGE_MEM_HOST_PTR,
+    gcvIMAGE_MEM_HOST_PTR_UNCACHED,
+}
+gceIMAGE_MEM_TYPE;
+
 typedef enum _gceSURF_YUV_COLOR_SPACE
 {
     gcvSURF_ITU_REC601,
@@ -2168,4 +2176,3 @@ typedef void *                            gctTHREAD;
 #endif
 
 #endif /* __gc_hal_enum_h_ */
-