mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
zink: respect feature-cap for independent blending
Vulkan has a cap to enable this, we should check that one rather than always claiming support. Fixes:8d46e35d16("zink: introduce opengl over vulkan") Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8640> (cherry picked from commit612169859a)
This commit is contained in:
parent
613251e851
commit
3efcf3b34f
2 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@
|
|||
"description": "zink: respect feature-cap for independent blending",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "8d46e35d16e3936968958bcab86d61967a673305"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -136,15 +136,15 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
|
||||
return 1 + util_logbase2(screen->info.props.limits.maxImageDimensionCube);
|
||||
|
||||
case PIPE_CAP_BLEND_EQUATION_SEPARATE:
|
||||
case PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD:
|
||||
case PIPE_CAP_FRAGMENT_SHADER_DERIVATIVES:
|
||||
case PIPE_CAP_VERTEX_SHADER_SATURATE:
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_BLEND_EQUATION_SEPARATE:
|
||||
case PIPE_CAP_INDEP_BLEND_ENABLE:
|
||||
case PIPE_CAP_INDEP_BLEND_FUNC:
|
||||
return 1;
|
||||
return screen->info.feats.features.independentBlend;
|
||||
|
||||
case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:
|
||||
return screen->info.have_EXT_transform_feedback ? screen->info.tf_props.maxTransformFeedbackBuffers : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue