Skip to content

Commit 6ea2f1d

Browse files
authored
Add new media compression mode to fix assertion (#224)
1 parent b94abb5 commit 6ea2f1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ namespace GmmLib
715715
/////////////////////////////////////////////////////////////////////////////////////
716716
GMM_INLINE_VIRTUAL GMM_INLINE_EXPORTED void GMM_STDCALL SetMmcMode(GMM_RESOURCE_MMC_INFO Mode, uint32_t ArrayIndex)
717717
{
718-
__GMM_ASSERT((Mode == GMM_MMC_DISABLED) || (Mode == GMM_MMC_HORIZONTAL) || (Mode == GMM_MMC_VERTICAL));
718+
__GMM_ASSERT((Mode == GMM_MMC_DISABLED) || (Mode == GMM_MMC_HORIZONTAL) || (Mode == GMM_MMC_VERTICAL) || (Mode == GMM_MMC_MC) || (Mode == GMM_MMC_RC));
719719

720720
__GMM_ASSERT(ArrayIndex < GMM_MAX_MMC_INDEX);
721721

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ typedef enum GMM_RESOURCE_MMC_INFO_REC
5959
GMM_MMC_DISABLED = 0,
6060
GMM_MMC_HORIZONTAL,
6161
GMM_MMC_VERTICAL,
62+
GMM_MMC_MC,
63+
GMM_MMC_RC
6264
}GMM_RESOURCE_MMC_INFO;
6365

6466
//===========================================================================

0 commit comments

Comments
 (0)