zink: more accurately check samplecount caps for shader images
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 19 Mar 2021 16:07:15 +0000 (12:07 -0400)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 21 Mar 2021 14:15:13 +0000 (10:15 -0400)
commita1d80c6d96c02243303b1cf35617ebbac0692f1d
tree558f3246597d03eafb281f360bacbdf656e77d1e
parentfd4a742cc3ee6ff1c68f5134bea852526797a0a2
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: 0daa61553d0 ("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>
src/gallium/drivers/zink/zink_screen.c