Commit Graph
127 Commits
Author SHA1 Message Date
baldurk 4c5b209e6f Test constant buffer offsetting in cbuffer zoo tests 2020-03-20 16:16:52 +00:00
baldurk 59f06a12f0 Fix crashes with indirect count draws in secondary command buffers
* We need to patch the event count in both primary and secondary command buffers
  in this case
2020-03-19 17:16:19 +00:00
baldurk 40611a3dde Test subresource rendering in overlay tests, remove png comparisons 2020-03-12 16:51:19 +00:00
baldurk b392c07d83 Add tests that use large vertex buffers 2020-03-11 18:00:53 +00:00
baldurk a56af589d9 Don't modify descriptor update template while writing. Closes #1765 2020-03-09 17:36:56 +00:00
baldurk b0f0dad7fd Test that we can capture and replay VkPhysicalDeviceVulkan12Features
* This ensure we don't accidentally enable any features that aren't supported.
2020-03-05 19:35:45 +00:00
baldurk aacf148201 Add test of creating an empty capture 2020-02-21 17:56:53 +00:00
baldurk 7dd38b49d7 Update vulkan headers to 1.2.133, SPIR-V metadata to latest 2020-02-17 15:17:52 +00:00
baldurk 06570ea7ad Remove backbuffer comparisons from test suite, simplify default triangle
* It's not particularly scalable and can be brittle to driver changes, and we
  can use targeted specific pixel tests to check what we really want - to see if
  the output has rendered correctly.
* Overlay tests still check files directly - this is a future refactor to
  remove.
2020-02-11 17:11:33 +00:00
baldurk 8bc4e4c719 Test that imageless framebuffer parameters are properly ignored
* This is kind of what VK_Parameter_Zoo is intended to test, but I don't want to
  add conditional extension tests in there unless there's nowhere else to put
  it, since it adds mental overhead to reading the code.
2020-02-03 18:18:17 +00:00
baldurk f427a7ce02 Test that repeated redundant calls for spin-sync aren't serialised
* If the application is calling e.g. vkGetFenceStatus() in a loop we don't want
  to serialise every call.
2020-02-03 18:18:17 +00:00
baldurk c3b6b6890e Add tests that shader ISA disasm works, including live driver output 2020-02-03 18:18:17 +00:00
baldurk 4df8ce7a02 Test VK_EXT_tooling_info in VK_Parameter_Zoo not VK_Simple_Triangle
* Keep the simple triangle really the bare minimum.
2020-02-03 18:18:17 +00:00
baldurk f18cf01671 test optional EXT_transform_feedback parameters in VK_Parameter_Zoo 2020-02-03 18:18:17 +00:00
baldurk 09be5f4047 Fix structured export/import of initial states resource contents on GL 2020-02-03 18:18:16 +00:00
baldurk a98a8c49a7 Improve handling of multi-dimensional array input/outputs from shaders 2020-02-03 18:18:16 +00:00
baldurk 83f0398aa6 Add test to parameter zoo to catch descriptor referencing resources 2020-01-27 20:45:08 +00:00
baldurk 1899b5ffc3 Pass size when fetching cbuffer variables 2020-01-27 20:45:08 +00:00
baldurk 6c68576707 Add workaround for strange systems with difficult visualinfo setups 2020-01-22 19:05:53 +00:00
baldurk 60951195c2 Use VK_EXT_tooling_info in VK_Simple_Triangle 2020-01-21 18:28:57 +00:00
baldurk a869f12c9c Update vulkan headers and volk in tests project 2020-01-21 18:28:57 +00:00
baldurk db0779e09b Add test for mesh view - vertex picking and mesh rendering 2020-01-21 18:28:55 +00:00
baldurk 892abb686f Apply clang-format to demos project as well 2020-01-16 23:06:23 +00:00
Benson JoerisandBaldur Karlsson a64d0df073 Add input attachment case to vk_separate_depth_stencil_layouts demo
Change-Id: I06273c36cb468eebf360dbd742a8f95b7f9aeeaf
2020-01-14 18:01:58 +00:00
Benson Joerisandbaldurk 7ba61adc01 Add vk_separate_depth_stencil_layouts demo
Change-Id: Ia66edbd53aa2b21426ecbea609bd8bbbd3b278b5
2020-01-09 17:57:19 +00:00
Benson Joerisandbaldurk 0d5324f708 Fix alignment bug in demo helper
Change-Id: I890bea8ddba6d47074dcf9135443c61f2601a972
2020-01-09 17:57:19 +00:00
baldurk 2916c0f9f7 Update copyright years to 2020 2020-01-06 16:20:45 +00:00
baldurk dbbfe4c35c Fix clang warning about adding to string literal
* This is what we want to do but it's admittedly quite strange
2019-12-20 15:09:33 +00:00
baldurk 82745ce562 Add some markers to vulkan texture zoo data rendering 2019-12-19 21:50:13 +00:00
baldurk 2620f0bb8c Add missing BGR flip for UINT/SINT textures in vulkan texture zoo 2019-12-19 21:50:13 +00:00
baldurk 08ccab2a7f Prefer VK_LAYER_KHRONOS_validation for debugging if available 2019-12-13 11:09:57 +00:00
baldurk ed53548731 Check for optional vertex buffer format support in vulkan vertex zoo 2019-12-13 11:07:32 +00:00
baldurk 6bbf4cb209 Allow fallback to glslangValidator in tests for compiling SPIR-V 2019-12-12 17:58:52 +00:00
baldurk 848b58826d Ensure we ignore unused parameters in DescriptorUpdateTemplateCreateInfo 2019-12-12 17:58:52 +00:00
baldurk 0773f13949 Ensure re-used handles in descriptor sets don't cause problems
* Previously if a handle was reused, and then a stale descriptor referencing the
  old handle was removed it would remove the *new* object from the list of
  referenced resources. This could cause a resource to be not included in a
  capture if nothing else added a new reference.
