Skip to content

Commit

Permalink
Fix U plane Offset regression on Chromium OS (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmach authored Mar 25, 2021
1 parent 2f966e9 commit 60a7718
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions Source/GmmLib/Texture/GmmTextureAlloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,6 @@ bool GmmLib::GmmTextureCalc::ValidateTexInfo(GMM_TEXTURE_INFO * pTexInfo,
return false;
}

if(GmmIsPlanar(pTexInfo->Format))
{
if((!GmmIsReconstructableSurface(pTexInfo->Format)) && (pTexInfo->OffsetInfo.Plane.Y[GMM_PLANE_U] >= GMM_MAX_UV_PLANE_Y_OFFSET))
{
GMM_ASSERTDPF(0,
"GmmLib::GmmTextureCalc::ValidateTexInfo:Y offset of U plane"
"exceeds max HW U plane Y offset restriction.\r\n");
return false;
}
}

GMM_DPF_EXIT;
return true;
}
Expand Down
1 change: 0 additions & 1 deletion Source/GmmLib/inc/External/Common/GmmConst.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ OTHER DEALINGS IN THE SOFTWARE.
#define GMM_MEDIA_COMPRESSION_STATE_SIZE (64)
#define GMM_CLEAR_COLOR_FLOAT_SIZE (16)
#define GMM_MAX_LCU_SIZE 64 // Media Largest coding Unit
#define GMM_MAX_UV_PLANE_Y_OFFSET GMM_KBYTE(16) // RENDER_SURFACE_STATE structure only have 0:13 bit to write Y Offset for U or UV Plan(max value is <16384)

0 comments on commit 60a7718

Please sign in to comment.