[Mesa-dev] [Bug 102564] swr: GPU Caps Viewer crashes with any 3D demo

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 12 08:23:45 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102564

--- Comment #4 from Alex Granni <liviuprodea at yahoo.com> ---
Sorry, I didn't mention that GPU Caps Viewer is 32-bit even if running on
64-bit Windows so it goes in \windows\syswow64 on a 64-bit Windows. The way I
get it to use Mesa is by copying or rather create symlinks to Mesa DLLs in the
folder where GPU Caps Viewer resides; there is no DLL hijacking mitigation in
place. I create symlinks instead of copying to save storage and to update Mesa
from a centralized location, but you can do it as you want.

Also I have an advice for you. Dropping Mesa3D DLLs in system32 is short lived.
Only Windows 7 still allows this. Starting with Windows 8, Microsoft enlisted
TrustedInstaller to have ownership over system files. Changing permissions of
system files is bad idea if not impossible in Normal boot mode. However there
is a way to apply Mesa3D system-wide even on Windows 8 and 10 in Normal mode,
by hijacking the OpenGL ICD of the main GPU. Windows stores the filenames of
all OpenGL ICDs in registry in
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control under various keys
which contain values named OpenGLDriverName for 64-bit ICDs and
OpenGLDriverNameWow for 32-bit ICDs. The data of these values point to the
OpenGL ICDs filenames.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170912/a89c8757/attachment-0001.html>


More information about the mesa-dev mailing list