Fixes cubic filtering rgb9e5 tests
authorMatthew Netsch <quic_mnetsch@quicinc.com>
Wed, 3 Feb 2021 22:28:29 +0000 (17:28 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 18 Feb 2021 16:33:25 +0000 (16:33 +0000)
Test was causing overflows

Components: Framework
VK-GL-CTS Issue: 2771

Affects:
*

Change-Id: I3367d18dab3207442d93adb757db24c16543f6d8

framework/common/tcuTextureUtil.cpp

index 93b1dc3..aa0711e 100644 (file)
@@ -398,7 +398,7 @@ static Vec2 getFloatChannelValueRange (TextureFormat::ChannelType channelType)
                case TextureFormat::FLOAT:                                                      cMin = -1e5f;                   cMax = 1e5f;                    break;
                case TextureFormat::FLOAT64:                                            cMin = -1e5f;                   cMax = 1e5f;                    break;
                case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV:       cMin = 0.0f;                    cMax = 1e4f;                    break;
-               case TextureFormat::UNSIGNED_INT_999_E5_REV:            cMin = 0.0f;                    cMax = 1e5f;                    break;
+               case TextureFormat::UNSIGNED_INT_999_E5_REV:            cMin = 0.0f;                    cMax = 0.5e5f;                  break;
                case TextureFormat::UNSIGNED_BYTE_44:                           cMin = 0.0f;                    cMax = 15.f;                    break;
                case TextureFormat::UNSIGNED_SHORT_4444:                        cMin = 0.0f;                    cMax = 15.f;                    break;
                case TextureFormat::USCALED_INT8:                                       cMin = 0.0f;                    cMax = 255.0f;                  break;