1# API layer tests 2 3include_directories( 4 .. 5 ../util 6 ${DEQP_INL_DIR} 7 ) 8 9set(DEQP_VK_VKSC_API_SRCS 10 vktApiVersionCheck.cpp 11 vktApiVersionCheck.hpp 12 vktApiTests.cpp 13 vktApiTests.hpp 14 vktApiDeviceInitializationTests.cpp 15 vktApiDeviceInitializationTests.hpp 16 vktApiDriverPropertiesTests.cpp 17 vktApiDriverPropertiesTests.hpp 18 vktApiObjectManagementTests.cpp 19 vktApiObjectManagementTests.hpp 20 vktApiBufferTests.cpp 21 vktApiBufferTests.hpp 22 vktApiBufferViewCreateTests.cpp 23 vktApiBufferViewCreateTests.hpp 24 vktApiBufferViewAccessTests.cpp 25 vktApiBufferViewAccessTests.hpp 26 vktApiFeatureInfo.cpp 27 vktApiFeatureInfo.hpp 28 vktApiCommandBuffersTests.cpp 29 vktApiCommandBuffersTests.hpp 30 vktApiComputeInstanceResultBuffer.cpp 31 vktApiComputeInstanceResultBuffer.hpp 32 vktApiBufferComputeInstance.cpp 33 vktApiBufferComputeInstance.hpp 34 vktApiCopiesAndBlittingTests.cpp 35 vktApiCopiesAndBlittingTests.hpp 36 vktApiImageClearingTests.cpp 37 vktApiImageClearingTests.hpp 38 vktApiFillBufferTests.cpp 39 vktApiFillBufferTests.hpp 40 vktApiDescriptorPoolTests.cpp 41 vktApiDescriptorPoolTests.hpp 42 vktApiNullHandleTests.cpp 43 vktApiNullHandleTests.hpp 44 vktApiGranularityTests.cpp 45 vktApiGranularityTests.hpp 46 vktApiGetMemoryCommitment.cpp 47 vktApiGetMemoryCommitment.hpp 48 vktApiBufferAndImageAllocationUtil.hpp 49 vktApiBufferAndImageAllocationUtil.cpp 50 vktApiMaintenance3Check.hpp 51 vktApiMaintenance3Check.cpp 52 vktApiDescriptorSetTests.hpp 53 vktApiDescriptorSetTests.cpp 54 vktApiPipelineTests.hpp 55 vktApiPipelineTests.cpp 56 vktApiMemoryRequirementInvarianceTests.cpp 57 vktApiMemoryRequirementInvarianceTests.hpp 58 vktApiBufferMemoryRequirementsTests.cpp 59 vktApiBufferMemoryRequirementsTests.hpp 60 vktApiBufferMemoryRequirementsTestsUtils.hpp 61 ) 62 63set(DEQP_VK_API_SRCS 64 vktApiSmokeTests.cpp 65 vktApiSmokeTests.hpp 66 vktApiBufferMarkerTests.cpp 67 vktApiBufferMarkerTests.hpp 68 vktApiDeviceDrmPropertiesTests.cpp 69 vktApiDeviceDrmPropertiesTests.hpp 70 vktApiExternalMemoryTests.cpp 71 vktApiExternalMemoryTests.hpp 72 vktApiToolingInfoTests.cpp 73 vktApiToolingInfoTests.hpp 74 vktApiFormatPropertiesExtendedKHRtests.cpp 75 vktApiFormatPropertiesExtendedKHRtests.hpp 76 vktApiImageCompressionControlTests.cpp 77 vktApiImageCompressionControlTests.hpp 78 vktApiGetDeviceProcAddrTests.hpp 79 vktApiGetDeviceProcAddrTests.cpp 80 vktApiPhysicalDeviceFormatPropertiesMaint5Tests.cpp 81 vktApiPhysicalDeviceFormatPropertiesMaint5Tests.hpp 82 ) 83 84PCH(DEQP_VK_API_SRCS ../pch.cpp) 85 86add_library(deqp-vk-api STATIC ${DEQP_VK_VKSC_API_SRCS} ${DEQP_VK_API_SRCS}) 87target_link_libraries(deqp-vk-api PUBLIC deqp-vk-util tcutil vkutil) 88 89add_library(deqp-vksc-api STATIC ${DEQP_VK_VKSC_API_SRCS}) 90# HACK: For some reason vkApiExtensionDependencyInfo.inl is only included in the Vulkan generated files, but it used for the SC 91# version of the test. That means we need to add generated/vulkan but have it appear after generated/vulkansc (so that files that 92# do exist still come from the right place). Bodge that in here. 93target_include_directories(deqp-vksc-api BEFORE PRIVATE ${PROJECT_SOURCE_DIR}/external/vulkancts/framework/vulkan/generated/vulkansc) 94target_include_directories(deqp-vksc-api AFTER PRIVATE ${PROJECT_SOURCE_DIR}/external/vulkancts/framework/vulkan/generated/vulkan) 95target_link_libraries(deqp-vksc-api PUBLIC deqp-vksc-util tcutil vkscutil) 96