Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/client/gl/gl_drivers.py : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1#!/usr/bin/env python
2# This file is part of Xpra.
3# Copyright (C) 2012 Serviware (Arthur Huillet, <ahuillet@serviware.com>)
4# Copyright (C) 2012-2020 Antoine Martin <antoine@xpra.org>
5# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
6# later version. See the file COPYING for details.
8#These chipsets will use OpenGL,
9#there will not be any warnings, even if the vendor is greylisted:
10WHITELIST = {
11 "renderer" : ["Haswell", "Skylake", "Kabylake", "Cannonlake",
12 "Whiskeylake", "Amberlake", "Cascadelake", "Cometlake",
13 "Icelake", "Cooperlake"],
14 }
16#Chipsets from these vendors will trigger warnings,
17#but OpenGL will still be enabled:
18GREYLIST = {
19 "vendor" : ["Intel", ]
20 }
22#Versions older than this will trigger warnings:
23VERSION_REQ = {
24 "nouveau" : [3, 0], #older versions have issues
25 }
27#These chipsets will be disabled by default:
28BLACKLIST = {
29 "renderer" :
30 [
31 "SVGA3D",
32 "Software Rasterizer",
33 "Mesa DRI Intel(R) Ivybridge Desktop",
34 "Mesa DRI Intel(R) Haswell Mobile",
35 "Intel(R) UHD Graphics 620",
36 ],
37 "vendor" : [
38 #"VMware, Inc.",
39 #"Humper",
40 #to disable nvidia, uncomment this:
41 #"NVIDIA Corporation",
42 ]
43 }
46#for testing:
47#GREYLIST["vendor"].append("NVIDIA Corporation")
48#WHITELIST["renderer"] = ["GeForce GTX 760/PCIe/SSE2"]
49#frequent crashes on OSX with GT 650M: (see ticket #808)
50#if OSX:
51# GREYLIST.setdefault("vendor", []).append("NVIDIA Corporation")
54class OpenGLFatalError(ImportError):
55 pass