PKGNAME=virglrenderer
PKGSEC=libs
PKGDEP="libdrm libepoxy mesa x11-lib"
PKGDES="Virtual 3D GPU library"
BUILDDEP="pyyaml"
ABTYPE=meson
PKGBREAK="qemu<=5.1.0"

# Note: -Dplatforms: Platforms support, set to auto to enable all.
MESON_AFTER=(
	"-Dplatforms=auto"
# FIXME:
#
# "Broken SPICE screen with minigbm_allocation enabled on my computer (AMD
# 7840HS with Radeon 780M).
#
# "This option is now deprecated in the main branch of virglrenderer
# (though not in the 1.2.0 release)."
#
# Link: https://github.com/AOSC-Dev/aosc-os-abbs/pull/13825#discussion_r2573308089
	"-Dminigbm_allocation=false"
	"-Dvenus=true"
	"-Dcheck-gl-errors=true"
	"-Ddrm-renderers=amdgpu-experimental,asahi,msm"
	"-Drender-server-worker=process"
	"-Dvideo=true"
	"-Dfuzzer=false"
	"-Dvalgrind=false"
	"-Dtracing=none"
)
