Browse Source

Merge branch 'CR_6913_omx_less_flush_cache_Leo.Lu' into 'jh7110-devel'

CR_6913_omx_less_flush_cache_Leo.Lu

See merge request sdk/soft_3rdpart!69
andy.hu 7 months ago
parent
commit
257acc6502
2 changed files with 2 additions and 6 deletions
  1. 2 2
      wave511/code/vdi/linux/vdi.c
  2. 0 4
      wave511/code/vpuapi/vpuapi.c

+ 2 - 2
wave511/code/vdi/linux/vdi.c

@@ -1022,7 +1022,7 @@ int vdi_read_memory(unsigned long core_idx, PhysicalAddress addr, unsigned char
         return -1;
 
     offset = addr - (unsigned long)vdb.phys_addr;
-    vdi_flush_ddr(core_idx,(unsigned long )(vdb.phys_addr+offset),len,1);
+    //vdi_flush_ddr(core_idx,(unsigned long )(vdb.phys_addr+offset),len,1);
     osal_memcpy(data, (const void *)((unsigned long)vdb.virt_addr+offset), len);
     swap_endian(core_idx, data, len,  endian);
 
@@ -1064,7 +1064,7 @@ int vdi_read_memory2(unsigned long core_idx, PhysicalAddress addr, unsigned char
         return -1;
 
     offset = addr - (unsigned long)vdb.phys_addr;
-    vdi_flush_ddr(core_idx,(unsigned long )(vdb.phys_addr+offset),len,1);
+    //vdi_flush_ddr(core_idx,(unsigned long )(vdb.phys_addr+offset),len,1);
     *ppdata = (unsigned char *)(vdb.virt_addr + offset);
     swap_endian(core_idx, *ppdata, len,  endian);
 

+ 0 - 4
wave511/code/vpuapi/vpuapi.c

@@ -1698,7 +1698,6 @@ RetCode VPU_DecClrDispFlag(DecHandle handle, int index)
     RetCode     ret         = RETCODE_SUCCESS;
     Int32       endIndex, SvacSvcFlag;
     VpuAttr*    pAttr       = NULL;
-    FrameBuffer* pBuffer    = NULL;
     BOOL        supportCommandQueue;
 
     ret = CheckDecInstanceValidity(handle);
@@ -1717,9 +1716,6 @@ RetCode VPU_DecClrDispFlag(DecHandle handle, int index)
         return RETCODE_INVALID_PARAM;
     }
 
-    pBuffer = &pDecInfo->frameBufPool[pDecInfo->numFbsForDecoding + index];
-    vdi_flush_ddr(pCodecInst->coreIdx, pBuffer->bufY, pBuffer->size, 1);
-
     supportCommandQueue = (pAttr->supportCommandQueue == TRUE);
     if (supportCommandQueue == TRUE) {
         EnterLock(pCodecInst->coreIdx);