Skip to content

Commit 50505ec

Browse files
authored
Fix ULT TEST_BPP Comparison in Chrome OS (#63)
1 parent 3d2209b commit 50505ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Source/GmmLib/ULT/GmmGen12ResourceULT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ TEST_F(CTestGen12Resource, TestLinearCompressedResource)
21142114
gmmParams.Format = SetResourceFormat(bpp);
21152115
gmmParams.BaseWidth64 = 0x1;
21162116
gmmParams.BaseHeight = 1;
2117-
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. doc doesn't comment if Linear buffer compr allowed or not on bpp!=8.
2117+
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != TEST_BPP_8); //OCL uses 8bpp buffers. doc doesn't comment if Linear buffer compr allowed or not on bpp!=8.
21182118

21192119
GMM_RESOURCE_INFO *ResourceInfo;
21202120
ResourceInfo = pGmmULTClientContext->CreateResInfoObject(&gmmParams);
@@ -2159,7 +2159,7 @@ TEST_F(CTestGen12Resource, TestLinearCompressedResource)
21592159
gmmParams.Format = SetResourceFormat(bpp);
21602160
gmmParams.BaseWidth64 = 0x1001;
21612161
gmmParams.BaseHeight = 1;
2162-
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. document doesn't comment if Linear buffer compr allowed or not on bpp!=8.
2162+
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != TEST_BPP_8); //OCL uses 8bpp buffers. document doesn't comment if Linear buffer compr allowed or not on bpp!=8.
21632163
gmmParams.Flags.Gpu.UnifiedAuxSurface = 1; //Turn off for separate aux creation
21642164
gmmParams.Flags.Gpu.CCS = 1;
21652165

Source/GmmLib/ULT/GmmGen12dGPUResourceULT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ TEST_F(CTestGen12dGPUResource, DISABLED_TestLinearCompressedResource)
20942094
gmmParams.Format = SetResourceFormat(bpp);
20952095
gmmParams.BaseWidth64 = 0x1;
20962096
gmmParams.BaseHeight = 1;
2097-
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. Specification doesn't comment if Linear buffer compr allowed or not on bpp!=8.
2097+
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != TEST_BPP_8); //OCL uses 8bpp buffers. Specification doesn't comment if Linear buffer compr allowed or not on bpp!=8.
20982098

20992099
GMM_RESOURCE_INFO *ResourceInfo;
21002100
ResourceInfo = pGmmULTClientContext->CreateResInfoObject(&gmmParams);
@@ -2139,7 +2139,7 @@ TEST_F(CTestGen12dGPUResource, DISABLED_TestLinearCompressedResource)
21392139
gmmParams.Format = SetResourceFormat(bpp);
21402140
gmmParams.BaseWidth64 = 0x1001;
21412141
gmmParams.BaseHeight = 1;
2142-
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. Specification doesn't comment if Linear buffer compr allowed or not on bpp!=8.
2142+
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != TEST_BPP_8); //OCL uses 8bpp buffers. Specification doesn't comment if Linear buffer compr allowed or not on bpp!=8.
21432143
gmmParams.Flags.Gpu.UnifiedAuxSurface = 1; //Turn off for separate aux creation
21442144
gmmParams.Flags.Gpu.CCS = 1;
21452145

0 commit comments

Comments
 (0)