[ivb] GPU Hang When Accessing Third Texture Array in Shader
I have been working on a C++/OpenGL game that stores its detail textures in a large (64 RGBA textures, 1024x1024px) Texture Array. My game also has another Texture Array for decal data (4 RGBA textures, 4096x4096px). All of this has worked fine. Upon adding another Texture Array for normal data (64 RGB textures, 1024x1024px), I have been experiencing GPU hangs and crashes with the error message: "i965: Failed to submit batchbuffer: Input/output error." If I do not access this last array in the fragment shader, the game works just fine. However, as soon as I access it -- even just one texture from the array -- I get these issues.
This problem occurs on a Debian Bullseye (Testing) Thinkpad x230T with an Intel 4000 HD integrated graphics unit and Mesa 3D 20.0.7. This problem also occurred with Mesa 3D 18.3.6 on Debian Stretch. I have not yet tested on another system. I don't believe it is a memory problem as the textures should take less than half of what should be available to the integrated graphics.
Some other details: x86_64, kernel 5.6.0-2-amd64
Please let me know if any additional information is needed!