X-Plane 11.50+ RADV: Mipmapping(?) issue with OpenGL plugins
System information
- OS: Arch Linux
- GPU: AMD 5700XT
- Kernel version: 5.9.10-arch1-1
- Mesa version: 21.0-devel (commit b3504f41; also occurs with 20.3-rc2, commit 40e3de32), RADV Vulkan backend
- Xserver version (if applicable): 1.20.9
- Desktop manager and compositor: KDE Plasma 5.20.3, kwin
Describe the issue
When using Vulkan as a rendering backend in X-Plane 11.50+, the visual output of some plugins is not rendered. This issue does not occur when using OpenGL.
The issue can be seen most prominently with the (open source) Avitab plugin, which does not draw anything in Vulkan mode, although it also occurs with some flight deck displays.
Example 1
This is a freeware Ryan Navion with Avitab support in Vulkan mode:
The exact same situation in OpenGL mode:
Example 2
In the payware ToLiss A321 v1.1, the issue also prevents the flight deck displays from drawing:
In OpenGL mode, everything is nominal (see also the darkl green self-test message on the cockpit display):
Reproduction:
- Download and install the X-Plane demo from the official site (requires around 10 GB of free disk space)
- If not pulling the 11.50, you might need to update the demo by running the installer again, checking the "Check for new betas..." box
- X-Plane can be directly launched in Vulkan mode from the terminal with the "--vulkan" switch. It might be worth running it once to check if everything is in order. Make sure to quit XP before going on.
- Get Avitab 0.3.21 and move the unzipped "AviTab" folder into "/X-Plane 11/Resources/plugins". The resulting path to the plugin file should be "/X-Plane 11/Resources/plugins/AviTab/lin_x64/AviTab.xpl".
- To have a freeware use case, download (requires a free account) and install the Ryan Navion or AviTab mod for the default Cessna 172SP
- Start X-Plane in Vulkan mode, start a flight at Seattle (KSEA) (one of the demo areas) and see that Avitab is not drawing correctly. Switch to OpenGL mode, restart X-Plane and see thast AviTab is now drawn correctly.
Debug attempts
Running X-Plane from a console with the above add-on configuration yields the following driver-related error message:
amdgpu: invalid mipmapped texture import, metadata has last_level = 11, the caller set 0
This message is printed with each addon-aircraft using AviTab or a custom display rendering system.
I've already built a debug version of 21.0-devel (with options=(debug !strip)
and -D buildtype=debugoptimized \
) so I can provide more information if required.