summaryrefslogtreecommitdiff
path: root/src/gbm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index dd38f8f6435..91fcc1fd29f 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -365,22 +365,15 @@ dri_screen_create_sw(struct gbm_dri_device *dri)
char *driver_name;
int ret;
- driver_name = strdup("zink");
+ driver_name = strdup("kms_swrast");
if (!driver_name)
return -errno;
ret = dri_screen_create_for_driver(dri, driver_name);
- if (ret != 0) {
- driver_name = strdup("kms_swrast");
- if (!driver_name)
- return -errno;
-
- ret = dri_screen_create_for_driver(dri, driver_name);
- if (ret != 0)
- ret = dri_screen_create_for_driver(dri, NULL);
- if (ret != 0)
- return ret;
- }
+ if (ret != 0)
+ ret = dri_screen_create_for_driver(dri, NULL);
+ if (ret != 0)
+ return ret;
dri->software = true;
return 0;