zink: stop exporting PIPE_SHADER_CAP_FP16_DERIVATIVES

spirv doesn't support this

fixes #5561

cc: mesa-stable

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13530>
This commit is contained in:
Mike Blumenkrantz 2021-10-26 11:05:31 -04:00 committed by Marge Bot
parent 3094524621
commit c13da98929

View file

@ -827,8 +827,7 @@ zink_get_shader_param(struct pipe_screen *pscreen,
return screen->info.feats11.uniformAndStorageBuffer16BitAccess ||
(screen->info.have_KHR_16bit_storage && screen->info.storage_16bit_feats.uniformAndStorageBuffer16BitAccess);
case PIPE_SHADER_CAP_FP16_DERIVATIVES:
return screen->info.feats11.storageInputOutput16 ||
(screen->info.have_KHR_16bit_storage && screen->info.storage_16bit_feats.storageInputOutput16);
return 0; //spirv requires 32bit derivative srcs and dests
case PIPE_SHADER_CAP_FP16:
return screen->info.feats12.shaderFloat16 ||
(screen->info.have_KHR_shader_float16_int8 &&