DSA texture storage/subimage tests sample from incomplete textures
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jun 2017 09:04:18 +0000 (11:04 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sat, 1 Jul 2017 10:33:18 +0000 (06:33 -0400)
These tests upload data to a texture that is then sampled
from a shader but the test never setup sampling filters
for the texture, leaving it incomplete.

Components: OpenGL
VK-GL-CTS issue: 493

Affects:
KHR-GL45.direct_state_access.textures_storage_and_subimage

Change-Id: I1bb10af3f3760ffe7f45f9731b40abb2f3aef223

external/openglcts/modules/gl/gl4cDirectStateAccessTexturesTests.cpp

index 039f906..3030b8d 100644 (file)
@@ -2197,6 +2197,8 @@ bool StorageAndSubImageTest::CreateTexture()
                                                                  TestReferenceDataHeight<D>(), TestReferenceDataDepth<D>(), Format<S, N>(), Type<T>(),
                                                                  ReferenceData<T, N>()))
                {
+                       glTexParameteri(TextureTarget<D>(), GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+                       glTexParameteri(TextureTarget<D>(), GL_TEXTURE_MAG_FILTER, GL_NEAREST);
                        return true;
                }
        }