Remove incomplete integer texture gather tests.
authorMika Isojärvi <misojarvi@google.com>
Tue, 17 Mar 2015 00:24:42 +0000 (17:24 -0700)
committerMika Isojärvi <misojarvi@google.com>
Wed, 18 Mar 2015 21:46:22 +0000 (14:46 -0700)
Sampling floating point values from incomplete texture always produces
(0, 0, 0, 1), but sampling integer or unsigned integer values return
undefined values.

Bug: 19733810
Change-Id: I32e8c6dcdc9ed7fd0a875857174d91fc605d958a

modules/gles31/functional/es31fTextureGatherTests.cpp

index 42316ac..f5a5540 100644 (file)
@@ -2267,7 +2267,9 @@ void TextureGatherTests::init (void)
                                                        }
                                                }
 
-                                               if (!isDepthFormat(format)) // What shadow textures should return for incomplete textures is unclear.
+                                               // What shadow textures should return for incomplete textures is unclear.
+                                               // Integer and unsigned integer lookups from incomplete textures return undefined values.
+                                               if (!isDepthFormat(format) && !isSIntFormatType(format.type) && !isUIntFormatType(format.type))
                                                {
                                                        TestCaseGroup* const incompleteGroup = new TestCaseGroup(m_context, "incomplete", "Test that textureGather* takes components from (0,0,0,1) for incomplete textures");
                                                        formatGroup->addChild(incompleteGroup);