cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

eodabash
Journeyman III

glTexSubImage2D crash with RGB texture in 13.12 drivers (regress from 13.9) on Radeon HD 7700

We're seeing a crash when uploading a large texture with format GL_RGB. It seems to require one of the dimensions to be larger than 5300 pixels or so. This wasn't occurring in the 13.9 drivers. Tested on Windows 8.1.

This code will reproduce the problem. I'm also linking to a complete VS 2012 project that demonstrates the crash.

Header 1
GLuint texture = 0;
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);

int const w = 5400;
int const h = 4400;

glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);

glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);

std::vector<unsigned char> data(w*h*3);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glPixelStorei(GL_PACK_ALIGNMENT, 1);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, &data[0]); // crash here

Link to project: https://dl.dropboxusercontent.com/u/69927239/texsubimage2d_crash.zip

0 Likes
6 Replies
eodabash
Journeyman III

Still crashing with the 14.1 Beta driver.

0 Likes

Still broken in 14.2 beta driver.

0 Likes

And in 14.3.

0 Likes
tim_evans
Journeyman III

I'm getting a similar crash myself. Large texture, GL_RGB format, but I'm passing the data in via glTexImage2D rather than glTexSubImage2D and it crashes in glDrawArrays when I use the texture. The internal format can be GL_RGB or GL_RGBA at least, and it still crashes, but change to GL_RGBA for the format and it works.

I can confirm that the 13.9 driver works fine. I haven't tested any beta drivers.

I'm using Windows 7 64-bit.

0 Likes
eodabash
Journeyman III

Still crashes in 14.6 beta.

0 Likes
eodabash
Journeyman III

and in 14.7 RC.

0 Likes