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

nixos/xserver: drop intel from videoDrivers #55583

Merged
merged 4 commits into from Feb 21, 2019
Merged

Conversation

7c6f434c
Copy link
Member

Motivation for this change

#55520 — the old intel driver might create problems in multi-GPU multi-output situations (and maybe in some other situations requiring precise use of modern features).

Things done

I have not tested it properly as I don't run NixOS mainline. (I did switch to modesetting after X.org update in Nixpkgs).

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@7c6f434c
Copy link
Member Author

Good question. No idea, actually. Is there any GPGPU framework that works on X/Linux without being tied to a bitrotten video driver not fully supporting modern XRandR, I wonder.

@flokli
Copy link
Contributor

flokli commented Feb 11, 2019

cc @oxij

@oxij
Copy link
Member

oxij commented Feb 13, 2019 via email

@7c6f434c
Copy link
Member Author

Hm. It looks like Intel VA-API somewhat supports Wayland, I wonder if that means they are also fine with modesetting intel/libva#53. And Beignet claims to work without X11 if desired.

If you have a Nix expression that uses OpenCL on Intel around — I run a Intel+Nvidia i965+nouveau modesetting system, so I can check if that code works.

@vcunat
Copy link
Member

vcunat commented Feb 13, 2019

People doing GPGPU will probably know enough to add videoDriver = "intel"; into their configs.

@7c6f434c
Copy link
Member Author

@volth thanks. It seems to look for OpenCL configuration in a place defined relative to libGL. Adding beignet to the packages for opengl-driver buildEnv seems to help.

Using default runtime: v4.0.30319
Id:0 Name:Intel(R) HD Graphics IvyBridge M GT2
    PreferredGroupSizeMultiple:16 ComputeUnits:16 ClockFrequency:1000
    MaxConstantBufferSize:134217728 MaxConstantArgs:8 MaxMemAllocSize:1610612736

@vcunat by now I mostly collect information for release notes.

@7c6f434c 7c6f434c merged commit 95039d0 into master Feb 21, 2019
@gloaming
Copy link
Contributor

gloaming commented Jun 6, 2019

cl_get_gt_device(): error, unknown device: 3e94

@volth Coffee Lake (but not including CL-R) is supported only in their HEAD, see intel/beignet@7e181af

Should we move nixpkgs ahead of the release version? It's not clear if they will make another, since it's more or less dead.

@gloaming
Copy link
Contributor

@7c6f434c I'm not sure that there is any relationship between the (Intel) display and OCL drivers - I didn't see any mention of a GPU driver requirement on Intel's website, nor in the READMEs in their github repos.

I tested disabling modesetting and using the fbdev and vesa drivers on my machine, in turn, and waifu2x-converter-cpp --force-OpenCL still ran fine with both, even though the vesa driver doesn't actually work for me. This is using intel-ocl though, since I'm on CL-R.

@volth could you test the same with beignet?

kennyballou added a commit to kennyballou/cfg.nix that referenced this pull request Jan 21, 2021
Following the discussion from nixpkgs[0], Iris Xe graphics performance
dramatically better using the modesetting driver than the intel driver.

[0]: NixOS/nixpkgs#55583

Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants