mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
egl/android: fix zink loading
should be as simple as checking whether zink is being used
cc: mesa-stable
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28570>
(cherry picked from commit 6f13b201ad)
This commit is contained in:
parent
39e103e13b
commit
28cd577dd3
2 changed files with 6 additions and 3 deletions
|
|
@ -1534,7 +1534,7 @@
|
|||
"description": "egl/android: fix zink loading",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -977,11 +977,14 @@ droid_load_driver(_EGLDisplay *disp, bool swrast)
|
|||
{
|
||||
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
|
||||
|
||||
dri2_dpy->driver_name = loader_get_driver_for_fd(dri2_dpy->fd_render_gpu);
|
||||
if (disp->Options.Zink)
|
||||
dri2_dpy->driver_name = strdup("zink");
|
||||
else
|
||||
dri2_dpy->driver_name = loader_get_driver_for_fd(dri2_dpy->fd_render_gpu);
|
||||
if (dri2_dpy->driver_name == NULL)
|
||||
return false;
|
||||
|
||||
if (swrast) {
|
||||
if (swrast && !disp->Options.Zink) {
|
||||
/* Use kms swrast only with vgem / virtio_gpu.
|
||||
* virtio-gpu fallbacks to software rendering when 3D features
|
||||
* are unavailable since 6c5ab.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue