mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
zink: only inspect dual-src limit if feature enabled
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3689> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3689>
This commit is contained in:
parent
e365f83740
commit
eb0195358c
1 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
|
case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
|
||||||
|
if (!screen->feats.dualSrcBlend)
|
||||||
|
return 0;
|
||||||
return screen->props.limits.maxFragmentDualSrcAttachments;
|
return screen->props.limits.maxFragmentDualSrcAttachments;
|
||||||
|
|
||||||
case PIPE_CAP_POINT_SPRITE:
|
case PIPE_CAP_POINT_SPRITE:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue