Mesa (main): zink: stop exporting PIPE_SHADER_CAP_FP16_DERIVATIVES
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 26 17:48:21 UTC 2021
Module: Mesa
Branch: main
Commit: c13da98929809dd2d9f752e938f9ae650ce3fcd5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c13da98929809dd2d9f752e938f9ae650ce3fcd5
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue Oct 26 11:05:31 2021 -0400
zink: stop exporting PIPE_SHADER_CAP_FP16_DERIVATIVES
spirv doesn't support this
fixes #5561
cc: mesa-stable
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13530>
---
src/gallium/drivers/zink/zink_screen.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 10207633c0a..c7606e8e748 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -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 &&
More information about the mesa-commit
mailing list