freedreno: multiple applications crash on a5xx
Since commit d233c8c9 many application crashes on Adreno 506 GPU, including glxgears (Xwayland), Xorg, glmark2. Proposed fix is to return 0 from fd_layout_resource_for_modifier for DRM_FORMAT_MOD_INVALID modifier, which is done for a6xx.
localhost:~$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
X connection to :0 broken (explicit kill or server shutdown).
localhost:~$ glmark2-wayland
=======================================================
glmark2 2020.04
=======================================================
OpenGL Information
GL_VENDOR: freedreno
GL_RENDERER: FD506
GL_VERSION: 3.1 Mesa 20.2.0-devel (git-82815bc980)
=======================================================
[build] use-vbo=false:[destroyed object]: error 7: importing the supplied dmabufs failed
FPS: 383 FrameTime: 2.611 ms
=======================================================
glmark2 Score: 383
=======================================================