diff options
author | Erik Faye-Lund <[email protected]> | 2020-05-13 17:13:47 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-14 15:58:43 +0000 |
commit | ed95f69dd54c907879b90e9a2d1ddb7f56c717e4 (patch) | |
tree | cd5bf91871e9a9f37ce41fc4b81feb511574d6f9 /src/gallium/drivers/zink | |
parent | 50ebe5a991a45de6fb04b1a7edd956a530cf5d12 (diff) |
zink: correct PIPE_SHADER_CAP_MAX_SHADER_IMAGES
We don't support shader-images yet, so this is premature to expose.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5024>
Diffstat (limited to 'src/gallium/drivers/zink')
-rw-r--r-- | src/gallium/drivers/zink/zink_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index e53a4956217..b16a2f96628 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -449,8 +449,12 @@ zink_get_shader_param(struct pipe_screen *pscreen, return (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_TGSI); case PIPE_SHADER_CAP_MAX_SHADER_IMAGES: +#if 0 /* TODO: needs compiler support */ return MIN2(screen->props.limits.maxPerStageDescriptorStorageImages, PIPE_MAX_SHADER_IMAGES); +#else + return 0; +#endif case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD: case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS: |