Skip to content

Commit

Permalink
[Media Common] [VP] Fix Surface Compression Type not Match with Alloc…
Browse files Browse the repository at this point in the history
…ation Parameter in Legacy Path

In legacy path, mos_graphicsresource_specific will not set Not Compressible flag to 1 when compressible is 0 in allocation params.
  • Loading branch information
peiyigu-intel authored and intel-mediadev committed Aug 4, 2023
1 parent 6532733 commit 2fcdd52
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion media_softlet/agnostic/common/vp/hal/bufferMgr/vp_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,23 @@ MOS_STATUS VpAllocator::ReAllocateSurface(

if (!surfInfoCheck(surface))
{
VP_PUBLIC_ASSERTMESSAGE("Incorrect surface parameters.");
VP_PUBLIC_ASSERTMESSAGE("Allocated surface is not matched with allocating parameter.");
VP_PUBLIC_ASSERTMESSAGE("Allocated surface : format %d, compressible %d, compressionMode %d, tileType %d, bufferWidth %d, bufferHeight %d, width %d, height %d",
surface->osSurface->Format,
surface->osSurface->bCompressible,
surface->osSurface->CompressionMode,
surface->osSurface->TileType,
surface->bufferWidth,
surface->bufferHeight,
surface->osSurface->dwWidth,
surface->osSurface->dwHeight);
VP_PUBLIC_ASSERTMESSAGE("Parameter to allocate : format %d, compressible %d, compressionMode %d, tileType %d, width %d, height %d",
format,
compressible,
compressionMode,
defaultTileType,
width,
height);
}

MT_LOG7(MT_VP_HAL_REALLOC_SURF, MT_NORMAL, MT_VP_HAL_INTER_SURF_TYPE, surfaceName ? *((int64_t*)surfaceName) : 0,
Expand Down

0 comments on commit 2fcdd52

Please sign in to comment.