radv: check enabled device features.
authorDave Airlie <airlied@redhat.com>
Mon, 24 Jul 2017 06:16:40 +0000 (07:16 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 24 Jul 2017 07:16:52 +0000 (08:16 +0100)
commit22b59b99cbee00689b68f1781ed0a10d74ffc49e
tree349c9d742fe8fcaf3ef5a40fc26a0918a674b7c9
parentb7cc07432ac14b7edfae66fb346c0d164f66e480
radv: check enabled device features.

The spec says we should return VK_ERROR_FEATURE_NOT_PRESENT.

Ported from anv.

Fixes CTS test dEQP-VK.api.device_init.create_device_unsupported_features

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c