tests: Add validation for layout lifetime issues
authorJohn Zulauf <jzulauf@lunarg.com>
Wed, 17 Jan 2018 18:23:49 +0000 (11:23 -0700)
committerjzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com>
Thu, 18 Jan 2018 17:20:18 +0000 (10:20 -0700)
commitc381d7ad74ab8ff5d6b1042998a02135a9768d9b
tree4791e19b81d7d3e922b01800872784821664ec6d
parentf57f451e6ce7a4952beb3d26d59ebeb0c077dcba
tests: Add validation for layout lifetime issues

Add unit tests for valid usages that flag when descriptor set update
operations are being performed with descriptor sets create from
destroyed descriptor set layouts. The tests use overloaded VUIDs
(generic "must be valid * handles) which need to be replaced (and
unclaimed) with specific ones when they are added to the spec.

    VALIDATION_ERROR_15c00280 (write dst must be valid) ->
            write dst created from destroyed layout
    VALIDATION_ERROR_03207601 (copy dst must be valid) ->
            copy dst created from destroyed layout
    VALIDATION_ERROR_0322d201 (copy src must be valid) ->
            copy src created from destroyed layout

Change-Id: Ic37a745120899c072e2e5d8ceb96c5d93074355e
layers/vk_validation_error_database.txt
tests/layer_validation_tests.cpp