DirectStateAccessTexturesTests: fix for textures_subimage_errors
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 23 Feb 2017 12:15:17 +0000 (13:15 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 24 Mar 2017 17:33:22 +0000 (13:33 -0400)
commit03f2341bb9faf62374fe6fcff26c272d0def6a3a
tree551db379f070e12d98b41d47bad9654cee8d3f7d
parent5a21f8b48cc270798b3b072f645ead0a0da4be0e
DirectStateAccessTexturesTests: fix for textures_subimage_errors

One of the subtests for compressed textures 1D, 2D and 3D are
checking the following error from spec:

  "An INVALID_OPERATION error is generated if format does not match
   the internal format of the texture image being modified, since
   these commands do not provide for image format conversion."

In order to do that it used a not-matching format. But the problem is
that it didn't change the image size, so a different error (checked
later on the test) was generated.

This commit solves the problem by asking to the driver the size for
the not-matching format, in the same way that the size is asked for
the reference formats.

Affects:
GL45-CTS.direct_state_access.textures_subimage_errors

Components: OpenGL

VK-GL-CTS issue: 188

Change-Id: If0f17437dd8767d22389770068cde55dd36e2602
external/openglcts/modules/gl/gl4cDirectStateAccessTests.hpp
external/openglcts/modules/gl/gl4cDirectStateAccessTexturesTests.cpp