zink: fix max geometry input component advertising

forgot to divide by 4 somehow

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15716>
This commit is contained in:
Mike Blumenkrantz 2022-04-04 17:00:26 -04:00 committed by Marge Bot
parent 5ca6b28c58
commit c5f44e51fb

View file

@ -864,7 +864,7 @@ zink_get_shader_param(struct pipe_screen *pscreen,
max = screen->info.props.limits.maxTessellationEvaluationInputComponents / 4;
break;
case PIPE_SHADER_GEOMETRY:
max = screen->info.props.limits.maxGeometryInputComponents;
max = screen->info.props.limits.maxGeometryInputComponents / 4;
break;
case PIPE_SHADER_FRAGMENT:
/* intel drivers report fewer components, but it's a value that's compatible