-
Notifications
You must be signed in to change notification settings - Fork 13
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
Weird Transparency glitch on Intel Integrated Graphics #11
Comments
Looks a bit like #3. Are you running Wayland by any chance? You can check by running |
Indeed wayland. > echo $XDG_SESSION_TYPE
wayland Running on Fedora 36, with 5.18.18-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 17 16:02:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux |
The common factors between #3 and this seem to be Wayland and Intel GPU. @Vistavleal suggested that xWayland might also be involved somehow, but they were unfortunately not in a position to try on x11. Meanwhile I could not reproduce this on Wayland/NVidia GPU. @EriKWDev could you test on x11? |
Can you try running some of the vulkano examples and see if they have similar problems? If those work, then I have a suspicion: In #10 @Wicpar said that egui_vulkano currently does some things that are actually forbidden by the vulkan spec, which Vulkano 0.30 checks and rejects. It could be that the NVidia driver quietly fixes up the incorrect usage, whereas the Intel driver doesn't do that and just happily corrupts GPU memory instead. Maybe try his Vulkano 0.30 branch and see if that fixes it? |
I don't really knew what to look for, but I cloned vulkano and ran the |
You can change this line: That should allow you to run the fork. |
Thanks for testing! That seems to support my theory. The triangle is behind the gui, because at some point the egui example changed to fill the whole screen and I haven't bothered to change it 😄 |
Very nice to get it working though! Would be nice to get that fork merged :) Would also be nice to see a Vulkan texture be rendered into an egui Image in the/an example! But I suppose that's just supplying the image with an egui::TextureId::User(_) with a Vulkan texture handle..? I will also be trying to get this working with glfw instead of winit since winit takes so long to compile... Thanks for the awesome work and help debugging! |
I do plan on merging it, but haven't gotten around to it yet. Would be interesting to see if you can get it running with glfw. |
Will base it on this implementation https://github.com/cohaereo/egui_glfw_gl Will write on this repo if I succeed! |
Was a bit more struggle than I first though. Vulkano seems to use ash whereas the vulkan feature of the glfw crate produces types compatible with vk-sys... Have to find some conversions to and from the types. Previous attempts seem dead but parts of them can probably be of use https://github.com/atwupack/vulkan4rust, https://gitlab.com/braxtons12/vulkano-glfw-v2 |
Running on main branch's example. Getting reported info:
The text was updated successfully, but these errors were encountered: