stal/IX is a statically linked Linux distribution, so the 3D drivers are also compiled statically.
The driver that the application is built with depends on the mesa_driver variable.
It can be installed on realm:
user# ix mut --mesa_driver=radeonsi
Then all applications built in this realm via ix mut/ix let will use the selected driver.
Or for a standalone application:
user# ix build bin/gnome/text/editor --mesa_driver=anv
How to get a list of available drivers:
user# ix tool listall | grep mesa | grep drivers/
lib/mesa/drivers/anv
lib/mesa/drivers/iris
lib/mesa/drivers/llvm
lib/mesa/drivers/nouveau
lib/mesa/drivers/opengl
lib/mesa/drivers/radeonsi
lib/mesa/drivers/radv
lib/mesa/drivers/soft
lib/mesa/drivers/valve
lib/mesa/drivers/vulkan
Rule of thumb - if the name is the name of the vulkan driver from mesa, then Zink will be selected as the opengl driver - https://docs.mesa3d.org/drivers/zink.html.
So to use zink + vulkan amd radv driver run:
user# ix mut --mesa_driver=radv
If zink + vulkan bunch works for you, then it is preferable, because the ACO shader compiler is significantly smaller in size than the LLVM option.
export WLR_RENDERER=vulkan # for wlroots-based composers
export MESA_LOADER_DRIVER_OVERRIDE=zink