Skip to content

Commit 811b651

Browse files
HeFan2017intel-mediadev
authored andcommitted
[CM] Change the read/write surface according to gmm's change
After tile page align changes from gmm, the alloc height also need to be align Change-Id: I49843097cdef7b214dbe3df96e6641c64c77575d (cherry picked from commit 4d247be)
1 parent 8d2469b commit 811b651

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

media_driver/agnostic/common/cm/cm_surface_2d_rt_base.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ CM_RT_API int32_t CmSurface2DRTBase::WriteSurfaceFullStride(
552552
{
553553
offsetn = offset1;
554554
// Limit the Gmm offset usage to after Gen11
555-
if ((platform <= IGFX_GEN11LP_CORE) || !inParam.useGmmOffset)
555+
if (!inParam.useGmmOffset)
556556
{
557557
offsetn = (planeHeight * pitch);
558558
}
@@ -571,7 +571,7 @@ CM_RT_API int32_t CmSurface2DRTBase::WriteSurfaceFullStride(
571571
{
572572
offsetn = offset2;
573573
// Limit the Gmm offset usage to after Gen11
574-
if ((platform <= IGFX_GEN11LP_CORE) || !inParam.useGmmOffset)
574+
if (!inParam.useGmmOffset)
575575
{
576576
offsetn = (planeHeight * pitch) + (UVHeight * UVpitch);
577577
}
@@ -872,7 +872,7 @@ CM_RT_API int32_t CmSurface2DRTBase::ReadSurfaceFullStride( unsigned char* sysMe
872872
{
873873
int offsetn = offset1;
874874
// Limit the Gmm offset usage to after Gen11
875-
if ((platform <= IGFX_GEN11LP_CORE) || !inParam.useGmmOffset)
875+
if (!inParam.useGmmOffset)
876876
{
877877
offsetn = planeHeight * pitch;
878878
}
@@ -891,7 +891,7 @@ CM_RT_API int32_t CmSurface2DRTBase::ReadSurfaceFullStride( unsigned char* sysMe
891891
{
892892
int offsetn = offset2;
893893
// Limit the Gmm offset usage to after Gen11
894-
if ((platform <= IGFX_GEN11LP_CORE) || !inParam.useGmmOffset)
894+
if (!inParam.useGmmOffset)
895895
{
896896
offsetn = (planeHeight * pitch) + (UVHeight * UVpitch);
897897
}

0 commit comments

Comments
 (0)