Bug 100876 - Variable GALLIUM_HUD_DUMP_DIR is not working with Wine LFS
Summary: Variable GALLIUM_HUD_DUMP_DIR is not working with Wine LFS
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: 17.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 20:47 UTC by Balázs Vinarz
Modified: 2018-03-27 06:30 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Balázs Vinarz 2017-04-28 20:47:26 UTC
Hello Devs,

I wanted to create some scripted/automated benchmark, but seems like the visible(correctly generated) data won't save into the dump files, however they were created.
I used the following command:
GALLIUM_HUD_DUMP_DIR="/media/ramdisk/" GALLIUM_HUD="fps,cpu" /usr/share/playonlinux/playonlinux --run "LFS"
The ownerships are fine glxgears were able to generate data, but it depends on the exitcode as I experienced.
I'm using rolling Arch with:
linux 4.10.11-1
mesa 17.0.4-2
wine-gaming-nine 2.3-1
xorg-server 1.19.3-2

It's working if I disable the Gallium nine in the settings.

Thank you
Comment 1 Edmondo Tommasina 2017-04-28 21:51:07 UTC
There is a patch in git master that maybe helps:

https://cgit.freedesktop.org/mesa/mesa/commit/?id=5589fd89e1337a03c947840b344f515cb1d3a96d

Just to be sure: Are you seeing empty fps and cpu files in /media/ramdisk/ or the files don't get created at all?
Comment 2 Balázs Vinarz 2017-04-29 05:58:20 UTC
Yes the files are exist, but there is no data.
Comment 3 Balázs Vinarz 2017-04-29 06:03:45 UTC
The current patch is sending the data line-by-line instead of sending the whole output at the exit. Right?
Maybe the exit status won't affect the data generation.
Comment 4 Edmondo Tommasina 2017-04-29 20:38:16 UTC
The original code in 17.0 should just flush the I/O buffer to the file when the buffer size reaches the default BUFSIZ value (8 KB on my machine) or when fclose is called. You usually have to wait longer to see something in the files. I'm not sure why with some applications the fclose doesn't get called on exit.

With the new patch the I/O buffer gets flushed after every printf with newline. This is probably the expected behavior and it doesn't seem to negatively impact the performance.

Release 17.1 is expected for end next week and the patch is included.
Comment 5 Edmondo Tommasina 2017-06-03 19:09:40 UTC
Hi Balázs

Did you have a chance to check mesa 17.1 if the problem is solved for you?

Thanks
edmondo
Comment 6 Balázs Vinarz 2018-03-27 06:30:06 UTC
Sorry for the late answer.
Yes, it's fine.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.