Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Saxl <mike@mwsys.mine.bz>2022-03-27 11:45:23 +0300
committerMichael Saxl <mike@mwsys.mine.bz>2022-03-27 11:49:11 +0300
commit0c9207c7337d5bc75bbf6d42d25e28f3eeb39d5f (patch)
treec82b83d611fabcac674d109afb4da475e2e02562
parent3a2d86f6147d55bfbfaa7076a590390c8e412b88 (diff)
add crocus to the list of va_gl users
also change a bit of formatting to match better xorgxrdp
-rw-r--r--xrdpdev/xrdpdri2.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/xrdpdev/xrdpdri2.c b/xrdpdev/xrdpdri2.c
index 3fced4c..7494554 100644
--- a/xrdpdev/xrdpdri2.c
+++ b/xrdpdev/xrdpdri2.c
@@ -185,21 +185,28 @@ rdpDri2Init(ScreenPtr pScreen)
/* Ask Glamor to obtain the DRI driver name via EGL_MESA_query_driver. */
driver_names[0] = glamor_egl_get_driver_name(pScreen);
- if (driver_names[0]) {
+ if (driver_names[0])
+ {
/* There is no VDPAU driver for Intel, fallback to the generic
* OpenGL/VAAPI va_gl backend to emulate VDPAU. Otherwise,
* guess that the DRI and VDPAU drivers have the same name.
*/
if (strcmp(driver_names[0], "i965") == 0 ||
- strcmp(driver_names[0], "iris") == 0) {
+ strcmp(driver_names[0], "iris") == 0) ||
+ strcmp(driver_names[0], "crocus") == 0)
+ {
driver_names[1] = "va_gl";
- } else {
+ }
+ else
+ {
driver_names[1] = driver_names[0];
}
info.numDrivers = 2;
info.driverNames = driver_names;
- } else {
+ }
+ else
+ {
/* EGL_MESA_query_driver was unavailable; let dri2.c select the
* driver and fill in these fields for us.
*/