radeonsi: really support eglExportDMABUFImageQueryMESA
For #11629
Test with:
- https://github.com/yuq/gfx/tree/master/base/opengl-dma-buf
- https://github.com/yuq/gfx/tree/master/vulkan/modifier-compute
- https://github.com/yuq/gfx/tree/master/vulkan/modifier-render
radeonsi exported texture can't always be used by RADV compute, for example, when GFX8 and GFX9, texture enables DCC, but RADV does not support compute DCC. But RADV gfx pipeline support all textures. This expose the missing API for OpenGL to select modifiers for texture.
"ac/surface: fix radv import dmabuf from radeonsi" fixes RADV import texture as VK_IMAGE_TILING_OPTIMAL
. So older GPU generation can use this workaround. Can be tested by de-comment #define USE_OPTIMAL 1
in the test code.
I haven't seen the case needing to add more modifiers to supported modifier list except gfx12 which need 256K_2D. We may add them later when need.
Depends on: !31657