vulkan/wsi: Only use LINEAR modifier for prime if supported.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 5 May 2018 13:34:44 +0000 (15:34 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 8 May 2018 13:47:16 +0000 (15:47 +0200)
commitb17cfb08a3fc9a599eff64fffe48daba398a672f
tree53513e8ab27ff905c2bbaa2745577a6296b76de6
parenta9e4be9212868f619ac492aaf86b0aa68d4395c4
vulkan/wsi: Only use LINEAR modifier for prime if supported.

This was setting the LINEAR modifier if neither the
X server nor the driver supported modifiers.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106180
Fixes: c80c08e226 "vulkan/wsi/x11: Add support for DRI3 v1.2"
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Tested-by: Abel Garcia Dorta <mercuriete@gmail.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common_private.h
src/vulkan/wsi/wsi_common_x11.c