Mesa (main): zink: never create a sw context unless sw is requested
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed May 18 02:10:45 UTC 2022
Module: Mesa
Branch: main
Commit: 43b3f5469d3ce78dec46cad28a5b020e6f7b56c4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=43b3f5469d3ce78dec46cad28a5b020e6f7b56c4
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue May 3 19:14:00 2022 -0400
zink: never create a sw context unless sw is requested
this otherwise makes it impossible to accurately do hardware driver
fallback, as zink will create a sw context instead of failing, superceding
the actual sw driver priorities
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16572>
---
src/gallium/drivers/zink/zink_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 35a8f7ea27d..01741a7c03c 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1336,7 +1336,7 @@ choose_pdev(struct zink_screen *screen)
}
}
is_cpu = cur_prio == prio_map[VK_PHYSICAL_DEVICE_TYPE_CPU];
- if (cpu && !is_cpu)
+ if (cpu != is_cpu)
goto out;
screen->pdev = pdevs[idx];
More information about the mesa-commit
mailing list