zink: require vulkan memory model for tesselation

We enable the KHR_vulkan_memory_model extension whenever we use
tesselation, so right now this is a defacto requirement. So let's make
this requirement explicit.

Fixes: f815b87e18 ("zink: export tess shader pipe caps")
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>
This commit is contained in:
Erik Faye-Lund 2021-01-22 12:23:10 +01:00 committed by Marge Bot
parent f95c174927
commit 8c7d971666
1 changed files with 2 additions and 1 deletions

View File

@ -418,7 +418,8 @@ zink_get_shader_param(struct pipe_screen *pscreen,
return INT_MAX;
case PIPE_SHADER_TESS_CTRL:
case PIPE_SHADER_TESS_EVAL:
if (screen->info.feats.features.tessellationShader &&
if (screen->info.have_KHR_vulkan_memory_model &&
screen->info.feats.features.tessellationShader &&
screen->instance_info.have_KHR_maintenance2)
return INT_MAX;
break;