zink: only add MESA WSI structs for specific devices
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 6 Nov 2020 08:20:42 +0000 (09:20 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 11 Nov 2020 07:16:32 +0000 (08:16 +0100)
commit46d2f2224fd6129aa44b8f34c593ad74520681fe
treef36185bd6d729a5d55968b9d0fea2f165322a15d
parenteba97645c9f22c890d7b413dbe81b532c04d99fe
zink: only add MESA WSI structs for specific devices

Some drivers will drop warnings about seeing these structs in the
pNext chain and not handling them. This change makes it so we
only include the structs with Vulkan drivers that are known to
require them for proper behavior (v3dv only for now) to avoid the
warnings.

It should be noted that here we are only supressing the messages
from Zink. Since the Mesa Vulkan WSI code will include these structs,
when native Vulkan Mesa drivers are used without Zink they might
still dump these messages.

Requested by Mike Blumenkrantz.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7523>
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_screen.c
src/gallium/drivers/zink/zink_screen.h