zink: do not expose real value for PIPE_CAP_MAX_VIEWPORTS
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 13 May 2020 12:40:47 +0000 (14:40 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 15:58:43 +0000 (15:58 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5024>

src/gallium/drivers/zink/zink_screen.c

index feb7fdb6d3afeb9aa5fca955bf4db88583cbb509..e53a49562171b11091be9b4a2b030a136297c74b 100644 (file)
@@ -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;