iris: Failed to submit batchbuffer: Invalid argument error with DRI 3
I've ran into this issue on iris: #4837 (comment 940524)
@shadeslayer saw a similar problem too when he ran a different piglit test with valgrind: https://paste.ubuntu.com/p/7jgGpjggyb/
The piglit branch I use to check the problem is the following (the test is using the EXT_external_objects
extension and requires Vulkan):
https://gitlab.freedesktop.org/hikiko/piglit/-/tree/wip/gallium-sync-problem
If you increase the framebuffer size by changing the piglit window width and height in config at the top it might be easier to reproduce it.
When I force DRI2 using the mesa environment variables I see the error less often and I can always restart the test on BDW. But with DRI3 I can't re-run the test after having seen the bug once: I am going to see the same error again and again. I suspect that there are 2 problems to fix: the invalid argument we have in the batchbuffer, and the DRI3 bug that is triggered by it.
I think that the invalid argument error appeared after the fences backend optimization when we started seeing this bug: !8861 (merged) but I am not entirely sure.
@ngcortes and maybe @tpalli you might be interested in this issue too.