panfrost: fix pandecode-related crashes
Pandecode doesn't deal with situations where more than one screen is created by a single process, and because of this, running with PAN_DBG_SYNC causes crashes on CI on tests such as piglit's ext_image_dma_buf_import
.
This MR, more specifically the last patch, addresses this issue by returning a "pandecode id" from pandecode_initialize
, which can be used to differentiate which screen is calling pandecode's API entrypoints.
It's not a pretty solution, so I'm open to suggestions.