Hi, When building 20.4.1 on Chrome OS the following warnings are observed.
Source/GmmLib/ULT/GmmGen12dGPUResourceULT.cpp:2122:57: warning: result of comparison of constant 8 with expression of type 'TEST_BPP' (aka 'TEST_BPP_ENUM') is always true [-Wtautological-constant-out-of-range-compare]
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. Specification doesn't comment if Linear buffer compr allowed or not on bpp!=8.
~~~ ^ ~
Source/GmmLib/ULT/GmmGen12dGPUResourceULT.cpp:2167:57: warning: result of comparison of constant 8 with expression of type 'TEST_BPP' (aka 'TEST_BPP_ENUM') is always true [-Wtautological-constant-out-of-range-compare]
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. Specification doesn't comment if Linear buffer compr allowed or not on bpp!=8.
~~~ ^ ~
2 warnings generated.
Source/GmmLib/ULT/GmmGen12ResourceULT.cpp:2117:57: warning: result of comparison of constant 8 with expression of type 'TEST_BPP' (aka 'TEST_BPP_ENUM') is always true [-Wtautological-constant-out-of-range-compare]
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. doc doesn't comment if Linear buffer compr allowed or not on bpp!=8.
~~~ ^ ~
Source/GmmLib/ULT/GmmGen12ResourceULT.cpp:2162:57: warning: result of comparison of constant 8 with expression of type 'TEST_BPP' (aka 'TEST_BPP_ENUM') is always true [-Wtautological-constant-out-of-range-compare]
gmmParams.Flags.Info.AllowVirtualPadding = (bpp != 8); //OCL uses 8bpp buffers. document doesn't comment if Linear buffer compr allowed or not on bpp!=8.
~~~ ^ ~
2 warnings generated.
Fixture TestLinearCompressedResource is looping through TEST_BPP values (0, 1, 2, 3, 4). Comparing to 8 is outside of the available enum options.
Hi, When building 20.4.1 on Chrome OS the following warnings are observed.
Fixture TestLinearCompressedResource is looping through TEST_BPP values (0, 1, 2, 3, 4). Comparing to 8 is outside of the available enum options.