Fix uninitialized ExpectedQpitch Warning (#28)

This commit is contained in:
johnmach 2021-03-08 11:09:02 +05:30 committed by GitHub
parent aae48c9ca0
commit 78d91e81e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -2286,7 +2286,7 @@ TEST_F(CTestGen12Resource, DISABLED_TestDepthCompressedResource)
VerifyResourcePitch<true>(ResourceInfo, ExpectedPitch);
VerifyResourcePitchInTiles<true>(ResourceInfo, 4); // 2 tileY wide
uint32_t ExpectedQPitch;
uint32_t ExpectedQPitch = 0;
if(gmmParams.ArraySize > 1 || gmmParams.Type == RESOURCE_CUBE)
{
ExpectedQPitch = GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign);
@ -2324,7 +2324,7 @@ TEST_F(CTestGen12Resource, DISABLED_TestDepthCompressedResource)
VerifyResourcePitch<true>(ResourceInfo, ExpectedPitch);
VerifyResourcePitchInTiles<true>(ResourceInfo, 4); // 2 tile wide
uint32_t TwoDQPitch, ExpectedQPitch;
uint32_t TwoDQPitch, ExpectedQPitch = 0;
if(gmmParams.Type == RESOURCE_3D)
{
TwoDQPitch = GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign);

View File

@ -2291,7 +2291,7 @@ TEST_F(CTestGen12dGPUResource, DISABLED_TestDepthCompressedResource)
VerifyResourcePitch<true>(ResourceInfo, ExpectedPitch);
VerifyResourcePitchInTiles<true>(ResourceInfo, 4); // 2 tileY wide
uint32_t ExpectedQPitch;
uint32_t ExpectedQPitch = 0;
if(gmmParams.ArraySize > 1 || gmmParams.Type == RESOURCE_CUBE)
{
ExpectedQPitch = GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign);
@ -2329,7 +2329,7 @@ TEST_F(CTestGen12dGPUResource, DISABLED_TestDepthCompressedResource)
VerifyResourcePitch<true>(ResourceInfo, ExpectedPitch);
VerifyResourcePitchInTiles<true>(ResourceInfo, 4); // 2 tile wide
uint32_t TwoDQPitch, ExpectedQPitch;
uint32_t TwoDQPitch, ExpectedQPitch = 0;
if(gmmParams.Type == RESOURCE_3D)
{
TwoDQPitch = GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign);

View File

@ -2448,7 +2448,7 @@ TEST_F(CTestResource, TestSeparateStencil)
VerifyResourcePitch<true>(ResourceInfo, ExpectedPitch);
VerifyResourcePitchInTiles<true>(ResourceInfo, 2); // 2 tiles wide
uint32_t ExpectedQPitch;
uint32_t ExpectedQPitch = 0;
if(gmmParams.ArraySize > 1 || gmmParams.Type == RESOURCE_CUBE)
{
ExpectedQPitch = GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign); //Interleaved rows for TileW-arrangement - but Qpitch calculated w/o interleaving in mind. No Qpitch for 3d, only for 2d-array and cube on Gen8
@ -2504,7 +2504,7 @@ TEST_F(CTestResource, TestSeparateStencil)
VerifyResourcePitch<true>(ResourceInfo, ExpectedPitch);
VerifyResourcePitchInTiles<true>(ResourceInfo, 2); // 2 tile wide
uint32_t TwoDQPitch, ExpectedQPitch;
uint32_t TwoDQPitch, ExpectedQPitch = 0;
{
TwoDQPitch = GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign); //Interleaved rows for TileW-arrangement - but Qpitch calculated w/o interleaving in mind. No Qpitch for 3d, only for 2d-array and cube on Gen8
//GMM_ULT_ALIGN(GMM_ULT_ALIGN(gmmParams.BaseHeight, VAlign)/2, VAlign); //Doesn't HW expect distance in rows between 2 cube-faces (array slices) : It does so, but in logical view not physical view, so not interleaved rows.