From: Erik Faye-Lund Date: Wed, 13 May 2020 12:40:47 +0000 (+0200) Subject: zink: do not expose real value for PIPE_CAP_MAX_VIEWPORTS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50ebe5a991a45de6fb04b1a7edd956a530cf5d12;p=mesa.git zink: do not expose real value for PIPE_CAP_MAX_VIEWPORTS Part-of: --- 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;