radeonsi: Hang on RX 5500 XT on latest mesa git
System information
- OS: Arch Linux
- GPU: [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1002:7340] (rev c5)
- Kernel version: 5.18.1
- Mesa version: Mesa 22.2.0-devel (git-9eb40f57)
- Xserver version: 1.21.1.3
- Desktop manager and compositor: KDE Plasma and KWin
Describe the issue
I am trying to run an OpenGL application that I made and when I run it first the display freezes for couple of seconds, and then goes completely black and then back on (the gpu resets).
It happens on the line
glDrawElements(GL_TRIANGLES, sizeof(indices) / sizeof(float) / 3, GL_UNSIGNED_INT, indices);
Regression
I don't remember this happening before (not sure though), but I don't know the exact Mesa version.
Log files as attachment
Screenshots/video files (if applicable)
Any extra information would be greatly appreciated
Source file compiled with clang++ test.cpp -lglfw -lGL -o test
I also tried the same program with the proper index count passed to glDrawElements but still the same crash happens. test.cpp