Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MESA Gallium driver crashes on Windows 10RT (15035) #12

Open
treeswift opened this issue Dec 13, 2021 · 23 comments
Open

MESA Gallium driver crashes on Windows 10RT (15035) #12

treeswift opened this issue Dec 13, 2021 · 23 comments

Comments

@treeswift
Copy link

MESA (libgallium_wgl) crashes on Windows 10RT (15035).
Forking into separate issue to collect logs/dumps here.

Originally posted by @pahaze in #11 (comment)

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

Cool, how can I help debugging here? I don't know how to create debug files with Clang.

@treeswift
Copy link
Author

I'd say,

set LIBGL_DEBUG=verbose
set D3D12_DEBUG=verbose

and collect stdout/stderr. Should be good enough for now. Once I rebuild the dependency tree all the way down (just merged downstream from master), I'll take a look.

To generate full debug info w/CLang, pass -O0 -g and don't strip. I haven't yet looked into the binary layout produced by MinGW, but it might as well keep the debug info in the .exe/.dll themselves without spitting PDBs. Vaguely recall that it's possible.

@treeswift
Copy link
Author

Also dxdiag.exe and capture the output.

@treeswift
Copy link
Author

Full MESA envvar forest: https://docs.mesa3d.org/envvars.html

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

Alright, let me turn on my Surface really quickly to get a snap of it, I'm in Windows on my desktop right now so things are a bit slower.

@treeswift
Copy link
Author

No hurry at all, just didn't want to block anything important with this regression myself.
This https://docs.mesa3d.org/drivers/d3d12.html is a new Gallium adapter contributed by MSFT guys, I was planning to iron it out sooner than later, but focused on Qt and related things.

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

Ah, makes sense. By the way, I think I already found the issue with the Surface. It only has FL 9_1 (should have 9_3/11_1/11_3 on the Surface 2 (what I have) AFAIK, but wasn't enabled by drivers?). I'll still attach the screenshots though. Sorry for the full screen size screenshots, don't have an external mouse/keyboard plugged in and the Type Cover's mousepad sucks.

Screenshot (41)

Screenshot (42)

@treeswift
Copy link
Author

yep
https://docs.microsoft.com/en-us/windows/win32/direct3d11/overviews-direct3d-11-devices-downlevel-intro?redirectedfrom=MSDN
suggests a possible driver issue. Wondering if cloning a driver from 8.1RT might solve it?

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

Well... Thing is, that IS the cloned driver from RT8.1 😂

@treeswift
Copy link
Author

Ack.

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

I would say it's interesting how ANGLE still works, but at the same time... GLES2 only needs DX9 sooo... 🤷‍♂️

@treeswift
Copy link
Author

The d3d12 adapter was intended for full D3D12, that's why the plan to backport it.

@treeswift
Copy link
Author

Got to qtbase. Going to be slooooow...
Screenshot 2021-12-13 144311 - Qt

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

You're not using more than one job? 🤔

@treeswift
Copy link
Author

I am sending -j (implicit scaling) everywhere, right now all my 4 cores are busy. (100%=4 cores, 25%=1 core on the screenshot)
Screenshot 2021-12-13 145008 - cores

@treeswift
Copy link
Author

I am using a local toolchain (llvm-mingw) build from the latest source release. Installed w/ build-all.sh.

@treeswift
Copy link
Author

Thinkpad T410, 6G RAM.

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

Wait... There's no way that's latest source though. That's clang-12. Latest is clang-13.

@treeswift
Copy link
Author

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

Ah. That's an older build. I updated it just a few days ago. https://github.com/armdevvel/llvm-mingw/releases/tag/13.0

@treeswift
Copy link
Author

Oh, cool, IC. (didn't refresh that tab in a while -)

@treeswift
Copy link
Author

Can I update the binaries alone or it requires a new sysroot and effectively new everything?

@pahaze
Copy link
Member

pahaze commented Dec 13, 2021

You can just update the binaries/libs/include/etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants