From 50ebe5a991a45de6fb04b1a7edd956a530cf5d12 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 13 May 2020 14:40:47 +0200 Subject: [PATCH] zink: do not expose real value for PIPE_CAP_MAX_VIEWPORTS Part-of: --- 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 feb7fdb6d3a..e53a4956217 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -196,7 +196,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return PIPE_ENDIAN_NATIVE; /* unsure */ case PIPE_CAP_MAX_VIEWPORTS: - return screen->props.limits.maxViewports; + return 1; /* TODO: When GS is supported, use screen->props.limits.maxViewports */ case PIPE_CAP_MIXED_FRAMEBUFFER_SIZES: return 1; -- 2.30.2