From 0d65e6900073591c8fa1956a6d2c445f79c9be1f Mon Sep 17 00:00:00 2001 From: John Machado Date: Fri, 31 May 2024 15:41:48 +0530 Subject: [PATCH] =?UTF-8?q?Revert=20"Failing=20the=20resource=20allocation?= =?UTF-8?q?=20if=20the=20U=20plane=20offset=20exceeds=20the=20HW=20?= =?UTF-8?q?=E2=80=A6"=20(#199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 6b6f525..6184032 100644 --- a/Source/GmmLib/Texture/GmmTextureAlloc.cpp +++ b/Source/GmmLib/Texture/GmmTextureAlloc.cpp @@ -349,17 +349,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 f426722..8ae77e3 100644 --- a/Source/GmmLib/inc/External/Common/GmmConst.h +++ b/Source/GmmLib/inc/External/Common/GmmConst.h @@ -54,4 +54,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 limits to write Y Offset for U or UV Plane so that max value is < 16384