fix 1d depth component 16 sizing in layout locations tests.
authorDave Airlie <airlied@redhat.com>
Fri, 24 Jul 2020 00:44:54 +0000 (10:44 +1000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 6 Aug 2020 08:28:16 +0000 (04:28 -0400)
VK-GL-CTS Issue: 2497

Components: OpenGL

Affects:
KHR-GL45.layout_location.*
KHR-GLES31.shaders.layout_location.*

Change-Id: I47534a0c5b66fadc847e8aeca4c5600cdb7fef8c

external/openglcts/modules/common/glcLayoutLocationTests.cpp

index dafeeef..9c71072 100644 (file)
@@ -293,7 +293,7 @@ ResultData create<GL_TEXTURE_1D, GL_RGBA8>(const Functions& gl)
 template <>
 ResultData create<GL_TEXTURE_1D, GL_DEPTH_COMPONENT16>(const Functions& gl)
 {
-       return createTexture1D<unsigned char>(gl, 1, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT);
+       return createTexture1D<unsigned short>(gl, 1, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT);
 }
 
 template <>