AMD: Support for 128-byte stride alignments on GFX9+
This is a continuation of this egl-wayland issue
So the drivers right now don't support 128-byte stride alignments (at least on GFX9+), which (heavily) impacts the usage of PRIME on AMD iGPU/NVIDIA dGPU laptops with Wayland (for example, osu!lazer straight up crashes because of its initial resolution of 1366x768 which its stride isn't aligned by either 128 or 256 but the NVIDIA driver does a 128 alignment which still doesn't work on AMD or Alacritty crashes when exiting maximized state because of the same stride problem)
Both Alacritty and osu!lazer have their strides magically aligned to 256 when running on the iGPU though (so maybe somewhere AMD drivers align that stride)
I wonder if the lack of the 128-byte stride alignment is because of some hardware limitation (so
software hacks would be needed to get that working)
I tried converting the stride alignment to 256 bytes but it failed miserably with the GPU driver
exploding (but I'm probably a bit of a donut so that's expected
The NVIDIA 525 driver is going to finally align the stride to 256 according to the issue above but I'm kinda tired of waiting for that (so that's why I'm posting this issue here; and no, the newly released 520 driver doesn't fix the issue)
I don't think I should specify the system specs here because this is more of a feature request, but I'll provide some footage of alacritty crashing: alacritty_prime_crash
PS: Feel free to move this issue into a more relevant place if you want