From eb0195358c4e0376d93f10fb4f90703e51718779 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 4 Feb 2020 11:21:58 +0100 Subject: [PATCH] zink: only inspect dual-src limit if feature enabled Tested-by: Marge Bot Part-of: --- src/gallium/drivers/zink/zink_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 95031947116..b3299976f8f 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -95,6 +95,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return 1; case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS: + if (!screen->feats.dualSrcBlend) + return 0; return screen->props.limits.maxFragmentDualSrcAttachments; case PIPE_CAP_POINT_SPRITE: -- 2.30.2