Skip to content

Commit

Permalink
[VP] Fix 4K monitor failed to run videowall 4k on multi channel
Browse files Browse the repository at this point in the history
Enlarge max patched/kernel/csc matrix number to fix 4k multi channel issue.
  • Loading branch information
VincentCheungKokomo authored and intel-mediadev committed Apr 2, 2024
1 parent 4ca4d13 commit 969c0c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions media_common/agnostic/common/vp/kdll/hal_kerneldll_next.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@

#define DL_MAX_SEARCH_FILTER_SIZE 10 // max number of entries to describe a compositing filter

#define DL_MAX_KERNELS 150 // Max component kernels to combine
#define DL_MAX_KERNELS 256 // Max component kernels to combine
#define DL_MAX_PATCH_DATA_SIZE 64 // Max size of a patch block
#define DL_MAX_PATCH_BLOCKS 8 // Max number of blocks to patch per patch data
#define DL_MAX_PATCHES 4 // Max patches to use
#define DL_MAX_PATCHES 8 // Max patches to use
#define DL_MAX_EXPORT_COUNT 64 // size of the symbol export table

#define DL_MAX_COMBINED_KERNELS 64 // Max number of kernels in cache
#define DL_MAX_SYMBOLS 100 // max number of import/export symbols in a combined kernels
#define DL_MAX_KERNEL_SIZE (140 * 1024) // max output kernel size

#define DL_CSC_MAX 6 // 6 CSC matrices max
#define DL_CSC_MAX 8 // 8 CSC matrices max
#define DL_MAX_SEARCH_NODES_PER_KERNEL 6 // max number of search nodes for a component kernel (max tree depth)
#define DL_MAX_COMPONENT_KERNELS 25 // max number of component kernels that can be combined

Expand Down
6 changes: 4 additions & 2 deletions media_softlet/agnostic/common/vp/kdll/hal_kerneldll_next.c
Original file line number Diff line number Diff line change
Expand Up @@ -2594,6 +2594,7 @@ bool KernelDll_SetupCSC(
// Exceeded number of CSC matrices allowed
if (matrix_count == DL_CSC_MAX)
{
VP_RENDER_ASSERTMESSAGE("CSC matrix count %d exceeded number of CSC matrices allowed!", matrix_count);
return false;
}

Expand Down Expand Up @@ -2689,7 +2690,8 @@ static uint8_t *KernelDll_GetPatchData(
}
else
{
VP_RENDER_NORMALMESSAGE("Patch CSC coefficient exceed limitation");
VP_RENDER_ASSERTMESSAGE("Patch CSC coefficient number %d exceed limitation %d!", pSearchState->CscParams.PatchMatrixNum, DL_CSC_MAX);
return nullptr;
}
}

Expand All @@ -2698,7 +2700,7 @@ static uint8_t *KernelDll_GetPatchData(
}
else
{
VP_RENDER_NORMALMESSAGE("Invalid patch kind %d.", iPatchKind);
VP_RENDER_ASSERTMESSAGE("Invalid patch kind %d.", iPatchKind);
}

return nullptr;
Expand Down

0 comments on commit 969c0c4

Please sign in to comment.