mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
zink: fix PIPE_CAP_MAX_SHADER_PATCH_VARYINGS
maxTessellationControlPerPatchOutputComponents is the per-patch limit,
maxTessellationControlPerVertexOutputComponents is the per-vertex limit
fixes #10750
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27990>
(cherry picked from commit 0736c212b5)
This commit is contained in:
parent
b89310ffed
commit
ae34f04d74
2 changed files with 2 additions and 2 deletions
|
|
@ -1074,7 +1074,7 @@
|
|||
"description": "zink: fix PIPE_CAP_MAX_SHADER_PATCH_VARYINGS",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1007,7 +1007,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
return 0;
|
||||
|
||||
case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
|
||||
return screen->info.props.limits.maxTessellationControlPerVertexOutputComponents / 4;
|
||||
return screen->info.props.limits.maxTessellationControlPerPatchOutputComponents / 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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue