virgl: check scanout mask
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 7 Aug 2019 02:15:58 +0000 (19:15 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Thu, 8 Aug 2019 23:21:57 +0000 (16:21 -0700)
commit42759dc986bfabd60ab3c179e9858fac1b0f369c
tree73aa368da76fb73cfa56044081b13571e3bb25b5
parent3da029ac1a6e159f1e98110beb136d089ff6cf37
virgl: check scanout mask

Otherwise, virgl will report renderable or texturable formats as
also scan-out formats.

v2: drop host feature check (@kusma)

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/gallium/drivers/virgl/virgl_hw.h
src/gallium/drivers/virgl/virgl_screen.c