zink: more accurately check samplecount caps for shader images

lavapipe can only do up to 4bits, so this isn't just a binary check

Fixes: 0daa61553d ("zink: check if multisample support exists for shader image formats")

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9713>
This commit is contained in:
Mike Blumenkrantz 2021-03-19 12:07:15 -04:00
parent fd4a742cc3
commit a1d80c6d96
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ zink_is_format_supported(struct pipe_screen *pscreen,
return false;
}
if (bind & PIPE_BIND_SHADER_IMAGE) {
if (!screen->info.feats.features.shaderStorageImageMultisample)
if (!(screen->info.props.limits.storageImageSampleCounts & sample_mask))
return false;
}
}