Skip to content

Commit 0d65e69

Browse files
authored
Revert "Failing the resource allocation if the U plane offset exceeds the HW …" (#199)
1 parent 40348e9 commit 0d65e69

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Source/GmmLib/Texture/GmmTextureAlloc.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,6 @@ bool GmmLib::GmmTextureCalc::ValidateTexInfo(GMM_TEXTURE_INFO * pTexInfo,
349349
return false;
350350
}
351351

352-
if(GmmIsPlanar(pTexInfo->Format))
353-
{
354-
if((!GmmIsReconstructableSurface(pTexInfo->Format)) && (pTexInfo->OffsetInfo.Plane.Y[GMM_PLANE_U] >= GMM_MAX_UV_PLANE_Y_OFFSET))
355-
{
356-
GMM_ASSERTDPF(0,
357-
"GmmLib::GmmTextureCalc::ValidateTexInfo:Y offset of U plane"
358-
"exceeds max HW U plane Y offset restriction.\r\n");
359-
return false;
360-
}
361-
}
362-
363352
GMM_DPF_EXIT;
364353
return true;
365354
}

Source/GmmLib/inc/External/Common/GmmConst.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ OTHER DEALINGS IN THE SOFTWARE.
5454
#define GMM_MEDIA_COMPRESSION_STATE_SIZE (64)
5555
#define GMM_CLEAR_COLOR_FLOAT_SIZE (16)
5656
#define GMM_MAX_LCU_SIZE 64 // Media Largest coding Unit
57-
#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

0 commit comments

Comments
 (0)