Revert "Failing the resource allocation if the U plane offset exceeds the HW …" (#199)

This commit is contained in:
John Machado 2024-05-31 15:41:48 +05:30 committed by GitHub
parent 40348e9a75
commit 0d65e69000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View File

@ -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;
}

View File

@ -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