2019-12-12 17:58:52 +00:00
baldurk 39793cf850 Renderpass barriers apply to whole 3D texture even when using one slice
* When the renderpass has an initialLayout = UNDEFINED, that applies to the
  whole resource on 3D textures even if we're only rendering to a slice at a
  time
2019-12-12 17:58:51 +00:00
baldurk f8ff6b4f6c Fix parameters for rendering 3D depth images in texture zoos 2019-12-12 17:58:51 +00:00
baldurk 723c293414 Update vulkan headers and implement VK_EXT_tooling_info. Closes #1632 2019-12-09 16:46:26 +00:00
baldurk 289e159072 Add padding to struct definitions in shaders, for better formatting 2019-11-29 13:53:45 +00:00
baldurk 77b5c391e9 Check that we handle padding and alignment around structs
* On all APIs structs are aligned up to 16-byte alignment, and on D3D as with
  arrays then elements coming after the struct can be packed into the padding
  after the last struct element.
2019-11-29 13:53:44 +00:00
baldurk b16dda9d4a Update to vulkan headers 1.1.129
* Expand handling for EXT_buffer_device_address to cover
  KHR_buffer_device_address
2019-11-27 16:14:40 +00:00
baldurk 31c962bf51 Free undefined image in VK_Image_layouts test
* The free() function should also destroy the image/buffer not just free the
  memory.
2019-11-26 23:42:16 +00:00
baldurk 279a2ec69d Add texture zoo tests
* These tests ensure that texture rendering works correctly for all different
  types of texture types, and for all formats, across different APIs, including
  across a remote-proxy connection.
2019-11-26 17:38:27 +00:00
baldurk c547937597 Add helpers for tests checking PCI vendorIDs/driver versions 2019-11-25 23:36:45 +00:00
baldurk f35e082228 Keep track of VmaAllocation for each image/buffer and free it
* VMA requires us to free each suballocation even on shutdown where we just want
  to block-free
2019-11-25 23:36:44 +00:00
baldurk 284996ae2c Check for errors on queue submissions 2019-11-25 23:36:44 +00:00
baldurk ce124cbc2e Add sensible defaults for depth-stencil state in vulkan helpers 2019-11-22 14:56:51 +00:00
baldurk 187b1a6e47 Add ability to pass macros to SPIR-V compilation in tests 2019-11-22 14:56:51 +00:00
baldurk 53569e56bb Allow AllocatedBuffer/AllocatedImage to be copied around in vulkan tests
* Instead of tracking their lifetime with that object, we move the lifetime
  tracking into the parent VulkanGraphicsTest and destroy them all at the end. A
  single handle can optionally be free'd on its own.
2019-11-22 14:56:51 +00:00
baldurk b6c9b6298f Only read pImmutableSamplers pointer for sampler descriptors 2019-10-28 11:17:54 +00:00