mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 08:48:07 +02:00
zink: export PIPE_CAP_MAX*_VARYINGS values
this is separate from PIPE_SHADER_CAP_MAX_OUTPUTS fixes mesa/mesa#3105 Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7110>
This commit is contained in:
parent
d50e8554b9
commit
23e731fcdb
1 changed files with 6 additions and 0 deletions
|
|
@ -321,6 +321,12 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_TWO_SIDED_COLOR:
|
||||
return 0;
|
||||
|
||||
case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
|
||||
return screen->info.props.limits.maxTessellationControlPerVertexOutputComponents / 4;
|
||||
case PIPE_CAP_MAX_VARYINGS:
|
||||
/* need to reserve up to 60 of our varying components and 16 slots for streamout */
|
||||
return MIN2(screen->info.props.limits.maxVertexOutputComponents / 4 / 2, 16);
|
||||
|
||||
case PIPE_CAP_DMABUF:
|
||||
return screen->info.have_KHR_external_memory_fd;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue