zink: only enable KHR_external_memory_fd if supported
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 23 Oct 2019 10:16:22 +0000 (12:16 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 30 Oct 2019 19:40:50 +0000 (19:40 +0000)
commit477f0198129abd768cb6d201d4319cdb5fc1d568
tree9ebcb1fd97749625596a9dd5caa4e3ef79a149af
parent780c937a5ded1a4586ba4160020200eebe57b311
zink: only enable KHR_external_memory_fd if supported

While we're at it, make sure we error out if it's not supported when
required.

This brings us a bit closer to being able to test on SwiftShader, which
doesn't currently support KHR_external_memory_fd.
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_screen.c
src/gallium/drivers/zink/zink_screen.h