vblank_mode ignored from ~/.drirc
Submitted by Niklas Haas
Assigned to mes..@..op.org
Link to original bug (#102682)
Description
Various sources (e.g. IRC) have led me to believe that vblank_mode
should be a settable option via ~/.drirc; however, it doesn't seem like this is the case to me. A demonstration:
<driconf>
<device screen="0" driver="radeonsi">
<application name="Default">
</application>
</device>
</driconf>
I made this from the ~/.drirc skeleton created by driconf
. Curiously, the vblank_mode
setting was also absent from that skeleton, but I added it manually. (It's also absent from the GUI - although a friend of mine says he has the option in his driconf interface!) As expected, this option seems to have no effect - I still get vsync in all tested applications (e.g. glxgears).
I can override it manually by using the environment variable vblank_mode, e.g. vblank_mode=0 glxgears
. This does work, although it doesn't explain why this option is seemingly ignored from ~/.drirc. More worrying is the fact that the actual source code (dri3_set_swap_interval) uses configQuery("vblank_mode") to get this value, so it should pull it from both XML and the environment, right?
If this is not expected behavior, I can try stepping through the configQuery
function in gdb; but I thought I'd ask first in case this is a known or easily explained issue.
Mesa version is 17.2.0, kernel version is 4.12.4, device is a Sapphire RX 560.
Version: 17.2