Commit 377936ee authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋
Browse files

zink: clamp PIPE_CAP_MAX_VIEWPORTS to PIPE_MAX_VIEWPORTS



this is all we need
Reviewed-by: Erik Faye-Lund 's avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <!11322>
parent acc9fb18
......@@ -429,7 +429,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return PIPE_ENDIAN_NATIVE; /* unsure */
case PIPE_CAP_MAX_VIEWPORTS:
return screen->info.props.limits.maxViewports;
return MIN2(screen->info.props.limits.maxViewports, PIPE_MAX_VIEWPORTS);
case PIPE_CAP_IMAGE_LOAD_FORMATTED:
return screen->info.feats.features.shaderStorageImageReadWithoutFormat;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment