PDA

View Full Version : [AMD11.12] TexStorage -> INVALID_OPERATION



_blitz
01-15-2012, 09:00 AM
TexStorage generates INVALID_OPERATION errors for (it seems) any internalformat of integer type.

Code can be downloaded here (https://github.com/jdupuy/texStorage/zipball/master) (gmake and vs2010 projects are provided).

Input

for(i=0; i<iterationCnt; ++i)
{
glGenTextures(1, &amp;texture);
glBindTexture(GL_TEXTURE_1D, texture);
glTexStorage1D(GL_TEXTURE_1D,
1,
internalFormats[i],
1);
glBindTexture(GL_TEXTURE_1D, 0);
glDeleteTextures(1, &amp;texture);
}
Output

[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R8I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R8UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R16I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R16UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R32I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R32UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG8I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG8UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG16I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG16UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG32I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG32UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB8I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB8UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB16I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB16UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB32I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB32UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB10_A2UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA8I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA8UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA16I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA16UI)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA32I)
[DEBUG_OUTPUT] glTexStorage1D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA32UI)

[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R8I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R8UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R16I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R16UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R32I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R32UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG8I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG8UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG16I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG16UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG32I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG32UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB8I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB8UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB16I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB16UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB32I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB32UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB10_A2UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA8I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA8UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA16I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA16UI)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA32I)
[DEBUG_OUTPUT] glTexStorage2D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA32UI)

[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R8I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R8UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R16I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R16UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R32I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_R32UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG8I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG8UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG16I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG16UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG32I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RG32UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB8I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB8UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB16I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB16UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB32I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB32UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGB10_A2UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA8I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA8UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA16I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA16UI)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA32I)
[DEBUG_OUTPUT] glTexStorage3D has generated an error (GL_INVALID_OPERATION) (internalformat= GL_RGBA32UI)

Hongwei Li
01-16-2012, 06:47 PM
I am convinced that it is a driver bug after I look into the driver code. We'll fix it soon. Thanks for pointing it out.

_blitz
01-26-2012, 01:14 PM
Issue remains with Catalyst 12.1

KlemensBaum
08-12-2012, 04:23 PM
Still present in 12.6