graphics/mesa-dri: exclude buffer age on iris under kwin

Freeze in OpenGL initialization detected

PR:		251836
Reported by:	Roman, Oleg Nauman, arrowd, Oleksandr Kryvulia
Tested by:	arrowd, Roman
Approved by:	manu
This commit is contained in:
Jan Beich 2020-12-24 04:22:33 +00:00
parent aea654ab57
commit 0b0b8b94d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=559047
3 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= mesa-dri
PORTVERSION= ${MESAVERSION}
PORTREVISION= 1
CATEGORIES= graphics
COMMENT= OpenGL hardware acceleration drivers for DRI2+
@ -112,5 +113,7 @@ PLIST_SUB+= ${_vd}_VDRIVER="@comment "
post-install:
@${RM} -r ${STAGEDIR}/etc/OpenCL
${INSTALL_DATA} ${FILESDIR}/01-freebsd.conf \
${STAGEDIR}${PREFIX}/share/drirc.d
.include <bsd.port.post.mk>

View File

@ -0,0 +1,10 @@
<driconf>
<device driver="iris">
<application name="kwin_x11" executable="kwin_x11">
<!-- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251836 -->
<option name="glx_extension_override" value="-GLX_EXT_buffer_age" />
<!-- https://gitlab.freedesktop.org/mesa/mesa/-/commit/580fbbb59a60 -->
<option name="glx_disable_ext_buffer_age" value="true" />
</application>
</device>
</driconf>

View File

@ -33,5 +33,6 @@ include/GL/internal/dri_interface.h
libdata/pkgconfig/dri.pc
@comment libdata/pkgconfig/gbm.pc
share/drirc.d/00-mesa-defaults.conf
share/drirc.d/01-freebsd.conf
%%INTEL_VDRIVER%%share/vulkan/icd.d/intel_icd.%%ARCH%%.json
%%AMD_VDRIVER%%share/vulkan/icd.d/radeon_icd.%%ARCH%%.json