zink: reject invalid sample-counts
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 28 Nov 2019 17:41:30 +0000 (18:41 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 29 Nov 2019 07:58:05 +0000 (08:58 +0100)
commit655b9aa711d78c685866b7956d0de7b2d0db52a2
treeae40a3d47563311b3ef5738a1444965da80423fe
parent927363e0b9d267cf11d601fa65a90677cdfa7737
zink: reject invalid sample-counts

Vulkan only allows power-of-two sample counts. We already kinda checked
for this, but forgot to validate the result in the end. Let's check the
result and error properly.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/zink/zink_screen.c