Hi Maxim
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
[...]
Toggle quote (9 lines)
>> AFAIU this issue is still present using mesa 23 since Guillaume Le
>> Vaillant had to use this workaround yesterday [1] and reported his
>> backtrace upstream [2]
>>
>> If I'm not wrong (i.e. vlc et al are now using mesa 23) this should also
>> be reported upstream (I can do it if needed).
>
> Which upstream are you thinking about?
Toggle quote (3 lines)
> My understanding is that this problem is a Mesa problem, and it's
> already reported there (the issue linked in [2]).
yes but the original bug report mentions Mesa 22.2.4 and M. Briar asked:
Toggle snippet (5 lines)
Mesa 22.2.x is already end-of-life and won't receive any fixes
anymore. Does this also happen on newer versions?
IMHO there is no clear answer to that question in the bug thread, maybe
mesa developers still think it's just 22.2.X related
Now we have Mesa 23.0.3 in Giux, probably the one used by vlc when
Guillaume reported his issue upstream (mesa) on June 15
Toggle quote (7 lines)
>> AFAIU the only thing we can do to fix this bug is to disable the shader
>> cache (MESA_SHADER_CACHE_DISABLE=true) until a proper fix is found
>> upstream.
>
> Disabling the shader cache sounds like a decent workaround or even
> definitive solution. One less stale cache to worry about...
oh yes! Unfortunately cache management is not so robust... sometimes :-(
Toggle quote (4 lines)
> If it's like the Qt shader cache, the performance hit is probably too
> small to be noticeable (maybe just slower startup times of complicated
> opengl applications such as games?).
I don't know the cost in term of performance, I'm not a 3D expert at
all; from what I read on the web about shader chaches I guess it's a
real problem almost only for games and I guess it's not a problem at
all for media players like vlc et al: I'm just brainstorming but what
about having a mesa-with-cache-enabled version just for the games, if it
is really needed?
I should be able to propose a patch to disable the mesa shader cache,
but since I'm not an expert in this field I prefer to leave this
decision (to disable the cache, I mean) to someone else
Toggle quote (5 lines)
>> ...or apply a patch to rename "~/.cache/mesa_shader_cache" to
>> "~/.cache/mesa<version>_shader_cache"
>
> That's another good idea.
I was just doing guesswork but the bug caused by this mesa upgrade
smells like a binary incompatibility between two versions (or just major
versions)... so a versioned shader cache makes sense to me
I'm not able to propose (I mean to code) such a patch, anyway
Anyway, users should know that they have to periodically clean unused
shader caches, since from what I read on the net the shader cache tends
to really /explode/ in terms of size, in some cases
Toggle quote (7 lines)
>> Alternatively, we should find a way to make Guix users aware of this
>> kind of problems and possible workarounds they can apply (it's not
>> related to this specific bug)
>
> I would rather pursue the other above options you suggest, so that it
> doesn't happen in the first place!
Toggle quote (2 lines)
> Thank you for sharing these ideas.
Thank you for your attention!
Happy hacking, Gio'
--
Giovanni Biscuolo
Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----
iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmSNh2kMHGdAeGVsZXJh
LmV1AAoJENN9DqfOzDkSZgYP/AkcCHyyPHY5DyGwk2LXAAZkfoWc/NFF0lwT8id/
BEEq3wgjum3q514KITRjTe6HbcLdPtawQuHk1z2SCrJUHXhiiraskHwgPoPt5Byt
ZJQHFfw1JYvl3+ZH+uNvwRga4o87d2VQ31nlEDc4y0yarv2i3RSsRJ/QJbs4k0Eb
OWAZ4bhGpVe0HdxRbIA9OdULN4veyQuvomhRMK3KG0ckUlMp5i1dR5gRmqKpaZl8
kJMEw1ZXmCZxEexvU82GwpFBEMHst9kkjj1uGu3EWEuoTONvWC5CEearxGWpCVR4
lVyBc9weYytopC/ZbGvaugqZmttkcnejirDZfnjYpGoV1reiCPEUA36KzwvShlB4
RnYm32Ljwfmtsc8OPdTHTkzfZHC7iUASLh7GfsioAJVDOUj9y8aw6kQw0EYS2ZJi
wS2p8+pvxbJDl6HwZCTnbsNGB3/+/xoJ3Y32A+qA/Srq/83dnc6MFRf8USFozcRl
M9cBgPPu+/gtadnpxahRjb8IxnGj2PJeOfyS9jgCeq+loCw+R3Sp1qr2DycxeEDH
DeAwGxwdmv5dTw5TX+AeAEowCScSGAdSAHgdk4eh45ePw5K50mNYPc7e4Pzzl5dF
0DqE627TeuQKOoj00Lex4dc+bK2913wIRKElAyTKV+SZAQ1NwX/3pgPtgOPlmfaF
RGk+
=w3Lq
-----END PGP SIGNATURE-----