zink: enable PIPE_CAP_TGSI_TES_LAYER_VIEWPORT

should've done this when PIPE_CAP_TGSI_VS_LAYER_VIEWPORT was enabled

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10025>
This commit is contained in:
Mike Blumenkrantz 2021-04-04 09:20:03 -04:00 committed by Marge Bot
parent b89359fb92
commit 9490c1ca92
1 changed files with 1 additions and 0 deletions

View File

@ -450,6 +450,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return 1;
case PIPE_CAP_TGSI_VS_LAYER_VIEWPORT:
case PIPE_CAP_TGSI_TES_LAYER_VIEWPORT:
return screen->info.have_EXT_shader_viewport_index_layer ||
(screen->info.feats12.shaderOutputLayer &&
screen->info.feats12.shaderOutputViewportIndex);