From 60a77187c43ff23a0888b2f297ae5c93cc50a666 Mon Sep 17 00:00:00 2001 From: johnmach Date: Thu, 25 Mar 2021 17:24:40 +0530 Subject: [PATCH] Fix U plane Offset regression on Chromium OS (#38) --- Source/GmmLib/Texture/GmmTextureAlloc.cpp | 11 ----------- Source/GmmLib/inc/External/Common/GmmConst.h | 1 - 2 files changed, 12 deletions(-) diff --git a/Source/GmmLib/Texture/GmmTextureAlloc.cpp b/Source/GmmLib/Texture/GmmTextureAlloc.cpp index 2e3e1288..481a8edb 100644 --- a/Source/GmmLib/Texture/GmmTextureAlloc.cpp +++ b/Source/GmmLib/Texture/GmmTextureAlloc.cpp @@ -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; } diff --git a/Source/GmmLib/inc/External/Common/GmmConst.h b/Source/GmmLib/inc/External/Common/GmmConst.h index 49ede766..d69f867f 100644 --- a/Source/GmmLib/inc/External/Common/GmmConst.h +++ b/Source/GmmLib/inc/External/Common/GmmConst.h @@ -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)