lima: regression in plbu scissors cmd
There seems to be a regression in setting up scissors cmd since "b936b1f9 lima: fix viewport clipping". I hit this by attempting to run the retroarch frontend and browsing the menus. There is an apitrace attached. It happens at around frame 97. I didn't deeply investigate what sequence of scissors settings the application is using to trigger it, but by bisecting I found that commit.
To me the application freezes and triggers:
[94070.363115] lima d00c0000.gpu: gp error irq state=400000 status=b
[94070.363642] lima d00c0000.gpu: gp task error int_state=0 status=0
With this fix I tried, it doesn't crash anymore: enunes/mesa@19ac8d6a
Strangely by inspecting the trace running even on my intel gpu it triggers some glitch for 1 frame at the offending frame. So it might be also some application bug, but at least it shouldn't crash the gpu.
In case it is some application bug and undefined behavior we might need to come up with a different fix just to prevent invalid commands to the gpu. So I think it needs to be investigated more.